Add an OpenIddict 4.0 migration guide

This commit is contained in:
Kévin Chalet
2022-12-23 20:43:01 +01:00
parent 78e84eff58
commit 009c8ef68d
4 changed files with 197 additions and 5 deletions

View File

@@ -12,8 +12,8 @@ If you don't want to start from one of the recommended samples, you'll need to:
- **Update your `.csproj` file** to reference the latest `OpenIddict` packages:
```xml
<PackageReference Include="OpenIddict.AspNetCore" Version="3.1.1" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.1.1" />
<PackageReference Include="OpenIddict.AspNetCore" Version="4.0.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="4.0.0" />
```
- **Configure the OpenIddict core, server and validation services** in `Startup.ConfigureServices`.
@@ -49,7 +49,7 @@ If you don't want to start from one of the recommended samples, you'll need to:
.AddServer(options =>
{
// Enable the token endpoint.
options.SetTokenEndpointUris("/connect/token");
options.SetTokenEndpointUris("connect/token");
// Enable the client credentials flow.
options.AllowClientCredentialsFlow();