Skip to content

Commit 2672157

Browse files
committed
Upgrade to .NET 9.0 and migrate to Duende IdentityServer
Updated all projects to target .NET 9.0, upgrading from .NET Core 3.1. Replaced IdentityServer4 with Duende IdentityServer due to IdentityServer4's end-of-life. Updated package references, namespaces, and related code to reflect the migration.
1 parent 00ba1db commit 2672157

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Hosts/Hosts.CookieAuthentication/Hosts.CookieAuthentication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/Hosts/Hosts.IdentityServerAuthentication/Controllers/LoginController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using System.Linq;
44
using System.Security.Claims;
55
using System.Threading.Tasks;
6+
using Duende.IdentityServer;
7+
using Duende.IdentityServer.Services;
68
using Hosts.Shared.InMemory;
79
using IdentityManager2;
8-
using IdentityServer4;
9-
using IdentityServer4.Services;
1010
using Microsoft.AspNetCore.Authentication;
1111
using Microsoft.AspNetCore.Http;
1212
using Microsoft.AspNetCore.Mvc;

src/Hosts/Hosts.IdentityServerAuthentication/Hosts.IdentityServerAuthentication.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="IdentityServer4" Version="3.1.0" />
8+
<PackageReference Include="Duende.IdentityServer" Version="7.3.2" />
99
</ItemGroup>
1010

1111
<ItemGroup>

src/Hosts/Hosts.IdentityServerAuthentication/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
using System.Collections.Generic;
33
using System.IdentityModel.Tokens.Jwt;
44
using System.Linq;
5+
using Duende.IdentityServer.Models;
6+
using Duende.IdentityServer.Test;
57
using Hosts.Shared.InMemory;
68
using IdentityManager2.Configuration;
7-
using IdentityServer4.Models;
8-
using IdentityServer4.Test;
99
using Microsoft.AspNetCore.Builder;
1010
using Microsoft.Extensions.DependencyInjection;
1111

src/Hosts/Hosts.LosthostAuthentication/Hosts.LosthostAuthentication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

src/Hosts/Hosts.Shared/Hosts.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)