Skip to content

ClaimsPrincipal on ASP.NET Core v8.0.101 Doesn't Contain All Claims From The OpenIdConnect Token #53842

@mschaefer-gresham

Description

@mschaefer-gresham

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The 'email' claim is not present when attempting to do a claims transformation after upgrading to 8.0.101. In my case, I'm reading the access token sent in the header.

var email = principal.Claims.FirstOrDefault(c => c.Type == "email")?.Value;

I fixed this issue by downgrading Microsoft.AspNetCore.Authentication.JwtBearer from 8.0.101 to 7.0.15.

Expected Behavior

email claim is present.

Steps To Reproduce

Pass email claim in jwt token.

Exceptions (if any)

No response

.NET Version

8.0.101

Anything else?

I am reopening issue 51538 because no one has looked at the issue and it has finally auto-closed.

Can someone please have a look at this? It's been an open issue for over 3 months without any feedback.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions