octoauth 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circle-ruby +3 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/circle.yml +2 -9
- data/lib/octoauth/configfile.rb +1 -1
- data/octoauth.gemspec +8 -8
- data/spec/fixtures/cassettes/alternate_endpoints.yml +28 -90
- data/spec/fixtures/cassettes/autosaving_config_file.yml +28 -90
- data/spec/fixtures/cassettes/create_token.yml +28 -90
- data/spec/fixtures/cassettes/handle_two_factor.yml +56 -64
- data/spec/fixtures/cassettes/recreate_token.yml +68 -136
- data/spec/fixtures/cassettes/requesting_scopes.yml +29 -91
- data/spec/fixtures/cassettes/write_to_first_file.yml +28 -90
- data/spec/octoauth/auth_spec.rb +0 -4
- metadata +17 -18
- data/spec/examples/write_first_test.yml +0 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https
|
5
|
+
uri: https://api.github.com/authorizations
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/vnd.github.v3+json
|
12
12
|
User-Agent:
|
13
|
-
- Octokit Ruby Gem 4.
|
13
|
+
- Octokit Ruby Gem 4.3.0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
Accept-Encoding:
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
- Mon,
|
26
|
+
- Mon, 08 Aug 2016 01:30:55 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -33,9 +33,9 @@ http_interactions:
|
|
33
33
|
X-Ratelimit-Limit:
|
34
34
|
- '5000'
|
35
35
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
36
|
+
- '4995'
|
37
37
|
X-Ratelimit-Reset:
|
38
|
-
- '
|
38
|
+
- '1470623455'
|
39
39
|
Cache-Control:
|
40
40
|
- private, max-age=60, s-maxage=60
|
41
41
|
Vary:
|
@@ -43,89 +43,29 @@ http_interactions:
|
|
43
43
|
- Accept-Encoding
|
44
44
|
X-Github-Media-Type:
|
45
45
|
- github.v3; format=json
|
46
|
-
X-Xss-Protection:
|
47
|
-
- 1; mode=block
|
48
|
-
X-Frame-Options:
|
49
|
-
- deny
|
50
|
-
Content-Security-Policy:
|
51
|
-
- default-src 'none'
|
52
|
-
Access-Control-Allow-Credentials:
|
53
|
-
- 'true'
|
54
46
|
Access-Control-Expose-Headers:
|
55
47
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
56
48
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
57
49
|
Access-Control-Allow-Origin:
|
58
50
|
- "*"
|
59
|
-
Strict-Transport-Security:
|
60
|
-
- max-age=31536000; includeSubdomains; preload
|
61
|
-
X-Content-Type-Options:
|
62
|
-
- nosniff
|
63
|
-
body:
|
64
|
-
encoding: ASCII-8BIT
|
65
|
-
string: '[{"id":23673463,"url":"https://api.github.com/authorizations/23673463","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"81058c676b8a2de95487b5ad9ed1090f74efa8a581ba69487f274c4552b4716a","token_last_eight":"f9a2fcda","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:23:05Z","updated_at":"2015-10-26T02:23:05Z","scopes":[],"fingerprint":null},{"id":23673464,"url":"https://api.github.com/authorizations/23673464","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5296cd63dbc0add3fb40fd96e5c6bf2346464e15a6400183930c6765d8894899","token_last_eight":"f1c8d660","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673465,"url":"https://api.github.com/authorizations/23673465","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"cf1ef3274bbd1cb0f25cf3c0ae62bba97fb19d6d1278da37c87b60bbbbfd58e9","token_last_eight":"6f534ee7","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673471,"url":"https://api.github.com/authorizations/23673471","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e1ffd7c1465879b3c776c7be6fe7777f64f2dddb6d09da06f264e563e7c49fa7","token_last_eight":"49a5dcbd","note":"write_first_test/bean","note_url":null,"created_at":"2015-10-26T02:23:24Z","updated_at":"2015-10-26T02:23:24Z","scopes":[],"fingerprint":null},{"id":23673992,"url":"https://api.github.com/authorizations/23673992","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e41f77be9fe2994e5505437dce25574472b2d64f512305ccb25af6ec36cc9fc5","token_last_eight":"fc1217c4","note":"requesting_scopes/bean","note_url":null,"created_at":"2015-10-26T02:45:38Z","updated_at":"2015-10-26T02:45:38Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":23673993,"url":"https://api.github.com/authorizations/23673993","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"db9bfd126cdb10eca25a06df972099ef8f1ff85014a982755efc2f0ef07bc975","token_last_eight":"da02795d","note":"autosave_test/bean","note_url":null,"created_at":"2015-10-26T02:45:38Z","updated_at":"2015-10-26T02:45:38Z","scopes":[],"fingerprint":null}]'
|
66
|
-
http_version:
|
67
|
-
recorded_at: Mon, 26 Oct 2015 02:45:38 GMT
|
68
|
-
- request:
|
69
|
-
method: delete
|
70
|
-
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673463
|
71
|
-
body:
|
72
|
-
encoding: UTF-8
|
73
|
-
string: "{}"
|
74
|
-
headers:
|
75
|
-
Accept:
|
76
|
-
- application/vnd.github.v3+json
|
77
|
-
User-Agent:
|
78
|
-
- Octokit Ruby Gem 4.1.1
|
79
|
-
Content-Type:
|
80
|
-
- application/json
|
81
|
-
Accept-Encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
response:
|
84
|
-
status:
|
85
|
-
code: 204
|
86
|
-
message: No Content
|
87
|
-
headers:
|
88
|
-
Server:
|
89
|
-
- GitHub.com
|
90
|
-
Date:
|
91
|
-
- Mon, 26 Oct 2015 02:45:39 GMT
|
92
|
-
Status:
|
93
|
-
- 204 No Content
|
94
|
-
X-Ratelimit-Limit:
|
95
|
-
- '5000'
|
96
|
-
X-Ratelimit-Remaining:
|
97
|
-
- '4977'
|
98
|
-
X-Ratelimit-Reset:
|
99
|
-
- '1445829724'
|
100
|
-
X-Github-Media-Type:
|
101
|
-
- github.v3; format=json
|
102
|
-
X-Xss-Protection:
|
103
|
-
- 1; mode=block
|
104
|
-
X-Frame-Options:
|
105
|
-
- deny
|
106
51
|
Content-Security-Policy:
|
107
52
|
- default-src 'none'
|
108
|
-
Access-Control-Allow-Credentials:
|
109
|
-
- 'true'
|
110
|
-
Access-Control-Expose-Headers:
|
111
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
112
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
113
|
-
Access-Control-Allow-Origin:
|
114
|
-
- "*"
|
115
53
|
Strict-Transport-Security:
|
116
54
|
- max-age=31536000; includeSubdomains; preload
|
117
55
|
X-Content-Type-Options:
|
118
56
|
- nosniff
|
119
|
-
|
120
|
-
-
|
57
|
+
X-Frame-Options:
|
58
|
+
- deny
|
59
|
+
X-Xss-Protection:
|
60
|
+
- 1; mode=block
|
121
61
|
body:
|
122
|
-
encoding:
|
123
|
-
string: ''
|
62
|
+
encoding: ASCII-8BIT
|
63
|
+
string: '[{"id":44102334,"url":"https://api.github.com/authorizations/44102334","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"edd6c8f41d0c8aa694dcc13650882b3f4496a1e000cf23c8d480c21965ac2080","token_last_eight":"ddf64216","note":"requesting_scopes/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":44102335,"url":"https://api.github.com/authorizations/44102335","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"8330b0b6605edb4668d26d5e3aa081d99a2bc09daaf081512fda5687f70923b0","token_last_eight":"e501b9f8","note":"autosave_test/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":[],"fingerprint":null}]'
|
124
64
|
http_version:
|
125
|
-
recorded_at: Mon,
|
65
|
+
recorded_at: Mon, 08 Aug 2016 01:30:55 GMT
|
126
66
|
- request:
|
127
67
|
method: post
|
128
|
-
uri: https
|
68
|
+
uri: https://api.github.com/authorizations
|
129
69
|
body:
|
130
70
|
encoding: UTF-8
|
131
71
|
string: '{"note":"existing_token/bean","scopes":[]}'
|
@@ -133,7 +73,7 @@ http_interactions:
|
|
133
73
|
Accept:
|
134
74
|
- application/vnd.github.v3+json
|
135
75
|
User-Agent:
|
136
|
-
- Octokit Ruby Gem 4.
|
76
|
+
- Octokit Ruby Gem 4.3.0
|
137
77
|
Content-Type:
|
138
78
|
- application/json
|
139
79
|
Accept-Encoding:
|
@@ -146,7 +86,7 @@ http_interactions:
|
|
146
86
|
Server:
|
147
87
|
- GitHub.com
|
148
88
|
Date:
|
149
|
-
- Mon,
|
89
|
+
- Mon, 08 Aug 2016 01:30:55 GMT
|
150
90
|
Content-Type:
|
151
91
|
- application/json; charset=utf-8
|
152
92
|
Content-Length:
|
@@ -156,43 +96,41 @@ http_interactions:
|
|
156
96
|
X-Ratelimit-Limit:
|
157
97
|
- '5000'
|
158
98
|
X-Ratelimit-Remaining:
|
159
|
-
- '
|
99
|
+
- '4994'
|
160
100
|
X-Ratelimit-Reset:
|
161
|
-
- '
|
101
|
+
- '1470623455'
|
162
102
|
Cache-Control:
|
163
103
|
- private, max-age=60, s-maxage=60
|
164
|
-
Location:
|
165
|
-
- https://api.github.com/authorizations/23673994
|
166
104
|
Vary:
|
167
105
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
168
106
|
- Accept-Encoding
|
107
|
+
Location:
|
108
|
+
- https://api.github.com/authorizations/44102336
|
169
109
|
X-Github-Media-Type:
|
170
110
|
- github.v3; format=json
|
171
|
-
X-Xss-Protection:
|
172
|
-
- 1; mode=block
|
173
|
-
X-Frame-Options:
|
174
|
-
- deny
|
175
|
-
Content-Security-Policy:
|
176
|
-
- default-src 'none'
|
177
|
-
Access-Control-Allow-Credentials:
|
178
|
-
- 'true'
|
179
111
|
Access-Control-Expose-Headers:
|
180
112
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
181
113
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
182
114
|
Access-Control-Allow-Origin:
|
183
115
|
- "*"
|
116
|
+
Content-Security-Policy:
|
117
|
+
- default-src 'none'
|
184
118
|
Strict-Transport-Security:
|
185
119
|
- max-age=31536000; includeSubdomains; preload
|
186
120
|
X-Content-Type-Options:
|
187
121
|
- nosniff
|
122
|
+
X-Frame-Options:
|
123
|
+
- deny
|
124
|
+
X-Xss-Protection:
|
125
|
+
- 1; mode=block
|
188
126
|
body:
|
189
127
|
encoding: UTF-8
|
190
|
-
string: '{"id":
|
128
|
+
string: '{"id":44102336,"url":"https://api.github.com/authorizations/44102336","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"904d15c249b39aa115cdfca8686c0411269e3c49","hashed_token":"f1db22782af8dade9f801f53ecb81f32cd7799c82ea3c4ea4af0c2f43ac8e1d7","token_last_eight":"269e3c49","note":"existing_token/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":[],"fingerprint":null}'
|
191
129
|
http_version:
|
192
|
-
recorded_at: Mon,
|
130
|
+
recorded_at: Mon, 08 Aug 2016 01:30:55 GMT
|
193
131
|
- request:
|
194
132
|
method: get
|
195
|
-
uri: https
|
133
|
+
uri: https://api.github.com/authorizations
|
196
134
|
body:
|
197
135
|
encoding: US-ASCII
|
198
136
|
string: ''
|
@@ -200,7 +138,7 @@ http_interactions:
|
|
200
138
|
Accept:
|
201
139
|
- application/vnd.github.v3+json
|
202
140
|
User-Agent:
|
203
|
-
- Octokit Ruby Gem 4.
|
141
|
+
- Octokit Ruby Gem 4.3.0
|
204
142
|
Content-Type:
|
205
143
|
- application/json
|
206
144
|
Accept-Encoding:
|
@@ -213,7 +151,7 @@ http_interactions:
|
|
213
151
|
Server:
|
214
152
|
- GitHub.com
|
215
153
|
Date:
|
216
|
-
- Mon,
|
154
|
+
- Mon, 08 Aug 2016 01:30:56 GMT
|
217
155
|
Content-Type:
|
218
156
|
- application/json; charset=utf-8
|
219
157
|
Transfer-Encoding:
|
@@ -223,9 +161,9 @@ http_interactions:
|
|
223
161
|
X-Ratelimit-Limit:
|
224
162
|
- '5000'
|
225
163
|
X-Ratelimit-Remaining:
|
226
|
-
- '
|
164
|
+
- '4993'
|
227
165
|
X-Ratelimit-Reset:
|
228
|
-
- '
|
166
|
+
- '1470623455'
|
229
167
|
Cache-Control:
|
230
168
|
- private, max-age=60, s-maxage=60
|
231
169
|
Vary:
|
@@ -233,31 +171,29 @@ http_interactions:
|
|
233
171
|
- Accept-Encoding
|
234
172
|
X-Github-Media-Type:
|
235
173
|
- github.v3; format=json
|
236
|
-
X-Xss-Protection:
|
237
|
-
- 1; mode=block
|
238
|
-
X-Frame-Options:
|
239
|
-
- deny
|
240
|
-
Content-Security-Policy:
|
241
|
-
- default-src 'none'
|
242
|
-
Access-Control-Allow-Credentials:
|
243
|
-
- 'true'
|
244
174
|
Access-Control-Expose-Headers:
|
245
175
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
246
176
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
247
177
|
Access-Control-Allow-Origin:
|
248
178
|
- "*"
|
179
|
+
Content-Security-Policy:
|
180
|
+
- default-src 'none'
|
249
181
|
Strict-Transport-Security:
|
250
182
|
- max-age=31536000; includeSubdomains; preload
|
251
183
|
X-Content-Type-Options:
|
252
184
|
- nosniff
|
185
|
+
X-Frame-Options:
|
186
|
+
- deny
|
187
|
+
X-Xss-Protection:
|
188
|
+
- 1; mode=block
|
253
189
|
body:
|
254
190
|
encoding: ASCII-8BIT
|
255
|
-
string: '[{"id":
|
191
|
+
string: '[{"id":44102334,"url":"https://api.github.com/authorizations/44102334","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"edd6c8f41d0c8aa694dcc13650882b3f4496a1e000cf23c8d480c21965ac2080","token_last_eight":"ddf64216","note":"requesting_scopes/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":44102335,"url":"https://api.github.com/authorizations/44102335","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"8330b0b6605edb4668d26d5e3aa081d99a2bc09daaf081512fda5687f70923b0","token_last_eight":"e501b9f8","note":"autosave_test/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":[],"fingerprint":null},{"id":44102336,"url":"https://api.github.com/authorizations/44102336","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"f1db22782af8dade9f801f53ecb81f32cd7799c82ea3c4ea4af0c2f43ac8e1d7","token_last_eight":"269e3c49","note":"existing_token/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":[],"fingerprint":null}]'
|
256
192
|
http_version:
|
257
|
-
recorded_at: Mon,
|
193
|
+
recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
|
258
194
|
- request:
|
259
195
|
method: delete
|
260
|
-
uri: https
|
196
|
+
uri: https://api.github.com/authorizations/44102336
|
261
197
|
body:
|
262
198
|
encoding: UTF-8
|
263
199
|
string: "{}"
|
@@ -265,7 +201,7 @@ http_interactions:
|
|
265
201
|
Accept:
|
266
202
|
- application/vnd.github.v3+json
|
267
203
|
User-Agent:
|
268
|
-
- Octokit Ruby Gem 4.
|
204
|
+
- Octokit Ruby Gem 4.3.0
|
269
205
|
Content-Type:
|
270
206
|
- application/json
|
271
207
|
Accept-Encoding:
|
@@ -278,44 +214,42 @@ http_interactions:
|
|
278
214
|
Server:
|
279
215
|
- GitHub.com
|
280
216
|
Date:
|
281
|
-
- Mon,
|
217
|
+
- Mon, 08 Aug 2016 01:30:56 GMT
|
282
218
|
Status:
|
283
219
|
- 204 No Content
|
284
220
|
X-Ratelimit-Limit:
|
285
221
|
- '5000'
|
286
222
|
X-Ratelimit-Remaining:
|
287
|
-
- '
|
223
|
+
- '4992'
|
288
224
|
X-Ratelimit-Reset:
|
289
|
-
- '
|
225
|
+
- '1470623455'
|
290
226
|
X-Github-Media-Type:
|
291
227
|
- github.v3; format=json
|
292
|
-
X-Xss-Protection:
|
293
|
-
- 1; mode=block
|
294
|
-
X-Frame-Options:
|
295
|
-
- deny
|
296
|
-
Content-Security-Policy:
|
297
|
-
- default-src 'none'
|
298
|
-
Access-Control-Allow-Credentials:
|
299
|
-
- 'true'
|
300
228
|
Access-Control-Expose-Headers:
|
301
229
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
302
230
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
303
231
|
Access-Control-Allow-Origin:
|
304
232
|
- "*"
|
233
|
+
Content-Security-Policy:
|
234
|
+
- default-src 'none'
|
305
235
|
Strict-Transport-Security:
|
306
236
|
- max-age=31536000; includeSubdomains; preload
|
307
237
|
X-Content-Type-Options:
|
308
238
|
- nosniff
|
239
|
+
X-Frame-Options:
|
240
|
+
- deny
|
241
|
+
X-Xss-Protection:
|
242
|
+
- 1; mode=block
|
309
243
|
Vary:
|
310
244
|
- Accept-Encoding
|
311
245
|
body:
|
312
246
|
encoding: UTF-8
|
313
247
|
string: ''
|
314
248
|
http_version:
|
315
|
-
recorded_at: Mon,
|
249
|
+
recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
|
316
250
|
- request:
|
317
251
|
method: post
|
318
|
-
uri: https
|
252
|
+
uri: https://api.github.com/authorizations
|
319
253
|
body:
|
320
254
|
encoding: UTF-8
|
321
255
|
string: '{"note":"existing_token/bean","scopes":[]}'
|
@@ -323,7 +257,7 @@ http_interactions:
|
|
323
257
|
Accept:
|
324
258
|
- application/vnd.github.v3+json
|
325
259
|
User-Agent:
|
326
|
-
- Octokit Ruby Gem 4.
|
260
|
+
- Octokit Ruby Gem 4.3.0
|
327
261
|
Content-Type:
|
328
262
|
- application/json
|
329
263
|
Accept-Encoding:
|
@@ -336,7 +270,7 @@ http_interactions:
|
|
336
270
|
Server:
|
337
271
|
- GitHub.com
|
338
272
|
Date:
|
339
|
-
- Mon,
|
273
|
+
- Mon, 08 Aug 2016 01:30:56 GMT
|
340
274
|
Content-Type:
|
341
275
|
- application/json; charset=utf-8
|
342
276
|
Content-Length:
|
@@ -346,38 +280,36 @@ http_interactions:
|
|
346
280
|
X-Ratelimit-Limit:
|
347
281
|
- '5000'
|
348
282
|
X-Ratelimit-Remaining:
|
349
|
-
- '
|
283
|
+
- '4991'
|
350
284
|
X-Ratelimit-Reset:
|
351
|
-
- '
|
285
|
+
- '1470623455'
|
352
286
|
Cache-Control:
|
353
287
|
- private, max-age=60, s-maxage=60
|
354
|
-
Location:
|
355
|
-
- https://api.github.com/authorizations/23673996
|
356
288
|
Vary:
|
357
289
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
358
290
|
- Accept-Encoding
|
291
|
+
Location:
|
292
|
+
- https://api.github.com/authorizations/44102337
|
359
293
|
X-Github-Media-Type:
|
360
294
|
- github.v3; format=json
|
361
|
-
X-Xss-Protection:
|
362
|
-
- 1; mode=block
|
363
|
-
X-Frame-Options:
|
364
|
-
- deny
|
365
|
-
Content-Security-Policy:
|
366
|
-
- default-src 'none'
|
367
|
-
Access-Control-Allow-Credentials:
|
368
|
-
- 'true'
|
369
295
|
Access-Control-Expose-Headers:
|
370
296
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
371
297
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
372
298
|
Access-Control-Allow-Origin:
|
373
299
|
- "*"
|
300
|
+
Content-Security-Policy:
|
301
|
+
- default-src 'none'
|
374
302
|
Strict-Transport-Security:
|
375
303
|
- max-age=31536000; includeSubdomains; preload
|
376
304
|
X-Content-Type-Options:
|
377
305
|
- nosniff
|
306
|
+
X-Frame-Options:
|
307
|
+
- deny
|
308
|
+
X-Xss-Protection:
|
309
|
+
- 1; mode=block
|
378
310
|
body:
|
379
311
|
encoding: UTF-8
|
380
|
-
string: '{"id":
|
312
|
+
string: '{"id":44102337,"url":"https://api.github.com/authorizations/44102337","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"8839ed8a86f0c85051809baae33348938aff0fb9","hashed_token":"1949df82da02bdbc43ead25b3184fa25e66715b41a5cdd071eccfec396770a82","token_last_eight":"8aff0fb9","note":"existing_token/bean","note_url":null,"created_at":"2016-08-08T01:30:56Z","updated_at":"2016-08-08T01:30:56Z","scopes":[],"fingerprint":null}'
|
381
313
|
http_version:
|
382
|
-
recorded_at: Mon,
|
383
|
-
recorded_with: VCR
|
314
|
+
recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
|
315
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https
|
5
|
+
uri: https://api.github.com/authorizations
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/vnd.github.v3+json
|
12
12
|
User-Agent:
|
13
|
-
- Octokit Ruby Gem 4.
|
13
|
+
- Octokit Ruby Gem 4.3.0
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
Accept-Encoding:
|
@@ -23,19 +23,19 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
- Mon,
|
26
|
+
- Mon, 08 Aug 2016 01:30:55 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
|
-
|
30
|
-
-
|
29
|
+
Content-Length:
|
30
|
+
- '2'
|
31
31
|
Status:
|
32
32
|
- 200 OK
|
33
33
|
X-Ratelimit-Limit:
|
34
34
|
- '5000'
|
35
35
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
36
|
+
- '4999'
|
37
37
|
X-Ratelimit-Reset:
|
38
|
-
- '
|
38
|
+
- '1470623455'
|
39
39
|
Cache-Control:
|
40
40
|
- private, max-age=60, s-maxage=60
|
41
41
|
Vary:
|
@@ -43,89 +43,29 @@ http_interactions:
|
|
43
43
|
- Accept-Encoding
|
44
44
|
X-Github-Media-Type:
|
45
45
|
- github.v3; format=json
|
46
|
-
X-Xss-Protection:
|
47
|
-
- 1; mode=block
|
48
|
-
X-Frame-Options:
|
49
|
-
- deny
|
50
|
-
Content-Security-Policy:
|
51
|
-
- default-src 'none'
|
52
|
-
Access-Control-Allow-Credentials:
|
53
|
-
- 'true'
|
54
46
|
Access-Control-Expose-Headers:
|
55
47
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
56
48
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
57
49
|
Access-Control-Allow-Origin:
|
58
50
|
- "*"
|
59
|
-
Strict-Transport-Security:
|
60
|
-
- max-age=31536000; includeSubdomains; preload
|
61
|
-
X-Content-Type-Options:
|
62
|
-
- nosniff
|
63
|
-
body:
|
64
|
-
encoding: ASCII-8BIT
|
65
|
-
string: '[{"id":23673434,"url":"https://api.github.com/authorizations/23673434","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"7873c3c9471702e93416139dec20bc4c6c35e93e91776bbe284e3c08e49020f0","token_last_eight":"07112afc","note":"requesting_scopes/bean","note_url":null,"created_at":"2015-10-26T02:22:04Z","updated_at":"2015-10-26T02:22:04Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":23673435,"url":"https://api.github.com/authorizations/23673435","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"d04e11d46f3358c2ccc9ff61a10af5e4bc9de0c468404f6821e6ca3342c6477f","token_last_eight":"4c625306","note":"autosave_test/bean","note_url":null,"created_at":"2015-10-26T02:22:04Z","updated_at":"2015-10-26T02:22:04Z","scopes":[],"fingerprint":null},{"id":23673463,"url":"https://api.github.com/authorizations/23673463","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"81058c676b8a2de95487b5ad9ed1090f74efa8a581ba69487f274c4552b4716a","token_last_eight":"f9a2fcda","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:23:05Z","updated_at":"2015-10-26T02:23:05Z","scopes":[],"fingerprint":null},{"id":23673464,"url":"https://api.github.com/authorizations/23673464","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5296cd63dbc0add3fb40fd96e5c6bf2346464e15a6400183930c6765d8894899","token_last_eight":"f1c8d660","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673465,"url":"https://api.github.com/authorizations/23673465","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"cf1ef3274bbd1cb0f25cf3c0ae62bba97fb19d6d1278da37c87b60bbbbfd58e9","token_last_eight":"6f534ee7","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673471,"url":"https://api.github.com/authorizations/23673471","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e1ffd7c1465879b3c776c7be6fe7777f64f2dddb6d09da06f264e563e7c49fa7","token_last_eight":"49a5dcbd","note":"write_first_test/bean","note_url":null,"created_at":"2015-10-26T02:23:24Z","updated_at":"2015-10-26T02:23:24Z","scopes":[],"fingerprint":null}]'
|
66
|
-
http_version:
|
67
|
-
recorded_at: Mon, 26 Oct 2015 02:45:38 GMT
|
68
|
-
- request:
|
69
|
-
method: delete
|
70
|
-
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673434
|
71
|
-
body:
|
72
|
-
encoding: UTF-8
|
73
|
-
string: "{}"
|
74
|
-
headers:
|
75
|
-
Accept:
|
76
|
-
- application/vnd.github.v3+json
|
77
|
-
User-Agent:
|
78
|
-
- Octokit Ruby Gem 4.1.1
|
79
|
-
Content-Type:
|
80
|
-
- application/json
|
81
|
-
Accept-Encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
response:
|
84
|
-
status:
|
85
|
-
code: 204
|
86
|
-
message: No Content
|
87
|
-
headers:
|
88
|
-
Server:
|
89
|
-
- GitHub.com
|
90
|
-
Date:
|
91
|
-
- Mon, 26 Oct 2015 02:45:38 GMT
|
92
|
-
Status:
|
93
|
-
- 204 No Content
|
94
|
-
X-Ratelimit-Limit:
|
95
|
-
- '5000'
|
96
|
-
X-Ratelimit-Remaining:
|
97
|
-
- '4983'
|
98
|
-
X-Ratelimit-Reset:
|
99
|
-
- '1445829724'
|
100
|
-
X-Github-Media-Type:
|
101
|
-
- github.v3; format=json
|
102
|
-
X-Xss-Protection:
|
103
|
-
- 1; mode=block
|
104
|
-
X-Frame-Options:
|
105
|
-
- deny
|
106
51
|
Content-Security-Policy:
|
107
52
|
- default-src 'none'
|
108
|
-
Access-Control-Allow-Credentials:
|
109
|
-
- 'true'
|
110
|
-
Access-Control-Expose-Headers:
|
111
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
112
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
113
|
-
Access-Control-Allow-Origin:
|
114
|
-
- "*"
|
115
53
|
Strict-Transport-Security:
|
116
54
|
- max-age=31536000; includeSubdomains; preload
|
117
55
|
X-Content-Type-Options:
|
118
56
|
- nosniff
|
119
|
-
|
120
|
-
-
|
57
|
+
X-Frame-Options:
|
58
|
+
- deny
|
59
|
+
X-Xss-Protection:
|
60
|
+
- 1; mode=block
|
121
61
|
body:
|
122
62
|
encoding: UTF-8
|
123
|
-
string:
|
63
|
+
string: "[]"
|
124
64
|
http_version:
|
125
|
-
recorded_at: Mon,
|
65
|
+
recorded_at: Mon, 08 Aug 2016 01:30:55 GMT
|
126
66
|
- request:
|
127
67
|
method: post
|
128
|
-
uri: https
|
68
|
+
uri: https://api.github.com/authorizations
|
129
69
|
body:
|
130
70
|
encoding: UTF-8
|
131
71
|
string: '{"note":"requesting_scopes/bean","scopes":["gist","delete_repo"]}'
|
@@ -133,7 +73,7 @@ http_interactions:
|
|
133
73
|
Accept:
|
134
74
|
- application/vnd.github.v3+json
|
135
75
|
User-Agent:
|
136
|
-
- Octokit Ruby Gem 4.
|
76
|
+
- Octokit Ruby Gem 4.3.0
|
137
77
|
Content-Type:
|
138
78
|
- application/json
|
139
79
|
Accept-Encoding:
|
@@ -146,7 +86,7 @@ http_interactions:
|
|
146
86
|
Server:
|
147
87
|
- GitHub.com
|
148
88
|
Date:
|
149
|
-
- Mon,
|
89
|
+
- Mon, 08 Aug 2016 01:30:55 GMT
|
150
90
|
Content-Type:
|
151
91
|
- application/json; charset=utf-8
|
152
92
|
Content-Length:
|
@@ -156,38 +96,36 @@ http_interactions:
|
|
156
96
|
X-Ratelimit-Limit:
|
157
97
|
- '5000'
|
158
98
|
X-Ratelimit-Remaining:
|
159
|
-
- '
|
99
|
+
- '4998'
|
160
100
|
X-Ratelimit-Reset:
|
161
|
-
- '
|
101
|
+
- '1470623455'
|
162
102
|
Cache-Control:
|
163
103
|
- private, max-age=60, s-maxage=60
|
164
|
-
Location:
|
165
|
-
- https://api.github.com/authorizations/23673992
|
166
104
|
Vary:
|
167
105
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
168
106
|
- Accept-Encoding
|
107
|
+
Location:
|
108
|
+
- https://api.github.com/authorizations/44102334
|
169
109
|
X-Github-Media-Type:
|
170
110
|
- github.v3; format=json
|
171
|
-
X-Xss-Protection:
|
172
|
-
- 1; mode=block
|
173
|
-
X-Frame-Options:
|
174
|
-
- deny
|
175
|
-
Content-Security-Policy:
|
176
|
-
- default-src 'none'
|
177
|
-
Access-Control-Allow-Credentials:
|
178
|
-
- 'true'
|
179
111
|
Access-Control-Expose-Headers:
|
180
112
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
181
113
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
182
114
|
Access-Control-Allow-Origin:
|
183
115
|
- "*"
|
116
|
+
Content-Security-Policy:
|
117
|
+
- default-src 'none'
|
184
118
|
Strict-Transport-Security:
|
185
119
|
- max-age=31536000; includeSubdomains; preload
|
186
120
|
X-Content-Type-Options:
|
187
121
|
- nosniff
|
122
|
+
X-Frame-Options:
|
123
|
+
- deny
|
124
|
+
X-Xss-Protection:
|
125
|
+
- 1; mode=block
|
188
126
|
body:
|
189
127
|
encoding: UTF-8
|
190
|
-
string: '{"id":
|
128
|
+
string: '{"id":44102334,"url":"https://api.github.com/authorizations/44102334","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"token_with_scopes","hashed_token":"edd6c8f41d0c8aa694dcc13650882b3f4496a1e000cf23c8d480c21965ac2080","token_last_eight":"ddf64216","note":"requesting_scopes/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":["gist","delete_repo"],"fingerprint":null}'
|
191
129
|
http_version:
|
192
|
-
recorded_at: Mon,
|
193
|
-
recorded_with: VCR
|
130
|
+
recorded_at: Mon, 08 Aug 2016 01:30:55 GMT
|
131
|
+
recorded_with: VCR 3.0.3
|