mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-09-19 01:57:56 +08:00
Update the documentation pages
This commit is contained in:
@@ -221,18 +221,20 @@ options.UseWebProviders()
|
||||
</code></pre><ul>
|
||||
<li>Update <code>AuthenticationController.cs</code> to allow triggering challenges pointing to the new provider:</li>
|
||||
</ul>
|
||||
<pre><code class="lang-csharp">var issuer = provider switch
|
||||
{
|
||||
<pre><code class="lang-csharp">// Note: OpenIddict always validates the specified provider name when handling the challenge operation,
|
||||
// but the provider can also be validated earlier to return an error page or a special HTTP error code.
|
||||
if (!string.Equals(provider, "Local", StringComparison.Ordinal) &&
|
||||
// ... other providers...
|
||||
"[provider name]" => "https://[provider issuer]/",
|
||||
|
||||
_ => null
|
||||
};
|
||||
!string.Equals(provider, [provider name], StringComparison.Ordinal))
|
||||
{
|
||||
return BadRequest();
|
||||
}
|
||||
</code></pre><ul>
|
||||
<li>Update <code>Index.cshtml</code> under <code>Views\Home</code> to include a login button for the new provider:</li>
|
||||
</ul>
|
||||
<pre><code class="lang-html"><a class="btn btn-lg btn-success" asp-controller="Authentication"
|
||||
asp-action="Login" asp-route-provider="[provider name]">Sign in using [provider name]</a>
|
||||
<pre><code class="lang-html"><button class="btn btn-lg btn-success" type="submit" name="provider" value="[provider name]">
|
||||
Sign in using [provider name]
|
||||
</button>
|
||||
</code></pre><div class="NOTE"><h5>Note</h5><p>Unless you agree to share your sandbox credentials with the OpenIddict developers, the changes
|
||||
made to the sandbox project don't need to be committed and included in your pull request.</p>
|
||||
</div>
|
||||
|
@@ -273,7 +273,7 @@ To reference the OpenIddict MyGet feed, <strong>create a <code>NuGet.config</cod
|
||||
<p><strong>OpenIddict</strong> is actively maintained by <strong><a href="https://github.com/kevinchalet">Kévin Chalet</a></strong>. Contributions are welcome and can be submitted using pull requests.</p>
|
||||
<p><strong>Special thanks to <a href="https://github.com/sponsors/kevinchalet#sponsors">our sponsors</a> for their incredible support</strong>:</p>
|
||||
<p><a href="https://volosoft.com/"><img src="https://volosoft.com/assets/logos/volosoft-logo-dark.svg" width="500px" alt="Volosoft logo"></a></p>
|
||||
<p><!-- sponsors --><a href="https://github.com/sebastienros"><img src="https://github.com/sebastienros.png" width="60px" alt=""></a><a href="https://github.com/GDreyV"><img src="https://github.com/GDreyV.png" width="60px" alt=""></a><a href="https://github.com/gustavdw"><img src="https://github.com/gustavdw.png" width="60px" alt=""></a><a href="https://github.com/DovydasNavickas"><img src="https://github.com/DovydasNavickas.png" width="60px" alt=""></a><a href="https://github.com/schmitch"><img src="https://github.com/schmitch.png" width="60px" alt=""></a><a href="https://github.com/ThreeScreenStudios"><img src="https://github.com/ThreeScreenStudios.png" width="60px" alt=""></a><a href="https://github.com/florianwachs"><img src="https://github.com/florianwachs.png" width="60px" alt=""></a><a href="https://github.com/SebastianStehle"><img src="https://github.com/SebastianStehle.png" width="60px" alt=""></a><a href="https://github.com/MichaelHochriegl"><img src="https://github.com/MichaelHochriegl.png" width="60px" alt=""></a><a href="https://github.com/"><img src="https://github.com/.png" width="60px" alt=""></a><a href="https://github.com/KeithT"><img src="https://github.com/KeithT.png" width="60px" alt=""></a><a href="https://github.com/WGMurray"><img src="https://github.com/WGMurray.png" width="60px" alt=""></a><a href="https://github.com/Skrypt"><img src="https://github.com/Skrypt.png" width="60px" alt=""></a><a href="https://github.com/ThomasBjallas"><img src="https://github.com/ThomasBjallas.png" width="60px" alt=""></a><a href="https://github.com/mcalasa"><img src="https://github.com/mcalasa.png" width="60px" alt=""></a><a href="https://github.com/feededit"><img src="https://github.com/feededit.png" width="60px" alt=""></a><a href="https://github.com/BlackSyc"><img src="https://github.com/BlackSyc.png" width="60px" alt=""></a><a href="https://github.com/Huppiflu"><img src="https://github.com/Huppiflu.png" width="60px" alt=""></a><a href="https://github.com/nbelley"><img src="https://github.com/nbelley.png" width="60px" alt=""></a><a href="https://github.com/"><img src="https://github.com/.png" width="60px" alt=""></a><!-- sponsors --></p>
|
||||
<p><!-- sponsors --><a href="https://github.com/sebastienros"><img src="https://github.com/sebastienros.png" width="60px" alt=""></a><a href="https://github.com/GDreyV"><img src="https://github.com/GDreyV.png" width="60px" alt=""></a><a href="https://github.com/gustavdw"><img src="https://github.com/gustavdw.png" width="60px" alt=""></a><a href="https://github.com/DovydasNavickas"><img src="https://github.com/DovydasNavickas.png" width="60px" alt=""></a><a href="https://github.com/schmitch"><img src="https://github.com/schmitch.png" width="60px" alt=""></a><a href="https://github.com/ThreeScreenStudios"><img src="https://github.com/ThreeScreenStudios.png" width="60px" alt=""></a><a href="https://github.com/florianwachs"><img src="https://github.com/florianwachs.png" width="60px" alt=""></a><a href="https://github.com/SebastianStehle"><img src="https://github.com/SebastianStehle.png" width="60px" alt=""></a><a href="https://github.com/MichaelHochriegl"><img src="https://github.com/MichaelHochriegl.png" width="60px" alt=""></a><a href="https://github.com/"><img src="https://github.com/.png" width="60px" alt=""></a><a href="https://github.com/KeithT"><img src="https://github.com/KeithT.png" width="60px" alt=""></a><a href="https://github.com/WGMurray"><img src="https://github.com/WGMurray.png" width="60px" alt=""></a><a href="https://github.com/Skrypt"><img src="https://github.com/Skrypt.png" width="60px" alt=""></a><a href="https://github.com/ThomasBjallas"><img src="https://github.com/ThomasBjallas.png" width="60px" alt=""></a><a href="https://github.com/mcalasa"><img src="https://github.com/mcalasa.png" width="60px" alt=""></a><a href="https://github.com/feededit"><img src="https://github.com/feededit.png" width="60px" alt=""></a><a href="https://github.com/BlackSyc"><img src="https://github.com/BlackSyc.png" width="60px" alt=""></a><a href="https://github.com/Huppiflu"><img src="https://github.com/Huppiflu.png" width="60px" alt=""></a><a href="https://github.com/nbelley"><img src="https://github.com/nbelley.png" width="60px" alt=""></a><a href="https://github.com/"><img src="https://github.com/.png" width="60px" alt=""></a><a href="https://github.com/Thodor12"><img src="https://github.com/Thodor12.png" width="60px" alt=""></a><a href="https://github.com/jacojvv-dev"><img src="https://github.com/jacojvv-dev.png" width="60px" alt=""></a><a href="https://github.com/"><img src="https://github.com/.png" width="60px" alt=""></a><a href="https://github.com/salimz1"><img src="https://github.com/salimz1.png" width="60px" alt=""></a><a href="https://github.com/elminino21"><img src="https://github.com/elminino21.png" width="60px" alt=""></a><!-- sponsors --></p>
|
||||
<hr>
|
||||
<h2 id="license">License</h2>
|
||||
<p>This project is licensed under the <strong>Apache License</strong>. This means that you can use, modify and distribute it freely.
|
||||
|
@@ -1600,7 +1600,7 @@
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "guides/contributing-a-new-web-provider.html",
|
||||
"hash": "cUH0EymWfP98SRcvWv2DLg=="
|
||||
"hash": "qmieLtHs30gnuAVxD5v2CA=="
|
||||
}
|
||||
},
|
||||
"is_incremental": false,
|
||||
@@ -1682,7 +1682,7 @@
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "index.html",
|
||||
"hash": "BgEV4WszWzMgU0JKbyvuOQ=="
|
||||
"hash": "kumg1o38TZzb+1NoZDgD9w=="
|
||||
}
|
||||
},
|
||||
"is_incremental": false,
|
||||
|
Reference in New Issue
Block a user