auth0 4.6.0 → 4.7.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/DEPLOYMENT.md +2 -1
  4. data/lib/auth0/api/v2/jobs.rb +43 -10
  5. data/lib/auth0/api/v2/resource_servers.rb +25 -0
  6. data/lib/auth0/api/v2/tickets.rb +26 -6
  7. data/lib/auth0/mixins/httpproxy.rb +8 -1
  8. data/lib/auth0/version.rb +1 -1
  9. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_export_users_and_get_job/should_create_an_export_users_job_successfully.yml +61 -0
  10. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_export_users_and_get_job/should_get_the_export_users_job.yml +117 -0
  11. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_import_users_and_get_job/should_create_an_import_users_job_successfully.yml +60 -0
  12. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_import_users_and_get_job/should_get_the_import_users_job.yml +116 -0
  13. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_create_a_new_verification_email_job.yml +119 -0
  14. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_get_the_completed_verification_email.yml +175 -0
  15. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/_send_verification_email_and_get_job/should_reject_an_invalid_client_id.yml +109 -0
  16. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/delete_imported_user.yml +110 -0
  17. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_Jobs/search_for_connection_id.yml +59 -0
  18. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_delete_resource_server/should_delete_the_test_server_without_an_error.yml +8 -8
  19. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_patch_resource_server/should_update_the_resource_server_with_the_correct_attributes.yml +61 -0
  20. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_server/should_get_the_test_server.yml +9 -14
  21. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_get_the_test_server.yml +59 -0
  22. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_at_least_1_result.yml +59 -0
  23. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/_resource_servers/should_return_the_first_page_of_one_result.yml +64 -0
  24. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/create_test_server.yml +7 -12
  25. data/spec/fixtures/vcr_cassettes/Auth0_Api_V2_ResourceServers/delete_test_server.yml +8 -8
  26. data/spec/integration/lib/auth0/api/v2/api_email_spec.rb +2 -2
  27. data/spec/integration/lib/auth0/api/v2/api_jobs_spec.rb +101 -60
  28. data/spec/integration/lib/auth0/api/v2/api_resource_servers_spec.rb +38 -0
  29. data/spec/lib/auth0/api/v2/jobs_spec.rb +48 -5
  30. data/spec/lib/auth0/api/v2/resource_servers_spec.rb +23 -0
  31. data/spec/lib/auth0/api/v2/tickets_spec.rb +10 -4
  32. data/spec/spec_helper.rb +1 -1
  33. metadata +35 -10
@@ -0,0 +1,116 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/users-imports
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: "------RubyFormBoundaryoUaJwiumU1KEMPgF\r\nContent-Disposition: form-data;
9
+ name=\"users\"; filename=\"api-jobs-spec-import-users.json\"\r\nContent-Type:
10
+ application/json\r\n\r\n[{\"email\":\"rubytestonie_adams@example.net\",\"email_verified\":false,\"app_metadata\":{\"roles\":[\"admin\"]},\"user_metadata\":{\"theme\":\"light\"}}]\r\n------RubyFormBoundaryoUaJwiumU1KEMPgF\r\nContent-Disposition:
11
+ form-data; name=\"connection_id\"\r\n\r\ncon_Xx4Kruoab04wvlYX\r\n------RubyFormBoundaryoUaJwiumU1KEMPgF--\r\n"
12
+ headers:
13
+ Accept:
14
+ - "*/*"
15
+ Accept-Encoding:
16
+ - gzip, deflate
17
+ User-Agent:
18
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
19
+ Content-Type:
20
+ - multipart/form-data; boundary=----RubyFormBoundaryoUaJwiumU1KEMPgF
21
+ Auth0-Client:
22
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
23
+ Authorization:
24
+ - Bearer API_TOKEN
25
+ Content-Length:
26
+ - '462'
27
+ Host:
28
+ - auth0-sdk-tests.auth0.com
29
+ response:
30
+ status:
31
+ code: 202
32
+ message: Accepted
33
+ headers:
34
+ Date:
35
+ - Wed, 27 Feb 2019 16:14:18 GMT
36
+ Content-Type:
37
+ - application/json; charset=utf-8
38
+ Transfer-Encoding:
39
+ - chunked
40
+ Connection:
41
+ - keep-alive
42
+ X-Ratelimit-Limit:
43
+ - '10'
44
+ X-Ratelimit-Remaining:
45
+ - '9'
46
+ X-Ratelimit-Reset:
47
+ - '1551284059'
48
+ Vary:
49
+ - origin,accept-encoding
50
+ Cache-Control:
51
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
52
+ Content-Encoding:
53
+ - gzip
54
+ body:
55
+ encoding: ASCII-8BIT
56
+ string: !binary |-
57
+ H4sIAAAAAAAAA1XNMQvCMBAF4P+S2UoTitVugltBHRRqlxCbQyP2UpKLrYj/3aOb47338e4j6D2AqESKEKJ2/eADiYWIZChFzgdA6/DGUecRoSPnUTvLDd+6mYo6JG+ueTG+npfmj7E58yqaHrKjiXH0wWbbRHdAcp2ZCfsAhsBqQ+xVLjdZrjJVnuSqkkUl10tZqpbd/PPhr/oAvsZ+khJap/ZyJ74/CKFe28UAAAA=
58
+ http_version:
59
+ recorded_at: Wed, 27 Feb 2019 16:14:18 GMT
60
+ - request:
61
+ method: get
62
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/job_OeoKnmx11eZi2N1D
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ Accept:
68
+ - "*/*"
69
+ Accept-Encoding:
70
+ - gzip, deflate
71
+ User-Agent:
72
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
73
+ Content-Type:
74
+ - application/json
75
+ Auth0-Client:
76
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
77
+ Authorization:
78
+ - Bearer API_TOKEN
79
+ Host:
80
+ - auth0-sdk-tests.auth0.com
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Date:
87
+ - Wed, 27 Feb 2019 16:14:18 GMT
88
+ Content-Type:
89
+ - application/json; charset=utf-8
90
+ Transfer-Encoding:
91
+ - chunked
92
+ Connection:
93
+ - keep-alive
94
+ X-Ratelimit-Limit:
95
+ - '10'
96
+ X-Ratelimit-Remaining:
97
+ - '9'
98
+ X-Ratelimit-Reset:
99
+ - '1551284059'
100
+ Vary:
101
+ - origin,accept-encoding
102
+ Cache-Control:
103
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
104
+ Content-Encoding:
105
+ - gzip
106
+ Strict-Transport-Security:
107
+ - max-age=15724800
108
+ X-Robots-Tag:
109
+ - noindex, nofollow, nosnippet, noarchive
110
+ body:
111
+ encoding: ASCII-8BIT
112
+ string: !binary |-
113
+ H4sIAAAAAAAAA1XNMQvCMBAF4P+S2UoTitVugltBHRRqlxCbQyP2UpKLrYj/3aOb47338e4j6D2AqESKEKJ2/eADiYWIZChFzgdA6/DGUecRoSPnUTvLDd+6mYo6JG+ueTG+npfmj7E58yqaHrKjiXH0wWbbRHdAcp2ZCfsAhsBqQ+xVLjdZrjJVnuSqkkUl10tZqpbd/PPhr/oAvsZ+khJap/ZyJ74/CKFe28UAAAA=
114
+ http_version:
115
+ recorded_at: Wed, 27 Feb 2019 16:14:18 GMT
116
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/users
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"email":"rubytestantonio_ankunding@example.net","password":"PeOp448vDfFvAz","connection":"Username-Password-Authentication","name":"antonio_ankunding"}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
16
+ Content-Type:
17
+ - application/json
18
+ Auth0-Client:
19
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
20
+ Authorization:
21
+ - Bearer API_TOKEN
22
+ Content-Length:
23
+ - '152'
24
+ Host:
25
+ - auth0-sdk-tests.auth0.com
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Wed, 27 Feb 2019 16:13:16 GMT
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ X-Ratelimit-Limit:
40
+ - '10'
41
+ X-Ratelimit-Remaining:
42
+ - '6'
43
+ X-Ratelimit-Reset:
44
+ - '1551283998'
45
+ Vary:
46
+ - origin,accept-encoding
47
+ Cache-Control:
48
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
49
+ Content-Encoding:
50
+ - gzip
51
+ Strict-Transport-Security:
52
+ - max-age=15724800
53
+ X-Robots-Tag:
54
+ - noindex, nofollow, nosnippet, noarchive
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: !binary |-
58
+ H4sIAAAAAAAAA42R30vDMBDH/5fA9rS26c9shaF78VlQXxQpt+SyhbVJSdKpzP3vpp2CIIqQhwv3vc/dfe9EsAPVkprYYfvm0XnQ3mhlGtCHQQuld9f4Cl3fYqzRkwXR0GGQ/5CF1IRqjmiVVChILaF1uCBDL8CjaMCHuoymq4hmUcbu06pO8zqtYsqqx1A+OLSNEiN88Hv6XnJWbVnKKWPLFWOcCZkWpRRB2ivuBzvOsfe+d3WSuHhn4QgebMxNl1zCpJC4YiALmS/LQgYalFjRMi+Q0m1ayiu3LpZ0btf9bi7WE2uWb2bZTXhc6HgaZASG/wXpxkjH/bSwVvzw6cev9gWZEqi98godqZ9OhButkXtldKh7CEuPiOgWnHsxVkSb0HPUc5gk3335yxFrjqGP/XJvbOvuDFfQfh7i/Lwg3OI/TnH+AHRi/U0WAgAA
59
+ http_version:
60
+ recorded_at: Wed, 27 Feb 2019 16:13:16 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/verification-email
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"user_id":"auth0|5c76b71c0778977c7df145fd"}'
67
+ headers:
68
+ Accept:
69
+ - "*/*"
70
+ Accept-Encoding:
71
+ - gzip, deflate
72
+ User-Agent:
73
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
74
+ Content-Type:
75
+ - application/json
76
+ Auth0-Client:
77
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
78
+ Authorization:
79
+ - Bearer API_TOKEN
80
+ Content-Length:
81
+ - '44'
82
+ Host:
83
+ - auth0-sdk-tests.auth0.com
84
+ response:
85
+ status:
86
+ code: 201
87
+ message: Created
88
+ headers:
89
+ Date:
90
+ - Wed, 27 Feb 2019 16:13:16 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ X-Ratelimit-Limit:
98
+ - '10'
99
+ X-Ratelimit-Remaining:
100
+ - '6'
101
+ X-Ratelimit-Reset:
102
+ - '1551283999'
103
+ Vary:
104
+ - origin,accept-encoding
105
+ Cache-Control:
106
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
107
+ Content-Encoding:
108
+ - gzip
109
+ Strict-Transport-Security:
110
+ - max-age=15724800
111
+ X-Robots-Tag:
112
+ - noindex, nofollow, nosnippet, noarchive
113
+ body:
114
+ encoding: ASCII-8BIT
115
+ string: !binary |-
116
+ H4sIAAAAAAAAA6tWKqksSFWyUipLLcpMy0xOLMnMz4tPzU3MzFHSUSouSSwpLQbKFqTmpWTmpQOFkotSE0tSU+ITS4DCRgaGlroGRrpG5iGGZlaGxlaGZnpG5qZRQHWZKUD5rPykeMtcE2Mjt2LTxLCSEp+gJE+lWgBgU3tAdAAAAA==
117
+ http_version:
118
+ recorded_at: Wed, 27 Feb 2019 16:13:16 GMT
119
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,175 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/users
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"email":"rubytesthermann_dane@example.org","password":"5qMq3o8uZaQ","connection":"Username-Password-Authentication","name":"dane.hermann"}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
16
+ Content-Type:
17
+ - application/json
18
+ Auth0-Client:
19
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
20
+ Authorization:
21
+ - Bearer API_TOKEN
22
+ Content-Length:
23
+ - '139'
24
+ Host:
25
+ - auth0-sdk-tests.auth0.com
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Wed, 27 Feb 2019 16:13:16 GMT
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ X-Ratelimit-Limit:
40
+ - '10'
41
+ X-Ratelimit-Remaining:
42
+ - '5'
43
+ X-Ratelimit-Reset:
44
+ - '1551284000'
45
+ Vary:
46
+ - origin,accept-encoding
47
+ Cache-Control:
48
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
49
+ Content-Encoding:
50
+ - gzip
51
+ Strict-Transport-Security:
52
+ - max-age=15724800
53
+ X-Robots-Tag:
54
+ - noindex, nofollow, nosnippet, noarchive
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: !binary |-
58
+ H4sIAAAAAAAAA41R30vDMBD+XwLb05qm7ZpuhaF78VlQXxQpt+S6Bdu0JOlU5v53r3WCDyJCHi6X78fluxPDFkzDSuaG3XtAHw7oWrC20mDxGt+g7RvknduzBbPQIiHHF36BUXcSqI7oTG1Qs7KGxuOCDb2GgLqCQJRUJOtIpFFa3CeyTLIykbwQ4pHog0dXGeIxGMJBfOSqkLsiUSqHlQIp1xkUhVRA0N6oMLhxhEMIvS/j2PO9gyMEcFx1bfxVxrWQya7WNYLENMOlzhPMAWtSzYWQ6ZXfLFdi7jb9fq43k9Ys287SGzpKWz4NMgrS/UvSU6WB93aKwaiXSxS/hUYIo9EGEwx6Vj6dmOqsRRVMZ4nyQP8d2dEteP/aOR1tyW7EK5ggPyP5KwzXHcnHfQc32vq7ThloLjs4Py+YcviPLZw/ARL3w0AHAgAA
59
+ http_version:
60
+ recorded_at: Wed, 27 Feb 2019 16:13:16 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/verification-email
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"user_id":"auth0|5c76b71cc5a8ca6693a776ca"}'
67
+ headers:
68
+ Accept:
69
+ - "*/*"
70
+ Accept-Encoding:
71
+ - gzip, deflate
72
+ User-Agent:
73
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
74
+ Content-Type:
75
+ - application/json
76
+ Auth0-Client:
77
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
78
+ Authorization:
79
+ - Bearer API_TOKEN
80
+ Content-Length:
81
+ - '44'
82
+ Host:
83
+ - auth0-sdk-tests.auth0.com
84
+ response:
85
+ status:
86
+ code: 201
87
+ message: Created
88
+ headers:
89
+ Date:
90
+ - Wed, 27 Feb 2019 16:13:17 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ X-Ratelimit-Limit:
98
+ - '10'
99
+ X-Ratelimit-Remaining:
100
+ - '6'
101
+ X-Ratelimit-Reset:
102
+ - '1551284000'
103
+ Vary:
104
+ - origin,accept-encoding
105
+ Cache-Control:
106
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
107
+ Content-Encoding:
108
+ - gzip
109
+ Strict-Transport-Security:
110
+ - max-age=15724800
111
+ X-Robots-Tag:
112
+ - noindex, nofollow, nosnippet, noarchive
113
+ body:
114
+ encoding: ASCII-8BIT
115
+ string: !binary |-
116
+ H4sIAAAAAAAAA6tWKqksSFWyUipLLcpMy0xOLMnMz4tPzU3MzFHSUSouSSwpLQbKFqTmpWTmpQOFkotSE0tSU+ITS4DCRgaGlroGRrpG5iGGZlaGxlaG5nqGBiZRQHWZKUD5rPykeO9sk4jkNJPyZMcSxzBfX1elWgCfpdR6dAAAAA==
117
+ http_version:
118
+ recorded_at: Wed, 27 Feb 2019 16:13:17 GMT
119
+ - request:
120
+ method: get
121
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/job_Kk4Xcf4wcAtAVMME
122
+ body:
123
+ encoding: US-ASCII
124
+ string: ''
125
+ headers:
126
+ Accept:
127
+ - "*/*"
128
+ Accept-Encoding:
129
+ - gzip, deflate
130
+ User-Agent:
131
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
132
+ Content-Type:
133
+ - application/json
134
+ Auth0-Client:
135
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
136
+ Authorization:
137
+ - Bearer API_TOKEN
138
+ Host:
139
+ - auth0-sdk-tests.auth0.com
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Date:
146
+ - Wed, 27 Feb 2019 16:13:17 GMT
147
+ Content-Type:
148
+ - application/json; charset=utf-8
149
+ Transfer-Encoding:
150
+ - chunked
151
+ Connection:
152
+ - keep-alive
153
+ X-Ratelimit-Limit:
154
+ - '10'
155
+ X-Ratelimit-Remaining:
156
+ - '5'
157
+ X-Ratelimit-Reset:
158
+ - '1551284000'
159
+ Vary:
160
+ - origin,accept-encoding
161
+ Cache-Control:
162
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
163
+ Content-Encoding:
164
+ - gzip
165
+ Strict-Transport-Security:
166
+ - max-age=15724800
167
+ X-Robots-Tag:
168
+ - noindex, nofollow, nosnippet, noarchive
169
+ body:
170
+ encoding: ASCII-8BIT
171
+ string: !binary |-
172
+ H4sIAAAAAAAAA6tWKqksSFWyUipLLcpMy0xOLMnMz4tPzU3MzFHSUSouSSwpLQbKJufnFuSklqSmAAWTi1ITgaz4xBKghJGBoaWugZGukXmIoZmVobGVobmeoYFJFFBdZgpQPis/Kd472yQiOc2kPNmxxDHM19dVqRYAWI5p13YAAAA=
173
+ http_version:
174
+ recorded_at: Wed, 27 Feb 2019 16:13:17 GMT
175
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/users
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"email":"rubytestjan_johnston@example.org","password":"0a3fCuM8Jz","connection":"Username-Password-Authentication","name":"jan_johnston"}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
16
+ Content-Type:
17
+ - application/json
18
+ Auth0-Client:
19
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
20
+ Authorization:
21
+ - Bearer API_TOKEN
22
+ Content-Length:
23
+ - '138'
24
+ Host:
25
+ - auth0-sdk-tests.auth0.com
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Wed, 27 Feb 2019 16:13:17 GMT
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Connection:
38
+ - keep-alive
39
+ X-Ratelimit-Limit:
40
+ - '10'
41
+ X-Ratelimit-Remaining:
42
+ - '5'
43
+ X-Ratelimit-Reset:
44
+ - '1551284001'
45
+ Vary:
46
+ - origin,accept-encoding
47
+ Cache-Control:
48
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
49
+ Content-Encoding:
50
+ - gzip
51
+ Strict-Transport-Security:
52
+ - max-age=15724800
53
+ X-Robots-Tag:
54
+ - noindex, nofollow, nosnippet, noarchive
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: !binary |-
58
+ H4sIAAAAAAAAA41RW0vDMBT+L4Htqfe0SVsYuhefBfVFkXKaZFtmm5QkncrcfzftJuxBRMjDycl3OfnOEYkeZIdqZMb20wnr9qCavd4p67S6FR/QD52ItNmiACnohUdeI3x3FmgOwsiNFBzVG+isCNA4cHCCN+A8JUvSKkyyMKOPKalTXKc0ojl+9vTRCtNIz0Mwul3yVTBKWppyVkDJgJAKA6WEtR46SOZGM42wc26wdRzbaGvgAA5MxHQfn8sY05xiTBjwvCIClxjKIitJ1m7yiha8urGrvEyWZjVsl3w1ay3wepHd+cO4iuZBJkF/P0taX+0hGtQcg2Rvlyh+C80jJBfKSSeFRfXLETGtlGBO+rcaPfn/TuzwHqx914aHa2834RnMkOtI/grD6IP3MT/BTbb2QTMJ3WUHp9cAMSP+sYXTN7TTcG4HAgAA
59
+ http_version:
60
+ recorded_at: Wed, 27 Feb 2019 16:13:17 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://auth0-sdk-tests.auth0.com/api/v2/jobs/verification-email
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"user_id":"auth0|5c76b71dc5a8ca6693a776cb","client_id":"#<Random:0x00007f7fdf31b490>"}'
67
+ headers:
68
+ Accept:
69
+ - "*/*"
70
+ Accept-Encoding:
71
+ - gzip, deflate
72
+ User-Agent:
73
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.5.1p57
74
+ Content-Type:
75
+ - application/json
76
+ Auth0-Client:
77
+ - eyJuYW1lIjoicnVieS1hdXRoMCIsInZlcnNpb24iOiI0LjYuMCIsImVudiI6eyJydWJ5IjoiMi41LjEifX0=
78
+ Authorization:
79
+ - Bearer API_TOKEN
80
+ Content-Length:
81
+ - '87'
82
+ Host:
83
+ - auth0-sdk-tests.auth0.com
84
+ response:
85
+ status:
86
+ code: 400
87
+ message: Bad Request
88
+ headers:
89
+ Date:
90
+ - Wed, 27 Feb 2019 16:13:17 GMT
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Transfer-Encoding:
94
+ - chunked
95
+ Connection:
96
+ - keep-alive
97
+ Vary:
98
+ - origin,accept-encoding
99
+ Cache-Control:
100
+ - private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
101
+ Content-Encoding:
102
+ - gzip
103
+ body:
104
+ encoding: ASCII-8BIT
105
+ string: !binary |-
106
+ H4sIAAAAAAAAA02P0UoEMQxFfyXEh1EYpeLCYhEf9AOUxfel3aRrpdOMbWZ1EP/d7uw+GAgJ3HtC7g9WdTrVZyFGuzKmRy5FClp8cgQb/py4KvY4cK1u3zz46uYkTTu4FMlplAwLYqF78R+8U6BIuVMYXa3/XUHKsQensEuRs15HsnDxsHGZZLDm27Rah3WgcHfrV/fmsYOGjUVGLjqfoW0kuHx7Z2hTAmjbTkIPMUAWPQKHSEyLtk/iXWp3GL5iSuAZpsp0dYPnpKfkGPPy6dYLzfj7ByjnqOkXAQAA
107
+ http_version:
108
+ recorded_at: Wed, 27 Feb 2019 16:13:17 GMT
109
+ recorded_with: VCR 4.0.0