auth0 4.8.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +18 -17
- data/README.md +10 -1
- data/auth0.gemspec +1 -1
- data/lib/auth0/api/v2.rb +2 -0
- data/lib/auth0/api/v2/guardian.rb +142 -0
- data/lib/auth0/api/v2/roles.rb +0 -2
- data/lib/auth0/api/v2/users.rb +0 -2
- data/lib/auth0/mixins.rb +8 -3
- data/lib/auth0/mixins/httpproxy.rb +1 -1
- data/lib/auth0/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_permissions/should_add_a_Permission_to_the_Role_successfully.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_add_role_users/should_add_a_User_to_the_Role_successfully.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_delete_role/should_delete_the_Role_successfully.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_exactly_1_Permission.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_permissions/should_get_the_added_Permission_from_the_Role_successfully.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_the_added_User_from_the_Role_successfully.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_remove_role_permissions/should_remove_a_Permission_from_the_Role_successfully.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_update_role/should_update_the_Role_successfully.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_api.yml +14 -12
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_role.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/create_test_user.yml +13 -11
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_api.yml +12 -10
- data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/delete_test_user.yml +12 -10
- data/spec/integration/lib/auth0/api/v2/api_roles_spec.rb +3 -3
- data/spec/lib/auth0/api/v2/guardian_spec.rb +154 -0
- data/spec/lib/auth0/mixins/httpproxy_spec.rb +24 -2
- data/spec/spec_helper.rb +2 -1
- metadata +7 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: delete
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,27 +27,29 @@ http_interactions:
|
|
|
27
27
|
message: No Content
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:53 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Connection:
|
|
34
34
|
- keep-alive
|
|
35
|
+
Server:
|
|
36
|
+
- nginx
|
|
35
37
|
Ot-Tracer-Spanid:
|
|
36
|
-
-
|
|
38
|
+
- 7c964a5a3bf32b2d
|
|
37
39
|
Ot-Tracer-Traceid:
|
|
38
|
-
-
|
|
40
|
+
- 15d9978a5056db4c
|
|
39
41
|
Ot-Tracer-Sampled:
|
|
40
42
|
- 'true'
|
|
41
43
|
X-Ratelimit-Limit:
|
|
42
44
|
- '10'
|
|
43
45
|
X-Ratelimit-Remaining:
|
|
44
|
-
- '
|
|
46
|
+
- '1'
|
|
45
47
|
X-Ratelimit-Reset:
|
|
46
|
-
- '
|
|
48
|
+
- '1569428939'
|
|
47
49
|
Vary:
|
|
48
50
|
- origin,accept-encoding
|
|
49
51
|
Cache-Control:
|
|
50
|
-
-
|
|
52
|
+
- no-cache
|
|
51
53
|
Strict-Transport-Security:
|
|
52
54
|
- max-age=15724800
|
|
53
55
|
X-Robots-Tag:
|
|
@@ -56,5 +58,5 @@ http_interactions:
|
|
|
56
58
|
encoding: UTF-8
|
|
57
59
|
string: ''
|
|
58
60
|
http_version:
|
|
59
|
-
recorded_at:
|
|
60
|
-
recorded_with: VCR
|
|
61
|
+
recorded_at: Wed, 25 Sep 2019 16:28:53 GMT
|
|
62
|
+
recorded_with: VCR 5.0.0
|
data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role/should_get_the_Role_successfully.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:52 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 39ff4b9528693457
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 6d6a7dfc1414253e
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '8'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428934'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -59,7 +61,7 @@ http_interactions:
|
|
|
59
61
|
body:
|
|
60
62
|
encoding: ASCII-8BIT
|
|
61
63
|
string: !binary |-
|
|
62
|
-
H4sIAAAAAAAAA6tWykxRslIqys+
|
|
64
|
+
H4sIAAAAAAAAA6tWykxRslIqys+J9001dy73qogsKo0KSis0L1TSUcpLzE0FyZYmVZakFpfoggmg2lSgXEpqcXJRZkFJZn4eUEkIUEYBJKOALF4LADvySGBfAAAA
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:52 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q/permissions
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:53 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 2b424a85236be19b
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 719c34c5274983d4
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '3'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428937'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -61,5 +63,5 @@ http_interactions:
|
|
|
61
63
|
string: !binary |-
|
|
62
64
|
H4sIAAAAAAAAA4WMSwqAMBBD7zJrewGvIiJaIwxoWzKtIOLd/WzcCG4CyeOl2SWBi5ppDF3oF0gtLMOWYdk98XKpZIR5asp3q+UaCIuFHp2BK/h90Sd1U6RjnGEfko4IWScFf9SjPQGSemtTsQAAAA==
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:53 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q/permissions
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:53 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 3045a3192399c970
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 18a77052568068f0
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '2'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428938'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -61,5 +63,5 @@ http_interactions:
|
|
|
61
63
|
string: !binary |-
|
|
62
64
|
H4sIAAAAAAAAA4WMSwqAMBBD7zJrewGvIiJaIwxoWzKtIOLd/WzcCG4CyeOl2SWBi5ppDF3oF0gtLMOWYdk98XKpZIR5asp3q+UaCIuFHp2BK/h90Sd1U6RjnGEfko4IWScFf9SjPQGSemtTsQAAAA==
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:53 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_role_users/should_get_exactly_1_User.yml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q/users
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:52 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 53f0c303554001e2
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 565cff3e695dd6f3
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '5'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428936'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -59,7 +61,7 @@ http_interactions:
|
|
|
59
61
|
body:
|
|
60
62
|
encoding: ASCII-8BIT
|
|
61
63
|
string: !binary |-
|
|
62
|
-
|
|
64
|
+
H4sIAAAAAAAAA2WOywrCMBBF/yVQV/aRtqlToagbf0JE0kysBftgkgii/rtpBRGEWdyBO2fO4cGc0XRqka2ZdPaSPAVCXQrFMQcUkCAqgERkBVsy3cn26ovk6rvVxobfMEF62enwPFBIw1Wb7UyL1ND5w7FV1pH2pxdrR7OOYxM1JG/SSpoq8SfGK1Ci5LwoUfO8RJ5KpVUKq+KcSSh4vTFVDsmCqrFZYDWzgmwXpHs/Cvvo+9PvH6TxiVw09o3XmAx/9f+t2ev4BvvO+5gTAQAA
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:52 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q/users
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:52 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 654dc94c42bb7b63
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 338dfeab2c4513d2
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '4'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428936'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -59,7 +61,7 @@ http_interactions:
|
|
|
59
61
|
body:
|
|
60
62
|
encoding: ASCII-8BIT
|
|
61
63
|
string: !binary |-
|
|
62
|
-
|
|
64
|
+
H4sIAAAAAAAAA2WOywrCMBBF/yVQV/aRtqlToagbf0JE0kysBftgkgii/rtpBRGEWdyBO2fO4cGc0XRqka2ZdPaSPAVCXQrFMQcUkCAqgERkBVsy3cn26ovk6rvVxobfMEF62enwPFBIw1Wb7UyL1ND5w7FV1pH2pxdrR7OOYxM1JG/SSpoq8SfGK1Ci5LwoUfO8RJ5KpVUKq+KcSSh4vTFVDsmCqrFZYDWzgmwXpHs/Cvvo+9PvH6TxiVw09o3XmAx/9f+t2ev4BvvO+5gTAQAA
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:52 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Roles/_get_roles/should_get_the_Role_successfully.yml
CHANGED
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Host:
|
|
@@ -27,29 +27,31 @@ http_interactions:
|
|
|
27
27
|
message: OK
|
|
28
28
|
headers:
|
|
29
29
|
Date:
|
|
30
|
-
-
|
|
30
|
+
- Wed, 25 Sep 2019 16:28:52 GMT
|
|
31
31
|
Content-Type:
|
|
32
32
|
- application/json; charset=utf-8
|
|
33
33
|
Transfer-Encoding:
|
|
34
34
|
- chunked
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 10544ffb51d81425
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 7e4154cc68459a85
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '7'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428934'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Content-Encoding:
|
|
54
56
|
- gzip
|
|
55
57
|
Strict-Transport-Security:
|
|
@@ -59,7 +61,7 @@ http_interactions:
|
|
|
59
61
|
body:
|
|
60
62
|
encoding: ASCII-8BIT
|
|
61
63
|
string: !binary |-
|
|
62
|
-
|
|
64
|
+
H4sIAAAAAAAAA4uuVspMUbJSKsrPifdNNXcu96qILCqNCkorNC9U0lHKS8xNBcmWJlWWpBaX6IIJoNpUoFxKanFyUWZBSWZ+HlBJCFBGASSjgCxeGwsAxjDnRmEAAAA=
|
|
63
65
|
http_version:
|
|
64
|
-
recorded_at:
|
|
65
|
-
recorded_with: VCR
|
|
66
|
+
recorded_at: Wed, 25 Sep 2019 16:28:52 GMT
|
|
67
|
+
recorded_with: VCR 5.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: delete
|
|
5
|
-
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/
|
|
5
|
+
uri: https://auth0-sdk-tests.auth0.com/api/v2/roles/rol_Me7CwJxYruZRfq7q/permissions
|
|
6
6
|
body:
|
|
7
7
|
encoding: UTF-8
|
|
8
8
|
string: permissions[][permission_name]=rubytest-test-permission&permissions[][resource_server_identifier]=rubytest-test-api-for-roles
|
|
@@ -16,7 +16,7 @@ http_interactions:
|
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/x-www-form-urlencoded
|
|
18
18
|
Auth0-Client:
|
|
19
|
-
-
|
|
19
|
+
- eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjguMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
|
|
20
20
|
Authorization:
|
|
21
21
|
- Bearer API_TOKEN
|
|
22
22
|
Content-Length:
|
|
@@ -29,27 +29,29 @@ http_interactions:
|
|
|
29
29
|
message: No Content
|
|
30
30
|
headers:
|
|
31
31
|
Date:
|
|
32
|
-
-
|
|
32
|
+
- Wed, 25 Sep 2019 16:28:53 GMT
|
|
33
33
|
Content-Type:
|
|
34
34
|
- application/json; charset=utf-8
|
|
35
35
|
Connection:
|
|
36
36
|
- keep-alive
|
|
37
|
+
Server:
|
|
38
|
+
- nginx
|
|
37
39
|
Ot-Tracer-Spanid:
|
|
38
|
-
-
|
|
40
|
+
- 23f60e242e13f4d2
|
|
39
41
|
Ot-Tracer-Traceid:
|
|
40
|
-
-
|
|
42
|
+
- 230097b75c9aa897
|
|
41
43
|
Ot-Tracer-Sampled:
|
|
42
44
|
- 'true'
|
|
43
45
|
X-Ratelimit-Limit:
|
|
44
46
|
- '10'
|
|
45
47
|
X-Ratelimit-Remaining:
|
|
46
|
-
- '
|
|
48
|
+
- '2'
|
|
47
49
|
X-Ratelimit-Reset:
|
|
48
|
-
- '
|
|
50
|
+
- '1569428938'
|
|
49
51
|
Vary:
|
|
50
52
|
- origin,accept-encoding
|
|
51
53
|
Cache-Control:
|
|
52
|
-
-
|
|
54
|
+
- no-cache
|
|
53
55
|
Strict-Transport-Security:
|
|
54
56
|
- max-age=15724800
|
|
55
57
|
X-Robots-Tag:
|
|
@@ -58,5 +60,5 @@ http_interactions:
|
|
|
58
60
|
encoding: UTF-8
|
|
59
61
|
string: ''
|
|
60
62
|
http_version:
|
|
61
|
-
recorded_at:
|
|
62
|
-
recorded_with: VCR
|
|
63
|
+
recorded_at: Wed, 25 Sep 2019 16:28:53 GMT
|
|
64
|
+
recorded_with: VCR 5.0.0
|