mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-11-09 10:54:46 +08:00
Update the documentation pages
This commit is contained in:
@@ -195,12 +195,12 @@ be added under <code><Configuration></code> to ensure the OpenIddict clien
|
||||
</Provider>
|
||||
</code></pre></div>
|
||||
<div class="NOTE"><h5>Note</h5><p>Some providers use a multitenant configuration that relies on a subdomain, a custom domain or a virtual path to discriminate tenant instances.
|
||||
If the provider you want to support requires adding a dynamic part in one of its URLs, a <code><Setting></code> node MUST be added under <code><Provider></code> to
|
||||
store the tenant name. Once added, the URLs can include a placeholder of the same name:</p>
|
||||
If the provider you want to support requires adding a dynamic part in one of its URIs, a <code><Setting></code> node MUST be added under <code><Provider></code> to
|
||||
store the tenant name. Once added, the URIs can include a placeholder of the same name:</p>
|
||||
<pre><code class="lang-xml"><Provider Name="Zendesk">
|
||||
<!--
|
||||
Note: Zendesk is a multitenant provider that relies on subdomains to identify instances.
|
||||
As such, the following URLs all include a {tenant} placeholder that will be dynamically
|
||||
As such, the following URIs all include a {tenant} placeholder that will be dynamically
|
||||
replaced by OpenIddict at runtime by the tenant configured in the Zendesk settings.
|
||||
-->
|
||||
|
||||
@@ -222,7 +222,7 @@ To confirm it, build the solution and add the new provider to the <code>OpenIddi
|
||||
</ul>
|
||||
<pre><code class="lang-csharp">options.SetRedirectionEndpointUris(
|
||||
// ... other providers...
|
||||
"/signin-[provider name]");
|
||||
"callback/login/[provider name]");
|
||||
</code></pre><pre><code class="lang-csharp">// Register the Web providers integrations.
|
||||
options.UseWebProviders()
|
||||
// ... other providers...
|
||||
@@ -230,7 +230,7 @@ options.UseWebProviders()
|
||||
{
|
||||
options.SetClientId("bXgwc0U3N3A3YWNuaWVsdlRmRWE6MTpjaQ");
|
||||
options.SetClientSecret("VcohOgBp-6yQCurngo4GAyKeZh0D6SUCCSjJgEo1uRzJarjIUS");
|
||||
options.SetRedirectUri("https://localhost:44381/signin-[provider name]");
|
||||
options.SetRedirectUri("callback/login/[provider name]");
|
||||
});
|
||||
</code></pre><ul>
|
||||
<li>Update <code>AuthenticationController.cs</code> to allow triggering challenges pointing to the new provider:</li>
|
||||
|
||||
Reference in New Issue
Block a user