diff --git a/index.html b/index.html index b46da5b..c2d76ac 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,18 @@ Authorize an App + + +

OAuth2 Client Demo App

@@ -9,19 +21,20 @@

The only thing needed to ask an user to grants the Yolo app access to Visibility is just putting a simple link:

Here the button is a link to:

-
http://localhost:9001/iroh/oauth2/authorize?
-                response_type=code
-                &client_id=localtest
-                &redirect_uri=http%3A%2F%2Flocalhost%3A9999%2Flogin.html
-                &scope=ctia%20ui-settings
-                &state=whatever
+

 
-        click Here to authorize me with the scopes:
+        click Here
+        to authorize me with the scopes:
 
-        
+        
+        
     
 
diff --git a/infos.js b/infos.js
new file mode 100644
index 0000000..95f77ba
--- /dev/null
+++ b/infos.js
@@ -0,0 +1,16 @@
+var oauthServerUrl="http://localhost:9001/iroh/oauth2/authorize";
+var response_type="code";
+var client_id="localtest";
+var client_password = "localpass";
+var redirect_uri="http://localhost:9999/login.html";
+var scopes=["casebook"
+            ,"collect"
+            ,"ctia"
+            ,"enrich"
+            ,"inspect"
+            ,"integration"
+            ,"iroh-auth"
+            ,"response"
+            ,"ui-settings"];
+var scope=scopes.join(" ");
+var state="whatever";
diff --git a/login.html b/login.html
index 6536fb8..085ad2d 100644
--- a/login.html
+++ b/login.html
@@ -4,6 +4,7 @@
         OAuth2 Demo Login
         
         
+