Skip to content

Commit 5b33e0c

Browse files
authored
Add email claim for Yahoo provider (#488)
Email is a mandatory claim. Add it by default to claims.
1 parent a89c5eb commit 5b33e0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AspNet.Security.OAuth.Yahoo/YahooAuthenticationOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public YahooAuthenticationOptions()
2727

2828
ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
2929
ClaimActions.MapJsonKey(ClaimTypes.Name, "name");
30+
ClaimActions.MapJsonKey(ClaimTypes.Email, "email");
3031
ClaimActions.MapJsonKey(Claims.FamilyName, "family_name");
3132
ClaimActions.MapJsonKey(Claims.GivenName, "given_name");
3233
ClaimActions.MapJsonKey(Claims.Picture, "picture");

0 commit comments

Comments
 (0)