-
Notifications
You must be signed in to change notification settings - Fork 16
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
Daniel Tallentire
committed
Nov 20, 2023
1 parent
f548169
commit ac6ada3
Showing
2 changed files
with
18 additions
and
19 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,24 +13,24 @@ public void CanGetUserInfoForServiceAccount() | |
.RequestHeader("Authorization", "Bearer " + AccessToken) | ||
.ResponseCode(200) | ||
.ResponseBody( | ||
""" | ||
{ | ||
"sub": "ser_61a8b807a341fc00bee53042", | ||
"cronofy.type": "service_account", | ||
"cronofy.data": { | ||
"service_account": { | ||
"provider_name": "exchange", | ||
"domain": "example.org" | ||
}, | ||
"authorization": { | ||
"scope": "service_account/accounts/manage service_account/resources/manage", | ||
"status": "active", | ||
"delegated_scope": "read_write" | ||
} | ||
}, | ||
"email": "[email protected]" | ||
} | ||
""")); | ||
@" | ||
{ | ||
""sub"": ""ser_61a8b807a341fc00bee53042"", | ||
""cronofy.type"": ""service_account"", | ||
""cronofy.data"": { | ||
""service_account"": { | ||
""provider_name"": ""exchange"", | ||
""domain"": ""example.org"" | ||
}, | ||
""authorization"": { | ||
""scope"": ""service_account/accounts/manage service_account/resources/manage"", | ||
""status"": ""active"", | ||
""delegated_scope"": ""read_write"" | ||
} | ||
}, | ||
""email"": ""[email protected]"" | ||
} | ||
")); | ||
|
||
var actualUserInfo = this.Client.GetUserInfo(); | ||
var expectedUserInfo = new UserInfo | ||
|