Skip to content

Commit

Permalink
新增用户时默认添加Email声明
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-js committed Jun 20, 2019
1 parent eb80a93 commit a8ac414
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ await _identityDb.UserClaims.AddRangeAsync(new List<IdS4UserClaim>
{
new IdS4UserClaim(user.Id, JwtClaimTypes.Id, user.Id),
new IdS4UserClaim(user.Id, JwtClaimTypes.Subject, user.Id),
new IdS4UserClaim(user.Id, JwtClaimTypes.Name, user.UserName)
new IdS4UserClaim(user.Id, JwtClaimTypes.Name, user.UserName),
new IdS4UserClaim(user.Id, JwtClaimTypes.Email, user.Email),
new IdS4UserClaim(user.Id, JwtClaimTypes.EmailVerified, user.EmailConfirmed.ToString())
},
cancellationToken
);
Expand Down

0 comments on commit a8ac414

Please sign in to comment.