Skip to content

Commit

Permalink
NameIDentifier should use Id from context instead of username (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
woutervs authored and TerribleDev committed Apr 1, 2018
1 parent c74cd15 commit f60e8b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected override async Task<AuthenticationTicket> AuthenticateCoreAsync()
};
if (!string.IsNullOrEmpty(context.Id))
{
context.Identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, context.UserName, XmlSchemaString, Options.AuthenticationType));
context.Identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, context.Id, XmlSchemaString, Options.AuthenticationType));
}
if (!string.IsNullOrEmpty(context.UserName))
{
Expand Down

0 comments on commit f60e8b5

Please sign in to comment.