Skip to content

OpenIdConnectHandler ClaimActions not working #62930

@plano-fwinkler

Description

@plano-fwinkler

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In the OpenIdConnectHandler Class Line 912 the ClaimActions does nothing because it is using an empty Payload Document.

using (var payload = JsonDocument.Parse("{}"))
{
var identity = (ClaimsIdentity)user!.Identity!;
foreach (var action in Options.ClaimActions)
{
action.Run(payload.RootElement, identity, ClaimsIssuer);
}
}

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIncludes: Identity and providers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions