-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDK-4668] Add Roles field to OrganizationMember struct (#293)
Co-authored-by: Ewan Harris <[email protected]>
- Loading branch information
1 parent
a8b8fb6
commit 6aa68cc
Showing
6 changed files
with
193 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -74,6 +74,78 @@ interactions: | |
code: 201 | ||
duration: 224.211208ms | ||
- id: 2 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 50 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: go-auth0-dev.eu.auth0.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: | | ||
{"name":"test-role403","description":"Test Role"} | ||
form: {} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- Go-Auth0-SDK/latest | ||
url: https://go-auth0-dev.eu.auth0.com/api/v2/roles | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: -1 | ||
uncompressed: true | ||
body: '{"id":"rol_lEh5V8omwZrnZd9o","name":"test-role403","description":"Test Role"}' | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 200 OK | ||
code: 200 | ||
duration: 111.664917ms | ||
- id: 3 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 35 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: go-auth0-dev.eu.auth0.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: | | ||
{"roles":["rol_lEh5V8omwZrnZd9o"]} | ||
form: {} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- Go-Auth0-SDK/latest | ||
url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_SunNyTSHhG4ib6E9/members/auth0%7C63d16bb11e39d8a43b8ed0f5/roles | ||
method: POST | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 0 | ||
uncompressed: false | ||
body: "" | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 204 No Content | ||
code: 204 | ||
duration: 123.835375ms | ||
- id: 4 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
|
@@ -109,7 +181,7 @@ interactions: | |
status: 204 No Content | ||
code: 204 | ||
duration: 102.516083ms | ||
- id: 3 | ||
- id: 5 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
|
@@ -128,7 +200,7 @@ interactions: | |
- application/json | ||
User-Agent: | ||
- Go-Auth0-SDK/latest | ||
url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_SunNyTSHhG4ib6E9/members?include_totals=true&per_page=50 | ||
url: https://go-auth0-dev.eu.auth0.com/api/v2/organizations/org_SunNyTSHhG4ib6E9/members?fields=user_id%2Croles&include_fields=true&include_totals=true&per_page=50 | ||
method: GET | ||
response: | ||
proto: HTTP/2.0 | ||
|
@@ -138,14 +210,50 @@ interactions: | |
trailer: {} | ||
content_length: -1 | ||
uncompressed: true | ||
body: '{"members":[{"user_id":"auth0|63d16bb11e39d8a43b8ed0f5","email":"[email protected]","picture":"https://example-picture-url.jpg","name":"[email protected]"}],"start":0,"limit":50,"total":1}' | ||
body: '{"members":[{"user_id":"auth0|63d16bb11e39d8a43b8ed0f5","roles":[{"id":"rol_lEh5V8omwZrnZd9o","name":"test-role403"}]}],"start":0,"limit":50,"total":1}' | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 200 OK | ||
code: 200 | ||
duration: 116.271458ms | ||
- id: 4 | ||
- id: 6 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 3 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: go-auth0-dev.eu.auth0.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: | | ||
{} | ||
form: {} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- Go-Auth0-SDK/latest | ||
url: https://go-auth0-dev.eu.auth0.com/api/v2/roles/rol_lEh5V8omwZrnZd9o | ||
method: DELETE | ||
response: | ||
proto: HTTP/2.0 | ||
proto_major: 2 | ||
proto_minor: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 2 | ||
uncompressed: false | ||
body: '{}' | ||
headers: | ||
Content-Type: | ||
- application/json; charset=utf-8 | ||
status: 200 OK | ||
code: 200 | ||
duration: 107.122166ms | ||
- id: 7 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
|
@@ -180,7 +288,7 @@ interactions: | |
status: 204 No Content | ||
code: 204 | ||
duration: 151.131042ms | ||
- id: 5 | ||
- id: 8 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
|