Skip to content

Commit 5a16f65

Browse files
committed
change GenericPrincipal to ClaimsPrincipal
thanks to the help of @robertoB
1 parent 281f96d commit 5a16f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/KK.AspNetCore.EasyAuthAuthentication/AuthenticationTicketBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static AuthenticationTicket Build(IEnumerable<JObject> claimsPayload, str
2121
var identity = new ClaimsIdentity(createClaims(claimsPayload), AuthenticationTypesNames.Federation); // setting ClaimsIdentity.AuthenticationType to value that azuread non-easyauth setups use
2222
addScpClaim(identity);
2323
identity.AddClaim(new Claim("provider_name", providerName));
24-
var genericPrincipal = new GenericPrincipal(identity, null);
24+
var genericPrincipal = new ClaimsPrincipal(identity);
2525
return new AuthenticationTicket(genericPrincipal, EasyAuthAuthenticationDefaults.AuthenticationScheme);
2626
}
2727

0 commit comments

Comments
 (0)