Skip to content

Commit be5f04f

Browse files
kinosangkevinchalet
authored andcommitted
Fix Weibo email scope detection
1 parent 5a29941 commit be5f04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNet.Security.OAuth.Weibo/WeiboAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync([NotNull]
6161
// When the email address is not public, retrieve it from
6262
// the emails endpoint if the user:email scope is specified.
6363
if (!string.IsNullOrEmpty(Options.UserEmailsEndpoint) &&
64-
!identity.HasClaim(claim => claim.Type == ClaimTypes.Email) && Options.Scope.Contains("user:email"))
64+
!identity.HasClaim(claim => claim.Type == ClaimTypes.Email) && Options.Scope.Contains("email"))
6565
{
6666
var email = await GetEmailAsync(tokens);
6767
if (!string.IsNullOrEmpty(address))

0 commit comments

Comments
 (0)