Repository navigation
Update to .NET 11 - #201
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Package upgrades introduce OpenAPI 3.x incompatibilities in the authentication response helpers, causing protected-endpoint OpenAPI and Swagger document generation to fail with MissingMethodException.
1 open issue
What changed in this PR
This PR moves the authentication samples and publishing workflows to .NET 11, adds a .NET 11 target to the abstractions library, and introduces a dedicated Swashbuckle JWT sample.
Changes:
- Update target frameworks, authentication dependencies, and OpenAPI packages.
- Replace the solution’s .NET 8 JWT sample entry with the Swashbuckle sample.
- Update publishing SDK versions and lengthen the README’s example signing key.
| File | Description |
|---|---|
| src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj | Add net11.0 and update JWT dependencies. |
| SimpleAuthentication.slnx | Replace the .NET 8 sample entry with Swashbuckle. |
| samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj | Upgrade framework and OpenAPI packages. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/Properties/launchSettings.json | Add Swagger launch profiles. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/Program.cs | Add JWT endpoints and Swashbuckle integration. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/JwtBearerSample.Swashbuckle.csproj | Target net11.0 and Swashbuckle 11. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ClaimsTransformer.cs | Add sample claims transformation. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ApplicationAuthenticationSchemeProvider.cs | Add request-based authentication scheme selection. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.json | Add JWT and logging configuration. |
| samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.Development.json | Add development logging settings. |
| samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj | Upgrade framework and OpenAPI packages. |
| samples/MinimalApis/ApiKeySample/ApiKeySample.csproj | Upgrade framework and OpenAPI packages. |
| samples/Controllers/JwtBearerSample/JwtBearerSample.csproj | Upgrade framework and OpenAPI packages. |
| samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj | Upgrade framework and OpenAPI packages. |
| samples/Controllers/ApiKeySample/ApiKeySample.csproj | Upgrade framework and OpenAPI packages. |
| README.md | Lengthen the example JWT signing key. |
| .github/workflows/publish.yml | Use the .NET 11 SDK for publishing. |
| .github/workflows/publish_swashbuckle.yml | Use the .NET 11 SDK for Swashbuckle publishing. |
| .github/workflows/publish_abstractions.yml | Use the .NET 11 SDK for abstractions publishing. |
Review effort: Balanced
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.12" /> | ||
| <PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="10.2.3" /> | ||
| <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="11.0.0" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.