Skip to content

Commit

Permalink
Bump OpenIddict to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Dec 17, 2024
1 parent ccfc1cd commit 66c0143
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions guides/getting-started/creating-your-own-server-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,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.AspNetCore` and `OpenIddict.EntityFrameworkCore` packages:

```xml
<PackageReference Include="OpenIddict.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.AspNetCore" Version="6.0.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="6.0.0" />
```

- **Register your Entity Framework Core database context and configure the OpenIddict core services** in `Program.cs`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you don't want to start from one of the recommended samples, you'll need to:
- **Reference the `OpenIddict.AspNetCore` package**:

```xml
<PackageReference Include="OpenIddict.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.AspNetCore" Version="6.0.0" />
```

- **Configure the OpenIddict validation services** in `Startup.ConfigureServices`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ in web and desktop applications. If you want to use a non-interactive flow like
- **Update your `.csproj` file** to reference the latest `OpenIddict` package:

```xml
<PackageReference Include="OpenIddict" Version="5.8.0" />
<PackageReference Include="OpenIddict" Version="6.0.0" />
```

- **Configure the OpenIddict client services** in `Program.cs` (or `Startup.cs` if you use the regular ASP.NET Core web host):
Expand Down Expand Up @@ -72,8 +72,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.AspNetCore` and `OpenIddict.EntityFrameworkCore` packages:

```xml
<PackageReference Include="OpenIddict.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.AspNetCore" Version="6.0.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="6.0.0" />
```

- **Configure the OpenIddict core services** in `Program.cs` (or `Startup.cs`, depending on whether you're using the minimal host or the regular host):
Expand Down
6 changes: 4 additions & 2 deletions guides/migration/50-to-60.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## What's new?

The most important changes introduced in 6.0 can be found [here](https://kevinchalet.com/2024/12/17/openiddict-6-0-general-availability/).

> [!NOTE]
> **Migrating to OpenIddict 6.0 doesn't require making changes to your database** but new APIs have been added to the stores and
existing APIs have been reworked: if you're using custom stores, you'll need to tweak them when upgrading to OpenIddict 6.0.
Expand All @@ -13,8 +15,8 @@ For that, update your `.csproj` file to reference the `OpenIddict` 6.x packages.
```xml
<ItemGroup>
<!-- OpenIddict 5.x: -->
<PackageReference Include="OpenIddict.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.AspNetCore" Version="6.0.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="6.0.0" />

<!-- OpenIddict 6.x: -->
<PackageReference Include="OpenIddict.AspNetCore" Version="6.0.0-rc1.24608.69" />
Expand Down
6 changes: 3 additions & 3 deletions integrations/aspnet-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ To configure the ASP.NET Core integration, you'll need to:
(depending on whether you need the client and/or server and/or validation features in your project):

```xml
<PackageReference Include="OpenIddict.Client.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.Server.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.Validation.AspNetCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.Client.AspNetCore" Version="6.0.0" />
<PackageReference Include="OpenIddict.Server.AspNetCore" Version="6.0.0" />
<PackageReference Include="OpenIddict.Validation.AspNetCore" Version="6.0.0" />
```

- **Call `UseAspNetCore()` for each OpenIddict feature (client, server and validation) you want to add**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/entity-framework-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To configure OpenIddict to use Entity Framework Core as the database for applica
- **Reference the `OpenIddict.EntityFrameworkCore` package**:

```xml
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="5.8.0" />
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="6.0.0" />
```

- **Create a database context deriving from `DbContext` (or `IdentityDbContext` when using ASP.NET Core Identity)**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/entity-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To configure OpenIddict to use Entity Framework 6.x as the database for applicat
- **Reference the `OpenIddict.EntityFramework` package**:

```xml
<PackageReference Include="OpenIddict.EntityFramework" Version="5.8.0" />
<PackageReference Include="OpenIddict.EntityFramework" Version="6.0.0" />
```

- **Create a database context deriving from `DbContext` and register the OpenIddict entities in the model**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To configure OpenIddict to use MongoDB as the database for applications, authori
- **Reference the `OpenIddict.MongoDb` package**:

```xml
<PackageReference Include="OpenIddict.MongoDb" Version="5.8.0" />
<PackageReference Include="OpenIddict.MongoDb" Version="6.0.0" />
```

- **Configure OpenIddict to use the MongoDB stores**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/operating-systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ To configure the operating system integration, you'll need to:
- **Reference the `OpenIddict.Client.SystemIntegration` package**:
```xml
<PackageReference Include="OpenIddict.Client.SystemIntegration" Version="5.8.0" />
<PackageReference Include="OpenIddict.Client.SystemIntegration" Version="6.0.0" />
```
- **Call `UseSystemIntegration()` in the client options**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/quartz.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To configure OpenIddict to use Quartz.NET to perform automated cleanup tasks, yo
- **Reference the `OpenIddict.Quartz` package**:

```xml
<PackageReference Include="OpenIddict.Quartz" Version="5.8.0" />
<PackageReference Include="OpenIddict.Quartz" Version="6.0.0" />
```

- **Register the Quartz.NET services and configure it to use dependency injection and an in-memory store**:
Expand Down
4 changes: 2 additions & 2 deletions integrations/system-net-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ To configure the `System.Net.Http` integration, you'll need to:
(depending on whether you need the client and/or validation features in your project):

```xml
<PackageReference Include="OpenIddict.Client.SystemNetHttp" Version="5.8.0" />
<PackageReference Include="OpenIddict.Validation.SystemNetHttp" Version="5.8.0" />
<PackageReference Include="OpenIddict.Client.SystemNetHttp" Version="6.0.0" />
<PackageReference Include="OpenIddict.Validation.SystemNetHttp" Version="6.0.0" />
```

- **Call `UseSystemNetHttp()` for each OpenIddict feature (client and validation) you want to add**:
Expand Down
2 changes: 1 addition & 1 deletion integrations/web-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ To configure the `System.Net.Http` integration, you'll need to:
- **Reference the `OpenIddict.Client.WebIntegration` package**:

```xml
<PackageReference Include="OpenIddict.Client.WebIntegration" Version="5.8.0" />
<PackageReference Include="OpenIddict.Client.WebIntegration" Version="6.0.0" />
```

- **Call `UseWebProviders()` in the client options**:
Expand Down

0 comments on commit 66c0143

Please sign in to comment.