mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-04-05 17:38:03 +08:00
Update the documentation pages
This commit is contained in:
parent
6153ebfacd
commit
91221dbe34
@ -196,8 +196,8 @@ store the tenant name. Once added, the URLs can include a placeholder of the sam
|
||||
UserinfoEndpoint="https://{tenant}.zendesk.com/api/v2/users/me" />
|
||||
</Environment>
|
||||
|
||||
<Setting Name="Tenant" Type="String" Required="true"
|
||||
Description="Gets or sets the tenant used to identify the Zendesk instance." />
|
||||
<Setting PropertyName="Tenant" ParameterName="tenant" Type="String" Required="true"
|
||||
Description="The tenant used to identify the Zendesk instance" />
|
||||
</Provider>
|
||||
</code></pre></div>
|
||||
<h2 id="test-the-generated-provider">Test the generated provider</h2>
|
||||
@ -212,11 +212,11 @@ To confirm it, build the solution and add the new provider to the <code>OpenIddi
|
||||
</code></pre><pre><code class="lang-csharp">// Register the Web providers integrations.
|
||||
options.UseWebProviders()
|
||||
// ... other providers...
|
||||
.Add[provider name](new()
|
||||
.Use[provider name](options =>
|
||||
{
|
||||
ClientId = "bXgwc0U3N3A3YWNuaWVsdlRmRWE6MTpjaQ",
|
||||
ClientSecret = "VcohOgBp-6yQCurngo4GAyKeZh0D6SUCCSjJgEo1uRzJarjIUS",
|
||||
RedirectUri = new Uri("https://localhost:44381/signin-[provider name]", UriKind.Absolute)
|
||||
options.SetClientId("bXgwc0U3N3A3YWNuaWVsdlRmRWE6MTpjaQ");
|
||||
options.SetClientSecret("VcohOgBp-6yQCurngo4GAyKeZh0D6SUCCSjJgEo1uRzJarjIUS");
|
||||
options.SetRedirectUri("https://localhost:44381/signin-[provider name]");
|
||||
});
|
||||
</code></pre><ul>
|
||||
<li>Update <code>AuthenticationController.cs</code> to allow triggering challenges pointing to the new provider:</li>
|
||||
|
@ -1600,7 +1600,7 @@
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "guides/contributing-a-new-web-provider.html",
|
||||
"hash": "dssOySLr9rHvHRUmI0sn8w=="
|
||||
"hash": "cUH0EymWfP98SRcvWv2DLg=="
|
||||
}
|
||||
},
|
||||
"is_incremental": false,
|
||||
|
Loading…
Reference in New Issue
Block a user