Update the documentation pages

This commit is contained in:
OpenIddict Bot
2022-10-10 15:04:12 +00:00
parent 91221dbe34
commit 73532dcec0
3 changed files with 13 additions and 11 deletions

View File

@@ -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, &quot;Local&quot;, StringComparison.Ordinal) &amp;&amp;
// ... other providers...
&quot;[provider name]&quot; =&gt; &quot;https://[provider issuer]/&quot;,
_ =&gt; 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">&lt;a class=&quot;btn btn-lg btn-success&quot; asp-controller=&quot;Authentication&quot;
asp-action=&quot;Login&quot; asp-route-provider=&quot;[provider name]&quot;&gt;Sign in using [provider name]&lt;/a&gt;
<pre><code class="lang-html">&lt;button class=&quot;btn btn-lg btn-success&quot; type=&quot;submit&quot; name=&quot;provider&quot; value=&quot;[provider name]&quot;&gt;
Sign in using [provider name]
&lt;/button&gt;
</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&#39;t need to be committed and included in your pull request.</p>
</div>

View File

@@ -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.

View File

@@ -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,