Skip to content

Commit 281f96d

Browse files
committed
change GenericIdentity to ClaimsIdentity
thanks for the help from @robertoB
1 parent 54154f2 commit 281f96d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/KK.AspNetCore.EasyAuthAuthentication/AuthenticationTicketBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public static class AuthenticationTicketBuilder
1818
/// <returns>A `AuthenticationTicket`</returns>
1919
public static AuthenticationTicket Build(IEnumerable<JObject> claimsPayload, string principalName, string providerName)
2020
{
21-
var identity = new GenericIdentity(principalName, AuthenticationTypesNames.Federation); // setting ClaimsIdentity.AuthenticationType to value that azuread non-easyauth setups use
22-
identity.AddClaims(createClaims(claimsPayload));
21+
var identity = new ClaimsIdentity(createClaims(claimsPayload), AuthenticationTypesNames.Federation); // setting ClaimsIdentity.AuthenticationType to value that azuread non-easyauth setups use
2322
addScpClaim(identity);
2423
identity.AddClaim(new Claim("provider_name", providerName));
2524
var genericPrincipal = new GenericPrincipal(identity, null);

0 commit comments

Comments
 (0)