Skip to content

Fix loading dotnet user-jwts config #59425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Fix loading dotnet user-jwts config #59425

merged 1 commit into from
Dec 13, 2024

Conversation

halter73
Copy link
Member

Fixes #58996

@ghost ghost added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Dec 11, 2024
@halter73 halter73 requested review from captainsafia and MackinnonBuck and removed request for captainsafia December 11, 2024 02:46
@@ -72,7 +72,7 @@ public void Configure(string? name, JwtBearerOptions options)
ValidAudiences = audiences,
ValidAudience = audience,
ValidateIssuerSigningKey = true,
IssuerSigningKeys = GetIssuerSigningKeys(configSection, issuers),
IssuerSigningKeys = GetIssuerSigningKeys(configSection, [issuer, ..issuers]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that we didn't pass the standalone issuer here was always a bug, correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a regression caused in .NET 9 by #52821. I plan to backport this once approved.

@halter73 halter73 merged commit 97d1829 into main Dec 13, 2024
27 checks passed
@halter73 halter73 deleted the halter73/58996 branch December 13, 2024 19:04
@halter73
Copy link
Member Author

/backport to release/9.0

@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Dec 13, 2024
Copy link
Contributor

Started backporting to release/9.0: https://github.com/dotnet/aspnetcore/actions/runs/12321516859

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 9: dotnet user-jwts not working
2 participants