-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement operation to fetch access request belonging to an app (#36)
* Add method to get AR belonging to an app * Add GetAR method to Apps interface * Regenearet mocks * Create an internal ARDetails type to allow conversion of strings to []string * Remove ARSummary * Implement UnmarshalJSON in ARDetails * Add unit test for apps.GetAR * Use a fake JWT for credentials * Update fixture
- Loading branch information
1 parent
4643c02
commit 42a7edb
Showing
6 changed files
with
240 additions
and
28 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
HTTP/1.1 200 OK | ||
Cache-Control: no-store | ||
Content-Type: application/json | ||
Pragma: no-cache | ||
Date: Tue, 15 Aug 2023 19:42:37 GMT | ||
Content-Length: 802 | ||
|
||
{ | ||
"Catalogue": "Public Catalogue", | ||
"Client": "v34", | ||
"CreatedAt": "2023-08-14 19:09", | ||
"Credentials": [ | ||
{ | ||
"AccessRequest": "AccessRequest#30", | ||
"Credential": "eyJvcmciOiI2MTcwMDZjMTgyOWI2ZjAwMDFjNmMwMzkiLCJpZCI6IjQ0ZDc1OWYwZGVjYzQ2MDliYmMxNDVjYjJkMTJhNjM4IiwiaCI6Im11cm11cjY0In0=", | ||
"CredentialHash": "60bf6ae8aeddde79", | ||
"DCRRegistrationAccessToken": "", | ||
"DCRRegistrationClientURI": "", | ||
"DCRResponse": "", | ||
"Expires": "1970-01-01 02:00", | ||
"GrantType": "", | ||
"ID": 29, | ||
"JWKSURI": "", | ||
"OAuthClientID": "", | ||
"OAuthClientSecret": "", | ||
"RedirectURI": "", | ||
"ResponseType": "", | ||
"Scope": "", | ||
"TokenEndpoints": "" | ||
} | ||
], | ||
"DeletedAt": "", | ||
"Plan": "free_plan", | ||
"PolicyService": [], | ||
"Products": "public_product", | ||
"UpdatedAt": "2023-08-14 19:09", | ||
"User": "User#1" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
HTTP/1.1 200 OK | ||
Cache-Control: no-store | ||
Content-Type: application/json | ||
Pragma: no-cache | ||
Date: Tue, 15 Aug 2023 19:22:56 GMT | ||
Content-Length: 933 | ||
|
||
[ | ||
{ | ||
"AuthType": "multiAuth", | ||
"Catalogue": "Public Catalogue", | ||
"Client": "v34", | ||
"CreatedAt": "2023-08-14 19:09", | ||
"Credentials": [ | ||
{ | ||
"AccessRequest": "AccessRequest#30", | ||
"Credential": "eyJvcmciOiI2MTcwMDZjMTgyOWI2ZjAwMDFjNmMwMzkiLCJpZCI6IjQ0ZDc1OWYwZGVjYzQ2MDliYmMxNDVjYjJkMTJhNjM4IiwiaCI6Im11cm11cjY0In0=", | ||
"CredentialHash": "60bf6ae8aeddde79", | ||
"DCRRegistrationAccessToken": "", | ||
"DCRRegistrationClientURI": "", | ||
"DCRResponse": "", | ||
"Expires": "1970-01-01 02:00", | ||
"GrantType": "", | ||
"ID": 29, | ||
"JWKSURI": "", | ||
"OAuthClientID": "", | ||
"OAuthClientSecret": "", | ||
"RedirectURI": "", | ||
"ResponseType": "", | ||
"Scope": "", | ||
"TokenEndpoints": "" | ||
} | ||
], | ||
"DCREnabled": false, | ||
"DeletedAt": "", | ||
"ID": 30, | ||
"Plan": "free_plan", | ||
"Products": "public_product", | ||
"ProvisionImmediately": false, | ||
"Status": "approved", | ||
"UpdatedAt": "2023-08-14 19:09", | ||
"User": "User#1" | ||
} | ||
] |