mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-09-24 04:53:34 +08:00
Update the documentation pages
This commit is contained in:
@@ -102,8 +102,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>
|
||||
</li>
|
||||
<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.1.1" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.1.1" />
|
||||
<pre><code class="lang-xml"><PackageReference Include="OpenIddict.AspNetCore" Version="4.0.0" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="4.0.0" />
|
||||
</code></pre></li>
|
||||
<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>
|
||||
@@ -136,7 +136,7 @@ Here's an example for the client credentials grant, used in machine-to-machi
|
||||
.AddServer(options =>
|
||||
{
|
||||
// Enable the token endpoint.
|
||||
options.SetTokenEndpointUris("/connect/token");
|
||||
options.SetTokenEndpointUris("connect/token");
|
||||
|
||||
// Enable the client credentials flow.
|
||||
options.AllowClientCredentialsFlow();
|
||||
|
Reference in New Issue
Block a user