-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Support multiple issuers in JwtBearerConfigureOptions #42000
Copy link
Copy link
Closed
Labels
area-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearerarea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-userjwtsThe `dotnet user-jwts` CLI toolThe `dotnet user-jwts` CLI tooluntriaged
Milestone
Metadata
Metadata
Assignees
Labels
area-authIncludes: Authn, Authz, OAuth, OIDC, BearerIncludes: Authn, Authz, OAuth, OIDC, Bearerarea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-userjwtsThe `dotnet user-jwts` CLI toolThe `dotnet user-jwts` CLI tooluntriaged
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
When configuring default bearer authentication options from configuration, only one valid issuer is supported.
aspnetcore/src/Security/Authentication/JwtBearer/src/JwtBearerConfigureOptions.cs
Lines 38 to 55 in d7d7deb
Describe the solution you'd like
The configuration schema should support the configuration of multiple valid issuers, like it does for audiences.
aspnetcore/src/Security/Authentication/JwtBearer/src/JwtBearerConfigureOptions.cs
Line 46 in d7d7deb
Additional context
See #41956 (comment).
/cc @DamianEdwards