mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-07-17 01:46:23 +08:00
Update the documentation pages
This commit is contained in:
parent
de8c28e5ba
commit
5b76532d3f
@ -117,7 +117,8 @@ While not recommended, support for the <code>code_challenge_method=plain</code>
|
|||||||
<pre><code class="lang-csharp">services.AddOpenIddict()
|
<pre><code class="lang-csharp">services.AddOpenIddict()
|
||||||
.AddServer(options =>
|
.AddServer(options =>
|
||||||
{
|
{
|
||||||
options.Configure(options => options.CodeChallengeMethods.Add(CodeChallengeMethods.Plain));
|
options.Configure(options => options.CodeChallengeMethods.Add(
|
||||||
|
CodeChallengeMethods.Plain));
|
||||||
});
|
});
|
||||||
</code></pre></article>
|
</code></pre></article>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,8 +77,8 @@
|
|||||||
using <strong>individual user accounts authentication</strong> is strongly recommended as it automatically includes the default ASP.NET Core Identity UI, based on Razor Pages.</p>
|
using <strong>individual user accounts authentication</strong> is strongly recommended as it automatically includes the default ASP.NET Core Identity UI, based on Razor Pages.</p>
|
||||||
</li>
|
</li>
|
||||||
<li><p><strong>Update your <code>.csproj</code> file</strong> to reference the latest <code>OpenIddict</code> packages:</p>
|
<li><p><strong>Update your <code>.csproj</code> file</strong> to reference the latest <code>OpenIddict</code> packages:</p>
|
||||||
<pre><code class="lang-xml"><PackageReference Include="OpenIddict.AspNetCore" Version="3.0.4" />
|
<pre><code class="lang-xml"><PackageReference Include="OpenIddict.AspNetCore" Version="3.0.5" />
|
||||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.0.4" />
|
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.0.5" />
|
||||||
</code></pre></li>
|
</code></pre></li>
|
||||||
<li><p><strong>Configure the OpenIddict core, server and validation services</strong> in <code>Startup.ConfigureServices</code>.
|
<li><p><strong>Configure the OpenIddict core, server and validation services</strong> in <code>Startup.ConfigureServices</code>.
|
||||||
Here's an example for the client credentials grant, used in machine-to-machine scenarios:</p>
|
Here's an example for the client credentials grant, used in machine-to-machine scenarios:</p>
|
||||||
|
@ -75,8 +75,8 @@
|
|||||||
<h2 id="update-your-packages-references">Update your packages references</h2>
|
<h2 id="update-your-packages-references">Update your packages references</h2>
|
||||||
<p>For that, update your <code>.csproj</code> file to reference the <code>OpenIddict.AspNetCore</code> 3.x metapackage:</p>
|
<p>For that, update your <code>.csproj</code> file to reference the <code>OpenIddict.AspNetCore</code> 3.x metapackage:</p>
|
||||||
<pre><code class="lang-xml"><ItemGroup>
|
<pre><code class="lang-xml"><ItemGroup>
|
||||||
<PackageReference Include="OpenIddict.AspNetCore" Version="3.0.4" />
|
<PackageReference Include="OpenIddict.AspNetCore" Version="3.0.5" />
|
||||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.0.4" />
|
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.0.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</code></pre><h2 id="ensure-your-application-doesnt-reference-legacyunsupported-packages">Ensure your application doesn't reference legacy/unsupported packages</h2>
|
</code></pre><h2 id="ensure-your-application-doesnt-reference-legacyunsupported-packages">Ensure your application doesn't reference legacy/unsupported packages</h2>
|
||||||
<p>As part of the AspNet.Security.OpenIdConnect.Server/OpenIddict merge, the ASOS packages and 2 OpenIddict packages have been marked as legacy
|
<p>As part of the AspNet.Security.OpenIdConnect.Server/OpenIddict merge, the ASOS packages and 2 OpenIddict packages have been marked as legacy
|
||||||
@ -198,7 +198,7 @@ still work after migrating, consider using the <code>principal.HasScope()</code>
|
|||||||
builder.RequireClaim(Claims.Private.Scope, "api1");
|
builder.RequireClaim(Claims.Private.Scope, "api1");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</code></pre><h2 id="add-an-apply-migrations-if-necessary">Add an apply migrations, if necessary</h2>
|
</code></pre><h2 id="add-and-apply-migrations-if-necessary">Add and apply migrations, if necessary</h2>
|
||||||
<p>If your application uses Entity Framework Core or Entity Framework 6, add a migration to react to the schema changes listed below and apply it.</p>
|
<p>If your application uses Entity Framework Core or Entity Framework 6, add a migration to react to the schema changes listed below and apply it.</p>
|
||||||
<h3 id="updated-properties">Updated properties</h3>
|
<h3 id="updated-properties">Updated properties</h3>
|
||||||
<table>
|
<table>
|
||||||
|
@ -9897,7 +9897,7 @@
|
|||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "configuration/proof-key-for-code-exchange.html",
|
"relative_path": "configuration/proof-key-for-code-exchange.html",
|
||||||
"hash": "L/hXMSmsUxcNSH2IJxQLBA=="
|
"hash": "oCwSdYRd1bK5ksTRpu0Dlg=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
@ -11428,7 +11428,7 @@
|
|||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "guide/getting-started.html",
|
"relative_path": "guide/getting-started.html",
|
||||||
"hash": "gGhXsXq9ylXZmxX2NdMpvQ=="
|
"hash": "nqHLmVRQYdtOgDveXDpG9A=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
@ -11452,7 +11452,7 @@
|
|||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "guide/migration/20-to-30.html",
|
"relative_path": "guide/migration/20-to-30.html",
|
||||||
"hash": "O/iTt2dJ0SrUbCqx0gvpsA=="
|
"hash": "+tpfZ6FNCGM03ndYGYtO6w=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user