2018-02-08 16:11:19 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Authorize an App</title>
|
2018-02-08 16:38:15 +00:00
|
|
|
<link rel="stylesheet" href="brutalist.css" />
|
2018-02-08 16:11:19 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-02-13 17:24:01 +00:00
|
|
|
<h1>OAuth2 Client Demo App</h1>
|
|
|
|
|
|
|
|
<p>The only thing needed to ask an user to grants the Yolo app
|
|
|
|
access to Visibility is just putting a simple link:</p>
|
|
|
|
<p>Here the button is a link to:</p>
|
|
|
|
<pre>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</pre>
|
|
|
|
|
2018-02-09 06:45:04 +00:00
|
|
|
<a class="button"
|
2018-02-13 17:24:01 +00:00
|
|
|
href="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"
|
2018-02-09 06:45:04 +00:00
|
|
|
>click Here</a> to authorize me with the scopes:
|
2018-02-13 17:24:01 +00:00
|
|
|
|
2018-02-09 06:45:04 +00:00
|
|
|
<ul><li><code>ctia</code></li>
|
2018-02-13 17:24:01 +00:00
|
|
|
<li><code>ui-settings</code></li>
|
2018-02-08 16:52:14 +00:00
|
|
|
</ul>
|
2018-02-08 16:11:19 +00:00
|
|
|
</body>
|
|
|
|
</html>
|