Skip to content

Commit e66a370

Browse files
Add email to Yahoo tests
Add a test for the email claim for the Yahoo provider. Relates to #488.
1 parent 5b33e0c commit e66a370

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/AspNet.Security.OAuth.Providers.Tests/Yahoo/YahooTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
2828
}
2929

3030
[Theory]
31+
[InlineData(ClaimTypes.Email, "[email protected]")]
3132
[InlineData(ClaimTypes.NameIdentifier, "my-id")]
3233
[InlineData(ClaimTypes.Name, "John Smith")]
3334
[InlineData("urn:yahoo:familyname", "Smith")]

test/AspNet.Security.OAuth.Providers.Tests/Yahoo/bundle.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"contentFormat": "json",
1818
"contentJson": {
1919
"sub": "my-id",
20+
"email": "[email protected]",
2021
"name": "John Smith",
2122
"family_name": "Smith",
2223
"given_name": "John",

0 commit comments

Comments
 (0)