Make a way to configure more options in TokenValidationParameters using simplified authentication configuration #55389
Labels
area-security
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I'm working on a project where I'm using JWT Bearer tokens with simplified auth configuration like this:
My
appsettings.json
looks like this:My application uses an OIDC server that has a different
NameClaimType
than ASP.NET Security's default. It would be great to be able to specify that in the same configuration (along withRoleClaimType
and maybe other options left behind). Something like this:Describe the solution you'd like
It would be straightforward to add a few more options in JwtBearerConfigureOptions.cs to configure
TokenValidationParameters
further from configuration.I could make a PR myself. Let me know what you think.
Additional context
No response
The text was updated successfully, but these errors were encountered: