octoauth 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/circle.yml +13 -0
- data/lib/octoauth/auth.rb +14 -12
- data/octoauth.gemspec +7 -7
- data/spec/examples/existing_token.yml +2 -0
- data/spec/examples/write_first_test.yml +2 -0
- data/spec/fixtures/cassettes/alternate_endpoints.yml +193 -0
- data/spec/fixtures/cassettes/autosaving_config_file.yml +145 -15
- data/spec/fixtures/cassettes/create_token.yml +193 -0
- data/spec/fixtures/cassettes/handle_two_factor.yml +209 -11
- data/spec/fixtures/cassettes/recreate_token.yml +383 -0
- data/spec/fixtures/cassettes/requesting_scopes.yml +145 -15
- data/spec/fixtures/cassettes/write_to_first_file.yml +193 -0
- data/spec/octoauth/auth_spec.rb +62 -87
- data/spec/octoauth/configfile_spec.rb +7 -7
- data/spec/spec_helper.rb +12 -8
- metadata +28 -26
- data/.travis.yml +0 -17
- data/spec/examples/conf_a.yml +0 -3
- data/spec/fixtures/cassettes/Write_to_first_file.yml +0 -63
- data/spec/fixtures/cassettes/creates_new_token.yml +0 -63
- data/spec/fixtures/cassettes/request_user_input.yml +0 -63
- data/spec/fixtures/cassettes/save_to_disk.yml +0 -63
@@ -0,0 +1,193 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3+json
|
12
|
+
User-Agent:
|
13
|
+
- Octokit Ruby Gem 4.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- GitHub.com
|
25
|
+
Date:
|
26
|
+
- Mon, 26 Oct 2015 02:45:39 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4972'
|
37
|
+
X-Ratelimit-Reset:
|
38
|
+
- '1445829724'
|
39
|
+
Cache-Control:
|
40
|
+
- private, max-age=60, s-maxage=60
|
41
|
+
Vary:
|
42
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
43
|
+
- Accept-Encoding
|
44
|
+
X-Github-Media-Type:
|
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
|
+
Access-Control-Expose-Headers:
|
55
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
56
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
57
|
+
Access-Control-Allow-Origin:
|
58
|
+
- "*"
|
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":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},{"id":23673996,"url":"https://api.github.com/authorizations/23673996","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"55a64a37a4d738582ec4d054ce00591588a04ee8ec55a4dda4d53aaf8057a98f","token_last_eight":"c1e9e2ec","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null}]'
|
66
|
+
http_version:
|
67
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
68
|
+
- request:
|
69
|
+
method: delete
|
70
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673464
|
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
|
+
- '4971'
|
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
|
+
Content-Security-Policy:
|
107
|
+
- 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
|
+
Strict-Transport-Security:
|
116
|
+
- max-age=31536000; includeSubdomains; preload
|
117
|
+
X-Content-Type-Options:
|
118
|
+
- nosniff
|
119
|
+
Vary:
|
120
|
+
- Accept-Encoding
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: ''
|
124
|
+
http_version:
|
125
|
+
recorded_at: Mon, 26 Oct 2015 02:45:40 GMT
|
126
|
+
- request:
|
127
|
+
method: post
|
128
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"note":"create_token/bean","scopes":[]}'
|
132
|
+
headers:
|
133
|
+
Accept:
|
134
|
+
- application/vnd.github.v3+json
|
135
|
+
User-Agent:
|
136
|
+
- Octokit Ruby Gem 4.1.1
|
137
|
+
Content-Type:
|
138
|
+
- application/json
|
139
|
+
Accept-Encoding:
|
140
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
141
|
+
response:
|
142
|
+
status:
|
143
|
+
code: 201
|
144
|
+
message: Created
|
145
|
+
headers:
|
146
|
+
Server:
|
147
|
+
- GitHub.com
|
148
|
+
Date:
|
149
|
+
- Mon, 26 Oct 2015 02:45:40 GMT
|
150
|
+
Content-Type:
|
151
|
+
- application/json; charset=utf-8
|
152
|
+
Content-Length:
|
153
|
+
- '511'
|
154
|
+
Status:
|
155
|
+
- 201 Created
|
156
|
+
X-Ratelimit-Limit:
|
157
|
+
- '5000'
|
158
|
+
X-Ratelimit-Remaining:
|
159
|
+
- '4970'
|
160
|
+
X-Ratelimit-Reset:
|
161
|
+
- '1445829724'
|
162
|
+
Cache-Control:
|
163
|
+
- private, max-age=60, s-maxage=60
|
164
|
+
Location:
|
165
|
+
- https://api.github.com/authorizations/23673997
|
166
|
+
Vary:
|
167
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
168
|
+
- Accept-Encoding
|
169
|
+
X-Github-Media-Type:
|
170
|
+
- 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
|
+
Access-Control-Expose-Headers:
|
180
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
181
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
182
|
+
Access-Control-Allow-Origin:
|
183
|
+
- "*"
|
184
|
+
Strict-Transport-Security:
|
185
|
+
- max-age=31536000; includeSubdomains; preload
|
186
|
+
X-Content-Type-Options:
|
187
|
+
- nosniff
|
188
|
+
body:
|
189
|
+
encoding: UTF-8
|
190
|
+
string: '{"id":23673997,"url":"https://api.github.com/authorizations/23673997","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"created_token","hashed_token":"9be225308ddbc5da3152e399ca3937f5bd19c784dc85f9975015eb5e775c7a00","token_last_eight":"dde1fdd1","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:45:40Z","updated_at":"2015-10-26T02:45:40Z","scopes":[],"fingerprint":null}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Mon, 26 Oct 2015 02:45:40 GMT
|
193
|
+
recorded_with: VCR 2.9.3
|
@@ -1,16 +1,16 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: https
|
4
|
+
method: get
|
5
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: '
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/vnd.github.v3+json
|
12
12
|
User-Agent:
|
13
|
-
- Octokit Ruby Gem 4.
|
13
|
+
- Octokit Ruby Gem 4.1.1
|
14
14
|
Content-Type:
|
15
15
|
- application/json
|
16
16
|
Accept-Encoding:
|
@@ -23,21 +23,219 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Mon, 26 Oct 2015 03:05:45 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '160'
|
31
31
|
Status:
|
32
32
|
- 401 Unauthorized
|
33
|
+
X-Github-Otp:
|
34
|
+
- required; app
|
33
35
|
X-Github-Media-Type:
|
34
36
|
- github.v3; format=json
|
35
37
|
X-Ratelimit-Limit:
|
36
38
|
- '60'
|
37
39
|
X-Ratelimit-Remaining:
|
38
|
-
- '
|
40
|
+
- '0'
|
41
|
+
X-Ratelimit-Reset:
|
42
|
+
- '1445831862'
|
43
|
+
X-Xss-Protection:
|
44
|
+
- 1; mode=block
|
45
|
+
X-Frame-Options:
|
46
|
+
- deny
|
47
|
+
Content-Security-Policy:
|
48
|
+
- default-src 'none'
|
49
|
+
Access-Control-Allow-Credentials:
|
50
|
+
- 'true'
|
51
|
+
Access-Control-Expose-Headers:
|
52
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
53
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
54
|
+
Access-Control-Allow-Origin:
|
55
|
+
- "*"
|
56
|
+
Strict-Transport-Security:
|
57
|
+
- max-age=31536000; includeSubdomains; preload
|
58
|
+
X-Content-Type-Options:
|
59
|
+
- nosniff
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Mon, 26 Oct 2015 03:05:45 GMT
|
65
|
+
- request:
|
66
|
+
method: get
|
67
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
68
|
+
body:
|
69
|
+
encoding: US-ASCII
|
70
|
+
string: ''
|
71
|
+
headers:
|
72
|
+
Accept:
|
73
|
+
- application/vnd.github.v3+json
|
74
|
+
User-Agent:
|
75
|
+
- Octokit Ruby Gem 4.1.1
|
76
|
+
Content-Type:
|
77
|
+
- application/json
|
78
|
+
X-Github-Otp:
|
79
|
+
- '120193'
|
80
|
+
Accept-Encoding:
|
81
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Server:
|
88
|
+
- GitHub.com
|
89
|
+
Date:
|
90
|
+
- Mon, 26 Oct 2015 03:05:45 GMT
|
91
|
+
Content-Type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
Transfer-Encoding:
|
94
|
+
- chunked
|
95
|
+
Status:
|
96
|
+
- 200 OK
|
97
|
+
X-Ratelimit-Limit:
|
98
|
+
- '5000'
|
99
|
+
X-Ratelimit-Remaining:
|
100
|
+
- '4780'
|
39
101
|
X-Ratelimit-Reset:
|
40
|
-
- '
|
102
|
+
- '1445829724'
|
103
|
+
Cache-Control:
|
104
|
+
- private, max-age=60, s-maxage=60
|
105
|
+
Vary:
|
106
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
107
|
+
- Accept-Encoding
|
108
|
+
X-Github-Media-Type:
|
109
|
+
- github.v3; format=json
|
110
|
+
X-Xss-Protection:
|
111
|
+
- 1; mode=block
|
112
|
+
X-Frame-Options:
|
113
|
+
- deny
|
114
|
+
Content-Security-Policy:
|
115
|
+
- default-src 'none'
|
116
|
+
Access-Control-Allow-Credentials:
|
117
|
+
- 'true'
|
118
|
+
Access-Control-Expose-Headers:
|
119
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
120
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
121
|
+
Access-Control-Allow-Origin:
|
122
|
+
- "*"
|
123
|
+
Strict-Transport-Security:
|
124
|
+
- max-age=31536000; includeSubdomains; preload
|
125
|
+
X-Content-Type-Options:
|
126
|
+
- nosniff
|
127
|
+
body:
|
128
|
+
encoding: ASCII-8BIT
|
129
|
+
string: '[{"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},{"id":23673996,"url":"https://api.github.com/authorizations/23673996","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"55a64a37a4d738582ec4d054ce00591588a04ee8ec55a4dda4d53aaf8057a98f","token_last_eight":"c1e9e2ec","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null},{"id":23673997,"url":"https://api.github.com/authorizations/23673997","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"9be225308ddbc5da3152e399ca3937f5bd19c784dc85f9975015eb5e775c7a00","token_last_eight":"dde1fdd1","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:45:40Z","updated_at":"2015-10-26T02:45:40Z","scopes":[],"fingerprint":null},{"id":23673998,"url":"https://api.github.com/authorizations/23673998","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"343a80905d4861145447d5d965051ae2e4d181d01240e070bf26b8e79eb5e85b","token_last_eight":"982feb05","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:45:40Z","updated_at":"2015-10-26T02:45:40Z","scopes":[],"fingerprint":null},{"id":23674000,"url":"https://api.github.com/authorizations/23674000","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e636e08ef6d6a5fed226e42d69a9a7885324337d313eea93727ab79c19b3d81b","token_last_eight":"1f6e7bdf","note":"write_first_test/bean","note_url":null,"created_at":"2015-10-26T02:45:41Z","updated_at":"2015-10-26T02:45:41Z","scopes":[],"fingerprint":null}]'
|
130
|
+
http_version:
|
131
|
+
recorded_at: Mon, 26 Oct 2015 03:05:45 GMT
|
132
|
+
- request:
|
133
|
+
method: delete
|
134
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673998
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: "{}"
|
138
|
+
headers:
|
139
|
+
Accept:
|
140
|
+
- application/vnd.github.v3+json
|
141
|
+
User-Agent:
|
142
|
+
- Octokit Ruby Gem 4.1.1
|
143
|
+
Content-Type:
|
144
|
+
- application/json
|
145
|
+
X-Github-Otp:
|
146
|
+
- '120193'
|
147
|
+
Accept-Encoding:
|
148
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
+
response:
|
150
|
+
status:
|
151
|
+
code: 204
|
152
|
+
message: No Content
|
153
|
+
headers:
|
154
|
+
Server:
|
155
|
+
- GitHub.com
|
156
|
+
Date:
|
157
|
+
- Mon, 26 Oct 2015 03:05:45 GMT
|
158
|
+
Status:
|
159
|
+
- 204 No Content
|
160
|
+
X-Ratelimit-Limit:
|
161
|
+
- '5000'
|
162
|
+
X-Ratelimit-Remaining:
|
163
|
+
- '4779'
|
164
|
+
X-Ratelimit-Reset:
|
165
|
+
- '1445829724'
|
166
|
+
X-Github-Media-Type:
|
167
|
+
- github.v3; format=json
|
168
|
+
X-Xss-Protection:
|
169
|
+
- 1; mode=block
|
170
|
+
X-Frame-Options:
|
171
|
+
- deny
|
172
|
+
Content-Security-Policy:
|
173
|
+
- default-src 'none'
|
174
|
+
Access-Control-Allow-Credentials:
|
175
|
+
- 'true'
|
176
|
+
Access-Control-Expose-Headers:
|
177
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
178
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
179
|
+
Access-Control-Allow-Origin:
|
180
|
+
- "*"
|
181
|
+
Strict-Transport-Security:
|
182
|
+
- max-age=31536000; includeSubdomains; preload
|
183
|
+
X-Content-Type-Options:
|
184
|
+
- nosniff
|
185
|
+
Vary:
|
186
|
+
- Accept-Encoding
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: ''
|
190
|
+
http_version:
|
191
|
+
recorded_at: Mon, 26 Oct 2015 03:05:45 GMT
|
192
|
+
- request:
|
193
|
+
method: post
|
194
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
195
|
+
body:
|
196
|
+
encoding: UTF-8
|
197
|
+
string: '{"note":"two_factor_token/bean","scopes":[]}'
|
198
|
+
headers:
|
199
|
+
Accept:
|
200
|
+
- application/vnd.github.v3+json
|
201
|
+
User-Agent:
|
202
|
+
- Octokit Ruby Gem 4.1.1
|
203
|
+
Content-Type:
|
204
|
+
- application/json
|
205
|
+
X-Github-Otp:
|
206
|
+
- '120193'
|
207
|
+
Accept-Encoding:
|
208
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
209
|
+
response:
|
210
|
+
status:
|
211
|
+
code: 201
|
212
|
+
message: Created
|
213
|
+
headers:
|
214
|
+
Server:
|
215
|
+
- GitHub.com
|
216
|
+
Date:
|
217
|
+
- Mon, 26 Oct 2015 03:05:45 GMT
|
218
|
+
Content-Type:
|
219
|
+
- application/json; charset=utf-8
|
220
|
+
Content-Length:
|
221
|
+
- '519'
|
222
|
+
Status:
|
223
|
+
- 201 Created
|
224
|
+
X-Ratelimit-Limit:
|
225
|
+
- '5000'
|
226
|
+
X-Ratelimit-Remaining:
|
227
|
+
- '4778'
|
228
|
+
X-Ratelimit-Reset:
|
229
|
+
- '1445829724'
|
230
|
+
Cache-Control:
|
231
|
+
- private, max-age=60, s-maxage=60
|
232
|
+
Location:
|
233
|
+
- https://api.github.com/authorizations/23674459
|
234
|
+
Vary:
|
235
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
236
|
+
- Accept-Encoding
|
237
|
+
X-Github-Media-Type:
|
238
|
+
- github.v3; format=json
|
41
239
|
X-Xss-Protection:
|
42
240
|
- 1; mode=block
|
43
241
|
X-Frame-Options:
|
@@ -57,7 +255,7 @@ http_interactions:
|
|
57
255
|
- nosniff
|
58
256
|
body:
|
59
257
|
encoding: UTF-8
|
60
|
-
string: '{"
|
258
|
+
string: '{"id":23674459,"url":"https://api.github.com/authorizations/23674459","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"2fa_required_token","hashed_token":"87c324bc4fdc955e9889f7e8ae11dd36af634be132543fd92c696e9f81fff60b","token_last_eight":"1e2dc47a","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T03:05:45Z","updated_at":"2015-10-26T03:05:45Z","scopes":[],"fingerprint":null}'
|
61
259
|
http_version:
|
62
|
-
recorded_at:
|
260
|
+
recorded_at: Mon, 26 Oct 2015 03:05:46 GMT
|
63
261
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,383 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.github.v3+json
|
12
|
+
User-Agent:
|
13
|
+
- Octokit Ruby Gem 4.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- GitHub.com
|
25
|
+
Date:
|
26
|
+
- Mon, 26 Oct 2015 02:45:38 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Ratelimit-Limit:
|
34
|
+
- '5000'
|
35
|
+
X-Ratelimit-Remaining:
|
36
|
+
- '4978'
|
37
|
+
X-Ratelimit-Reset:
|
38
|
+
- '1445829724'
|
39
|
+
Cache-Control:
|
40
|
+
- private, max-age=60, s-maxage=60
|
41
|
+
Vary:
|
42
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
43
|
+
- Accept-Encoding
|
44
|
+
X-Github-Media-Type:
|
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
|
+
Access-Control-Expose-Headers:
|
55
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
56
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
57
|
+
Access-Control-Allow-Origin:
|
58
|
+
- "*"
|
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
|
+
Content-Security-Policy:
|
107
|
+
- 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
|
+
Strict-Transport-Security:
|
116
|
+
- max-age=31536000; includeSubdomains; preload
|
117
|
+
X-Content-Type-Options:
|
118
|
+
- nosniff
|
119
|
+
Vary:
|
120
|
+
- Accept-Encoding
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: ''
|
124
|
+
http_version:
|
125
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
126
|
+
- request:
|
127
|
+
method: post
|
128
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"note":"existing_token/bean","scopes":[]}'
|
132
|
+
headers:
|
133
|
+
Accept:
|
134
|
+
- application/vnd.github.v3+json
|
135
|
+
User-Agent:
|
136
|
+
- Octokit Ruby Gem 4.1.1
|
137
|
+
Content-Type:
|
138
|
+
- application/json
|
139
|
+
Accept-Encoding:
|
140
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
141
|
+
response:
|
142
|
+
status:
|
143
|
+
code: 201
|
144
|
+
message: Created
|
145
|
+
headers:
|
146
|
+
Server:
|
147
|
+
- GitHub.com
|
148
|
+
Date:
|
149
|
+
- Mon, 26 Oct 2015 02:45:39 GMT
|
150
|
+
Content-Type:
|
151
|
+
- application/json; charset=utf-8
|
152
|
+
Content-Length:
|
153
|
+
- '515'
|
154
|
+
Status:
|
155
|
+
- 201 Created
|
156
|
+
X-Ratelimit-Limit:
|
157
|
+
- '5000'
|
158
|
+
X-Ratelimit-Remaining:
|
159
|
+
- '4976'
|
160
|
+
X-Ratelimit-Reset:
|
161
|
+
- '1445829724'
|
162
|
+
Cache-Control:
|
163
|
+
- private, max-age=60, s-maxage=60
|
164
|
+
Location:
|
165
|
+
- https://api.github.com/authorizations/23673994
|
166
|
+
Vary:
|
167
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
168
|
+
- Accept-Encoding
|
169
|
+
X-Github-Media-Type:
|
170
|
+
- 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
|
+
Access-Control-Expose-Headers:
|
180
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
181
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
182
|
+
Access-Control-Allow-Origin:
|
183
|
+
- "*"
|
184
|
+
Strict-Transport-Security:
|
185
|
+
- max-age=31536000; includeSubdomains; preload
|
186
|
+
X-Content-Type-Options:
|
187
|
+
- nosniff
|
188
|
+
body:
|
189
|
+
encoding: UTF-8
|
190
|
+
string: '{"id":23673994,"url":"https://api.github.com/authorizations/23673994","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"bbbbc295733b83cef54352c519ba686f6f475692","hashed_token":"e7b661927b0b5026f31cb478f06ed259892caf0068fbee7c11a5b575c4706473","token_last_eight":"6f475692","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
193
|
+
- request:
|
194
|
+
method: get
|
195
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: ''
|
199
|
+
headers:
|
200
|
+
Accept:
|
201
|
+
- application/vnd.github.v3+json
|
202
|
+
User-Agent:
|
203
|
+
- Octokit Ruby Gem 4.1.1
|
204
|
+
Content-Type:
|
205
|
+
- application/json
|
206
|
+
Accept-Encoding:
|
207
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
208
|
+
response:
|
209
|
+
status:
|
210
|
+
code: 200
|
211
|
+
message: OK
|
212
|
+
headers:
|
213
|
+
Server:
|
214
|
+
- GitHub.com
|
215
|
+
Date:
|
216
|
+
- Mon, 26 Oct 2015 02:45:39 GMT
|
217
|
+
Content-Type:
|
218
|
+
- application/json; charset=utf-8
|
219
|
+
Transfer-Encoding:
|
220
|
+
- chunked
|
221
|
+
Status:
|
222
|
+
- 200 OK
|
223
|
+
X-Ratelimit-Limit:
|
224
|
+
- '5000'
|
225
|
+
X-Ratelimit-Remaining:
|
226
|
+
- '4975'
|
227
|
+
X-Ratelimit-Reset:
|
228
|
+
- '1445829724'
|
229
|
+
Cache-Control:
|
230
|
+
- private, max-age=60, s-maxage=60
|
231
|
+
Vary:
|
232
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
233
|
+
- Accept-Encoding
|
234
|
+
X-Github-Media-Type:
|
235
|
+
- 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
|
+
Access-Control-Expose-Headers:
|
245
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
246
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
247
|
+
Access-Control-Allow-Origin:
|
248
|
+
- "*"
|
249
|
+
Strict-Transport-Security:
|
250
|
+
- max-age=31536000; includeSubdomains; preload
|
251
|
+
X-Content-Type-Options:
|
252
|
+
- nosniff
|
253
|
+
body:
|
254
|
+
encoding: ASCII-8BIT
|
255
|
+
string: '[{"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},{"id":23673994,"url":"https://api.github.com/authorizations/23673994","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e7b661927b0b5026f31cb478f06ed259892caf0068fbee7c11a5b575c4706473","token_last_eight":"6f475692","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null}]'
|
256
|
+
http_version:
|
257
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
258
|
+
- request:
|
259
|
+
method: delete
|
260
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673994
|
261
|
+
body:
|
262
|
+
encoding: UTF-8
|
263
|
+
string: "{}"
|
264
|
+
headers:
|
265
|
+
Accept:
|
266
|
+
- application/vnd.github.v3+json
|
267
|
+
User-Agent:
|
268
|
+
- Octokit Ruby Gem 4.1.1
|
269
|
+
Content-Type:
|
270
|
+
- application/json
|
271
|
+
Accept-Encoding:
|
272
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
273
|
+
response:
|
274
|
+
status:
|
275
|
+
code: 204
|
276
|
+
message: No Content
|
277
|
+
headers:
|
278
|
+
Server:
|
279
|
+
- GitHub.com
|
280
|
+
Date:
|
281
|
+
- Mon, 26 Oct 2015 02:45:39 GMT
|
282
|
+
Status:
|
283
|
+
- 204 No Content
|
284
|
+
X-Ratelimit-Limit:
|
285
|
+
- '5000'
|
286
|
+
X-Ratelimit-Remaining:
|
287
|
+
- '4974'
|
288
|
+
X-Ratelimit-Reset:
|
289
|
+
- '1445829724'
|
290
|
+
X-Github-Media-Type:
|
291
|
+
- 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
|
+
Access-Control-Expose-Headers:
|
301
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
302
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
303
|
+
Access-Control-Allow-Origin:
|
304
|
+
- "*"
|
305
|
+
Strict-Transport-Security:
|
306
|
+
- max-age=31536000; includeSubdomains; preload
|
307
|
+
X-Content-Type-Options:
|
308
|
+
- nosniff
|
309
|
+
Vary:
|
310
|
+
- Accept-Encoding
|
311
|
+
body:
|
312
|
+
encoding: UTF-8
|
313
|
+
string: ''
|
314
|
+
http_version:
|
315
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
316
|
+
- request:
|
317
|
+
method: post
|
318
|
+
uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
|
319
|
+
body:
|
320
|
+
encoding: UTF-8
|
321
|
+
string: '{"note":"existing_token/bean","scopes":[]}'
|
322
|
+
headers:
|
323
|
+
Accept:
|
324
|
+
- application/vnd.github.v3+json
|
325
|
+
User-Agent:
|
326
|
+
- Octokit Ruby Gem 4.1.1
|
327
|
+
Content-Type:
|
328
|
+
- application/json
|
329
|
+
Accept-Encoding:
|
330
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
331
|
+
response:
|
332
|
+
status:
|
333
|
+
code: 201
|
334
|
+
message: Created
|
335
|
+
headers:
|
336
|
+
Server:
|
337
|
+
- GitHub.com
|
338
|
+
Date:
|
339
|
+
- Mon, 26 Oct 2015 02:45:39 GMT
|
340
|
+
Content-Type:
|
341
|
+
- application/json; charset=utf-8
|
342
|
+
Content-Length:
|
343
|
+
- '515'
|
344
|
+
Status:
|
345
|
+
- 201 Created
|
346
|
+
X-Ratelimit-Limit:
|
347
|
+
- '5000'
|
348
|
+
X-Ratelimit-Remaining:
|
349
|
+
- '4973'
|
350
|
+
X-Ratelimit-Reset:
|
351
|
+
- '1445829724'
|
352
|
+
Cache-Control:
|
353
|
+
- private, max-age=60, s-maxage=60
|
354
|
+
Location:
|
355
|
+
- https://api.github.com/authorizations/23673996
|
356
|
+
Vary:
|
357
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
358
|
+
- Accept-Encoding
|
359
|
+
X-Github-Media-Type:
|
360
|
+
- 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
|
+
Access-Control-Expose-Headers:
|
370
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
371
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
372
|
+
Access-Control-Allow-Origin:
|
373
|
+
- "*"
|
374
|
+
Strict-Transport-Security:
|
375
|
+
- max-age=31536000; includeSubdomains; preload
|
376
|
+
X-Content-Type-Options:
|
377
|
+
- nosniff
|
378
|
+
body:
|
379
|
+
encoding: UTF-8
|
380
|
+
string: '{"id":23673996,"url":"https://api.github.com/authorizations/23673996","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"274bd8255ac9be9dd26cb6644337d952c1e9e2ec","hashed_token":"55a64a37a4d738582ec4d054ce00591588a04ee8ec55a4dda4d53aaf8057a98f","token_last_eight":"c1e9e2ec","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null}'
|
381
|
+
http_version:
|
382
|
+
recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
|
383
|
+
recorded_with: VCR 2.9.3
|