You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li> Create another html and name it <spanclass='mono orange'> oauth-receiver.html </span> containing <spanclass='mono orange'> <oauth-receiver></span> element (<ahref="#auth-receiver-html"> view </a>)</li>
105
105
</ul>
@@ -113,28 +113,29 @@ <h3>Register client with Authorization Server</h3>
113
113
<p>
114
114
<ul>
115
115
<li>
116
-
For this demo I am going to use <b>BitBucket</b> as the OAuth provider, so SignUp with https://bitbucket.org/ if you dont have an account
116
+
For this demo I am going to use <ahref="https://demo.identityserver.io/" target="_blank"><b>IdentityServer</b></a> as the OAuth provider.
117
+
This is a demo Identity provider which is pre-configured with some users and supports various oAuth authentication flows
117
118
</li>
118
119
<li>
119
-
<b>Register OAuth Client in Bitbucket: </b> In my case the client is https://mrin9.github.io. <br/>
120
-
In your case it could be localhost:{port} or the domain from where you are hosting your html containing RapiDoc element
121
-
<ul>
122
-
<li>
123
-
While registering provide the <spanclass="blue">Redirect URL</span> as the url of <spanclass="blue mono"> oauth-receiver.html </span> that you created above
124
-
</li>
125
-
<li>
126
-
Upon successful registration, you should be provided with a client_id and client_secret
127
-
</li>
128
-
</ul>
120
+
<b>Register OAuth Client with identity Provider:</b> Normally you need to register your client application with the Identity provider which will provide you with a <spanclass='mono bold'> client-id and client-secret</span>
121
+
but in our case we donot need to do so because our demo identity server is pre-configured with some sample client-id and secret
129
122
</li>
130
123
</ul>
131
124
</p>
132
125
133
-
<h3> Setup Client </h3>
134
-
<b>Client: </b> This is the app's domain that host the html containing <spanclass='mono'> <rapi-doc></span>
135
-
element.<br/>
136
-
In case of RapiDoc OAuth demo, since we host it from Github pages, it is https://mrin9.github.io<br/><br/>
137
-
Below are the two files that our server must have<br/><br/>
126
+
<h3> Setup RapiDoc </h3>
127
+
Below are the two files that you need to have<br/>
128
+
<ul>
129
+
<li>
130
+
<spanclass="mono bold">index.html </span>
131
+
<spanclass="gray"> (I am using the name index.html but you are free to use any name, it is the html that contain <rapi-doc> element) </span>
<spanclass="gray">(It is important that you name this file exactly as oauth-receiver.html and place in the same location where the above file is)</span>
0 commit comments