-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vicente.Yu <^@^>
- Loading branch information
Vicente.Yu
committed
Dec 29, 2023
1 parent
77713f3
commit dea3c98
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,20 @@ protected internal override void RegisterAuthentication(AuthenticationBuilder bu | |
[InlineData(ClaimTypes.Name, "test-name")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.UnionId, "test-union-id")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Avatar, "https://www.feishu.cn/avatar/icon_big")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.AvatarBig, "https://www.feishu.cn/avatar/icon_big")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.AvatarMiddle, "https://www.feishu.cn/avatar/icon_middle")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.AvatarThumb, "https://www.feishu.cn/avatar/icon_thumb")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.AvatarUrl, "https://www.feishu.cn/avatar/icon")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Email, "[email protected]")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.EmployeeNo, "111222333")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.EnName, "Lilei")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Mobile, "+86130xxxx0000")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Name, "test-name")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.OpenId, "test-open-id")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Picture, "https://www.feishu.cn/avatar")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.Sub, "ou_caecc734c2e3328a62489fe0648c4b98779515d3")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.TenantKey, "736588c92lxf175d")] | ||
[InlineData(FeishuAuthenticationConstants.Claims.UserId, "5d9bdxxx")] | ||
public async Task Can_Sign_In_Using_Feishu(string claimType, string claimValue) | ||
=> await AuthenticateUserAndAssertClaimValue(claimType, claimValue); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
"avatar_big": "https://www.feishu.cn/avatar/icon_big", | ||
"email": "[email protected]", | ||
"user_id": "5d9bdxxx", | ||
"employee_no": "111222333", | ||
"mobile": "+86130xxxx0000" | ||
} | ||
} | ||
|