Skip to content

Commit

Permalink
updated to latest nuget versions and added support for OpenIddict 5
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasduft committed Dec 20, 2023
1 parent fb377da commit 5d3c4f8
Show file tree
Hide file tree
Showing 38 changed files with 546 additions and 246 deletions.
6 changes: 6 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"commands": [
"dotnet-outdated"
]
},
"dotnet-ef": {
"version": "8.0.0",
"commands": [
"dotnet-ef"
]
}
}
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ dotnet_diagnostic.CA1848.severity = none
# CA1852: Type 'Program' can be sealed because it has no subtypes in its containing assembly and is not externally visible
dotnet_diagnostic.CA1852.severity = none

# IDE0290: Use primary constructor (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0290)
dotnet_diagnostic.IDE0290.severity = none

##########################################
# Language Rules
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules
Expand Down
4 changes: 2 additions & 2 deletions samples/Api/Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="OpenIddict.Validation.AspNetCore" Version="4.9.0" />
<PackageReference Include="OpenIddict.Validation.SystemNetHttp" Version="4.9.0" />
<PackageReference Include="OpenIddict.Validation.AspNetCore" Version="5.0.0" />
<PackageReference Include="OpenIddict.Validation.SystemNetHttp" Version="5.0.0" />
</ItemGroup>

</Project>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions samples/Server/Models/Data/UI/20231220090227_OpenIddict5Support.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Server.Models.Data.UI
{
/// <inheritdoc />
public partial class OpenIddict5Support : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Type",
table: "OpenIddictApplications",
newName: "ClientType");

migrationBuilder.AddColumn<string>(
name: "ApplicationType",
table: "OpenIddictApplications",
type: "TEXT",
maxLength: 50,
nullable: true);

migrationBuilder.AddColumn<string>(
name: "JsonWebKeySet",
table: "OpenIddictApplications",
type: "TEXT",
nullable: true);

migrationBuilder.AddColumn<string>(
name: "Settings",
table: "OpenIddictApplications",
type: "TEXT",
nullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApplicationType",
table: "OpenIddictApplications");

migrationBuilder.DropColumn(
name: "JsonWebKeySet",
table: "OpenIddictApplications");

migrationBuilder.DropColumn(
name: "Settings",
table: "OpenIddictApplications");

migrationBuilder.RenameColumn(
name: "ClientType",
table: "OpenIddictApplications",
newName: "Type");
}
}
}
Loading

0 comments on commit 5d3c4f8

Please sign in to comment.