-
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.
- Loading branch information
1 parent
9eed802
commit a89b0dd
Showing
8 changed files
with
22 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/AspNet.Security.OAuth.Zoom/AspNet.Security.OAuth.Zoom.csproj
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
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 |
---|---|---|
|
@@ -15,18 +15,7 @@ public class ZoomTests(ITestOutputHelper outputHelper) : OAuthTests<ZoomAuthenti | |
|
||
protected internal override void RegisterAuthentication(AuthenticationBuilder builder) | ||
{ | ||
builder.AddZoom(options => | ||
{ | ||
ConfigureDefaults(builder, options); | ||
}); | ||
} | ||
|
||
protected internal override void ConfigureApplication(IApplicationBuilder app) | ||
{ | ||
app.UseRequestLocalization(new RequestLocalizationOptions | ||
{ | ||
DefaultRequestCulture = new Microsoft.AspNetCore.Localization.RequestCulture("en-US"), | ||
}); | ||
builder.AddZoom(options => ConfigureDefaults(builder, options)); | ||
} | ||
|
||
[Theory] | ||
|
@@ -35,7 +24,11 @@ protected internal override void ConfigureApplication(IApplicationBuilder app) | |
[InlineData(ClaimTypes.Email, "[email protected]")] | ||
[InlineData(ClaimTypes.GivenName, "Frodo")] | ||
[InlineData(ClaimTypes.Surname, "Baggins")] | ||
[InlineData(ZoomAuthenticationConstants.Claims.PersonalMeetingUrl, "https://us04web.zoom.us/j/5478221937?pwd=eZUKx2n11af")] | ||
[InlineData(ZoomAuthenticationConstants.Claims.Verified, "0")] | ||
[InlineData(ZoomAuthenticationConstants.Claims.Status, "active")] | ||
[InlineData(ZoomAuthenticationConstants.Claims.Picture, "https://upload.wikimedia.org/wikipedia/en/4/4e/Elijah_Wood_as_Frodo_Baggins.png")] | ||
[InlineData(ClaimTypes.MobilePhone, "+2348012345678")] | ||
public async Task Can_Sign_In_Using_Zoom(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 |
---|---|---|
|
@@ -13,15 +13,19 @@ | |
}, | ||
{ | ||
"comment": "https://developers.zoom.us/docs/api/rest/reference/user/methods/#tag/Users", | ||
"uri": "https://zoom.us/v2/users/me", | ||
"uri": "https://api.zoom.us/v2/users/me", | ||
"contentFormat": "json", | ||
"contentJson": { | ||
"id": "0ECPVTrOjh", | ||
"email": "[email protected]", | ||
"display_name": "Frodo Baggins", | ||
"first_name": "Frodo", | ||
"last_name": "Baggins", | ||
"pic_url": "https://upload.wikimedia.org/wikipedia/en/4/4e/Elijah_Wood_as_Frodo_Baggins.png" | ||
"pic_url": "https://upload.wikimedia.org/wikipedia/en/4/4e/Elijah_Wood_as_Frodo_Baggins.png", | ||
"personal_meeting_url": "https://us04web.zoom.us/j/5478221937?pwd=eZUKx2n11af", | ||
"verified": 0, | ||
"status": "active", | ||
"phone_number": "+2348012345678" | ||
} | ||
} | ||
] | ||
|