Skip to content

Commit 74eaa4d

Browse files
committed
chore: add user_id claim mapping test case
1 parent 690633b commit 74eaa4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/AspNet.Security.OAuth.Providers.Tests/Etsy/EtsyTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu
1919

2020
[Theory]
2121
[InlineData(ClaimTypes.NameIdentifier, "123456")]
22+
[InlineData("urn:etsy:user_id", "123456")]
2223
[InlineData("urn:etsy:shop_id", "789012")]
2324
public async Task Can_Sign_In_Using_Etsy(string claimType, string claimValue)
2425
=> await AuthenticateUserAndAssertClaimValue(claimType, claimValue);
@@ -36,6 +37,7 @@ public async Task Does_Not_Include_Detailed_Claims_When_IncludeDetailedUserInfo_
3637

3738
// Assert basic claims are present
3839
claims.ShouldContainKey(ClaimTypes.NameIdentifier);
40+
claims.ShouldContainKey(Claims.UserId);
3941
claims.ShouldContainKey(Claims.ShopId);
4042

4143
// Detailed claims should be absent when flag is false

0 commit comments

Comments
 (0)