We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a29941 commit be5f04fCopy full SHA for be5f04f
src/AspNet.Security.OAuth.Weibo/WeiboAuthenticationHandler.cs
@@ -61,7 +61,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync([NotNull]
61
// When the email address is not public, retrieve it from
62
// the emails endpoint if the user:email scope is specified.
63
if (!string.IsNullOrEmpty(Options.UserEmailsEndpoint) &&
64
- !identity.HasClaim(claim => claim.Type == ClaimTypes.Email) && Options.Scope.Contains("user:email"))
+ !identity.HasClaim(claim => claim.Type == ClaimTypes.Email) && Options.Scope.Contains("email"))
65
{
66
var email = await GetEmailAsync(tokens);
67
if (!string.IsNullOrEmpty(address))
0 commit comments