diff --git a/Directory.Build.props b/Directory.Build.props index cb71ad1..b536fe2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,7 +8,7 @@ - + all diff --git a/alsami.Duende.IdentityServer.AspNetCore.Testing.sln.DotSettings b/alsami.Duende.IdentityServer.AspNetCore.Testing.sln.DotSettings index 588e670..5e244bc 100644 --- a/alsami.Duende.IdentityServer.AspNetCore.Testing.sln.DotSettings +++ b/alsami.Duende.IdentityServer.AspNetCore.Testing.sln.DotSettings @@ -4,4 +4,7 @@ Field, Property, Event, Method <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + <Policy><Descriptor Staticness="Static" AccessRightKinds="Private" Description="Static fields (private)"><ElementKinds><Kind Name="FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" WarnAboutPrefixesAndSuffixes="False" Prefix="" Suffix="" Style="aaBb" /></Policy> + True True \ No newline at end of file diff --git a/global.json b/global.json index d11faaf..97614a3 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.101", + "version": "9.0.100", "rollForward": "latestFeature" } } diff --git a/src/alsami.Duende.IdentityServer.AspNetCore.Testing/alsami.Duende.IdentityServer.AspNetCore.Testing.csproj b/src/alsami.Duende.IdentityServer.AspNetCore.Testing/alsami.Duende.IdentityServer.AspNetCore.Testing.csproj index f7c31f7..0732289 100644 --- a/src/alsami.Duende.IdentityServer.AspNetCore.Testing/alsami.Duende.IdentityServer.AspNetCore.Testing.csproj +++ b/src/alsami.Duende.IdentityServer.AspNetCore.Testing/alsami.Duende.IdentityServer.AspNetCore.Testing.csproj @@ -1,9 +1,9 @@  - net8.0 + net9.0 true - 2023©Sami Al Khatib + 2024©Sami Al Khatib Sami Al Khatib OpenID Connect and OAuth 2.0 Testing-Framework for ASP.NET Core and Duende.IdentityServer OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer;Duende.IdentityServer;AspNetCore;AspNetCore Testing;IntegrationTesting;Testing;IdentityServer Proxy; @@ -13,8 +13,8 @@ https://github.com/alsami/alsami.Duende.IdentityServer.AspNetCore.Testing/blob/master/changelog.md git git://github.com/alsami/alsami.Duende.IdentityServer.AspNetCore.Testing - 7.0.0 - 7.0.0 + 8.0.0 + 8.0.0 true $(NoWarn);S3881 @@ -24,9 +24,9 @@ - + - + all diff --git a/test/Duende.IdentityServer.Api/Duende.IdentityServer.Api.csproj b/test/Duende.IdentityServer.Api/Duende.IdentityServer.Api.csproj index 8ab8d44..9359fbc 100644 --- a/test/Duende.IdentityServer.Api/Duende.IdentityServer.Api.csproj +++ b/test/Duende.IdentityServer.Api/Duende.IdentityServer.Api.csproj @@ -1,11 +1,11 @@  - net8.0 + net9.0 - + diff --git a/test/Duende.IdentityServer.Api/Startup.cs b/test/Duende.IdentityServer.Api/Startup.cs index 037564a..d22e76e 100644 --- a/test/Duende.IdentityServer.Api/Startup.cs +++ b/test/Duende.IdentityServer.Api/Startup.cs @@ -24,11 +24,13 @@ public void ConfigureServices(IServiceCollection services) services.AddMvc(options => options.EnableEndpointRouting = false); } +#pragma warning disable S2325 public void Configure(IApplicationBuilder app) +#pragma warning restore S2325 { app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(builder => builder.MapControllers().RequireAuthorization()); - } + } } \ No newline at end of file diff --git a/test/Duende.IdentityServer.Server/Duende.IdentityServer.Server.csproj b/test/Duende.IdentityServer.Server/Duende.IdentityServer.Server.csproj index 9cce24b..c70ce9d 100644 --- a/test/Duende.IdentityServer.Server/Duende.IdentityServer.Server.csproj +++ b/test/Duende.IdentityServer.Server/Duende.IdentityServer.Server.csproj @@ -1,14 +1,14 @@  - net8.0 + net9.0 $(NoWarn);CS0618 - - - + + + diff --git a/test/Duende.IdentityServer.Server/Startup.cs b/test/Duende.IdentityServer.Server/Startup.cs index 3c471f6..074636a 100644 --- a/test/Duende.IdentityServer.Server/Startup.cs +++ b/test/Duende.IdentityServer.Server/Startup.cs @@ -8,6 +8,7 @@ namespace Duende.IdentityServer.Server; public class Startup { +#pragma warning disable S2325 public void ConfigureServices(IServiceCollection services) { services.AddLogging().AddSerilog(ConfigureLogger); @@ -44,6 +45,8 @@ public void Configure(IApplicationBuilder app) return Task.CompletedTask; }); } + +#pragma warning restore S2325 private static void ConfigureLogger(LoggerConfiguration loggerConfiguration) { diff --git a/test/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests.csproj b/test/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests.csproj index b1b0a3e..72554b6 100644 --- a/test/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests.csproj +++ b/test/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests/alsami.Duende.IdentityServer.AspNetCore.Testing.Tests.csproj @@ -1,29 +1,29 @@  - net8.0 + net9.0 false true $(NoWarn);S2699 - - - + + + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + all runtime; build; native; contentfiles; analyzers; buildtransitive