mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-09-18 17:48:00 +08:00
Update the documentation pages
This commit is contained in:
@@ -161,6 +161,19 @@ so the correct issuer to use is <code>https://accounts.google.com/</code>:</li>
|
||||
the value given in the documentation or the base address of the server) <strong>and</strong> a <code><Configuration></code> node with the static configuration needed by
|
||||
the OpenIddict client to communicate with the remote authorization server. For instance:</li>
|
||||
</ul>
|
||||
<pre><code class="lang-xml"><Provider Name="Reddit">
|
||||
<Environment Issuer="https://www.reddit.com/">
|
||||
<Configuration AuthorizationEndpoint="https://www.reddit.com/api/v1/authorize"
|
||||
TokenEndpoint="https://www.reddit.com/api/v1/access_token"
|
||||
UserinfoEndpoint="https://oauth.reddit.com/api/v1/me">
|
||||
<GrantType Value="authorization_code" />
|
||||
<GrantType Value="refresh_token" />
|
||||
</Configuration>
|
||||
</Environment>
|
||||
</Provider>
|
||||
</code></pre><div class="NOTE"><h5>Note</h5><p>If the provider doesn't support <code>grant_type=refresh_token</code> and only supports the authorization code flow
|
||||
(typically with non-expiring access tokens), the <code><GrantType></code> nodes MUST be removed for clarity,
|
||||
as the authorization code flow is always considered supported by default if no <code><GrantType></code> is present:</p>
|
||||
<pre><code class="lang-xml"><Provider Name="Reddit">
|
||||
<Environment Issuer="https://www.reddit.com/">
|
||||
<Configuration AuthorizationEndpoint="https://www.reddit.com/api/v1/authorize"
|
||||
@@ -168,7 +181,8 @@ the OpenIddict client to communicate with the remote authorization server. For i
|
||||
UserinfoEndpoint="https://oauth.reddit.com/api/v1/me" />
|
||||
</Environment>
|
||||
</Provider>
|
||||
</code></pre><div class="CAUTION"><h5>Caution</h5><p>If the provider doesn't support server metadata but is known to support Proof Key for Code Exchange (PKCE), a <code><CodeChallengeMethod></code> node MUST
|
||||
</code></pre></div>
|
||||
<div class="CAUTION"><h5>Caution</h5><p>If the provider doesn't support server metadata but is known to support Proof Key for Code Exchange (PKCE), a <code><CodeChallengeMethod></code> node MUST
|
||||
be added under <code><Configuration></code> to ensure the OpenIddict client will send appropriate <code>code_challenge</code>/<code>code_challenge_method</code> parameters:</p>
|
||||
<pre><code class="lang-xml"><Provider Name="Fitbit">
|
||||
<Environment Issuer="https://www.fitbit.com/">
|
||||
|
@@ -1600,7 +1600,7 @@
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "guides/contributing-a-new-web-provider.html",
|
||||
"hash": "pjC3OIpW2IELs4joT+Gu1Q=="
|
||||
"hash": "4ovCVYw3qFNm1e7Yi3eQNw=="
|
||||
}
|
||||
},
|
||||
"is_incremental": false,
|
||||
|
Reference in New Issue
Block a user