Skip to content

Security Authentication handlers should not reference JwtSecurityToken #20066

Open
@brentschmaltz

Description

@brentschmaltz

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.
Example: I am trying to do [...] but [...]

Describe the solution you'd like

Asp.net uses ISecurityTokenValidator.ValidateToken which has an out parameter of type SecurityToken. asp.net assumes a JwtSecurityToken.
If a user plugs in a different ISecurityTokenValidator that returns a different valid token that represents a JWT, this will fail.

Here for OIDC

also here (there are others)

asp.net and IdentityModel will need to work together to develop the correct JWT abstractions so new token validators, handlers and tokens can be used.

see: IdentityModel AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#1349

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-mediumThis issue impacts approximately half of our customersarea-authIncludes: Authn, Authz, OAuth, OIDC, BearerenhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-majorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions