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:56 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
|
+
- '4990'
|
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":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
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},{"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":"","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}]'
|
124
64
|
http_version:
|
125
|
-
recorded_at: Mon,
|
65
|
+
recorded_at: Mon, 08 Aug 2016 01:30:56 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":"create_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:56 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
|
+
- '4989'
|
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/23673997
|
166
104
|
Vary:
|
167
105
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
168
106
|
- Accept-Encoding
|
107
|
+
Location:
|
108
|
+
- https://api.github.com/authorizations/44102340
|
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":44102340,"url":"https://api.github.com/authorizations/44102340","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"created_token","hashed_token":"5faf76dc41257005d7380584aedcb5ce0e80631334da4510bb2ea808fbdc02c8","token_last_eight":"f5bb1d26","note":"create_token/bean","note_url":null,"created_at":"2016-08-08T01:30:56Z","updated_at":"2016-08-08T01:30:56Z","scopes":[],"fingerprint":null}'
|
191
129
|
http_version:
|
192
|
-
recorded_at: Mon,
|
193
|
-
recorded_with: VCR
|
130
|
+
recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
|
131
|
+
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,7 +23,7 @@ http_interactions:
|
|
23
23
|
Server:
|
24
24
|
- GitHub.com
|
25
25
|
Date:
|
26
|
-
- Mon,
|
26
|
+
- Mon, 08 Aug 2016 01:34:09 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Content-Length:
|
@@ -37,34 +37,32 @@ http_interactions:
|
|
37
37
|
X-Ratelimit-Limit:
|
38
38
|
- '60'
|
39
39
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
40
|
+
- '10'
|
41
41
|
X-Ratelimit-Reset:
|
42
|
-
- '
|
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'
|
42
|
+
- '1470621361'
|
51
43
|
Access-Control-Expose-Headers:
|
52
44
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
53
45
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
54
46
|
Access-Control-Allow-Origin:
|
55
47
|
- "*"
|
48
|
+
Content-Security-Policy:
|
49
|
+
- default-src 'none'
|
56
50
|
Strict-Transport-Security:
|
57
51
|
- max-age=31536000; includeSubdomains; preload
|
58
52
|
X-Content-Type-Options:
|
59
53
|
- nosniff
|
54
|
+
X-Frame-Options:
|
55
|
+
- deny
|
56
|
+
X-Xss-Protection:
|
57
|
+
- 1; mode=block
|
60
58
|
body:
|
61
59
|
encoding: UTF-8
|
62
60
|
string: '{"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}'
|
63
61
|
http_version:
|
64
|
-
recorded_at: Mon,
|
62
|
+
recorded_at: Mon, 08 Aug 2016 01:34:09 GMT
|
65
63
|
- request:
|
66
64
|
method: get
|
67
|
-
uri: https
|
65
|
+
uri: https://api.github.com/authorizations
|
68
66
|
body:
|
69
67
|
encoding: US-ASCII
|
70
68
|
string: ''
|
@@ -72,11 +70,11 @@ http_interactions:
|
|
72
70
|
Accept:
|
73
71
|
- application/vnd.github.v3+json
|
74
72
|
User-Agent:
|
75
|
-
- Octokit Ruby Gem 4.
|
73
|
+
- Octokit Ruby Gem 4.3.0
|
76
74
|
Content-Type:
|
77
75
|
- application/json
|
78
76
|
X-Github-Otp:
|
79
|
-
- '
|
77
|
+
- '307015'
|
80
78
|
Accept-Encoding:
|
81
79
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
82
80
|
response:
|
@@ -87,7 +85,7 @@ http_interactions:
|
|
87
85
|
Server:
|
88
86
|
- GitHub.com
|
89
87
|
Date:
|
90
|
-
- Mon,
|
88
|
+
- Mon, 08 Aug 2016 01:34:09 GMT
|
91
89
|
Content-Type:
|
92
90
|
- application/json; charset=utf-8
|
93
91
|
Transfer-Encoding:
|
@@ -97,9 +95,9 @@ http_interactions:
|
|
97
95
|
X-Ratelimit-Limit:
|
98
96
|
- '5000'
|
99
97
|
X-Ratelimit-Remaining:
|
100
|
-
- '
|
98
|
+
- '4984'
|
101
99
|
X-Ratelimit-Reset:
|
102
|
-
- '
|
100
|
+
- '1470623455'
|
103
101
|
Cache-Control:
|
104
102
|
- private, max-age=60, s-maxage=60
|
105
103
|
Vary:
|
@@ -107,31 +105,29 @@ http_interactions:
|
|
107
105
|
- Accept-Encoding
|
108
106
|
X-Github-Media-Type:
|
109
107
|
- 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
108
|
Access-Control-Expose-Headers:
|
119
109
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
120
110
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
121
111
|
Access-Control-Allow-Origin:
|
122
112
|
- "*"
|
113
|
+
Content-Security-Policy:
|
114
|
+
- default-src 'none'
|
123
115
|
Strict-Transport-Security:
|
124
116
|
- max-age=31536000; includeSubdomains; preload
|
125
117
|
X-Content-Type-Options:
|
126
118
|
- nosniff
|
119
|
+
X-Frame-Options:
|
120
|
+
- deny
|
121
|
+
X-Xss-Protection:
|
122
|
+
- 1; mode=block
|
127
123
|
body:
|
128
124
|
encoding: ASCII-8BIT
|
129
|
-
string: '[{"id":
|
125
|
+
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":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":"","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},{"id":44102340,"url":"https://api.github.com/authorizations/44102340","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5faf76dc41257005d7380584aedcb5ce0e80631334da4510bb2ea808fbdc02c8","token_last_eight":"f5bb1d26","note":"create_token/bean","note_url":null,"created_at":"2016-08-08T01:30:56Z","updated_at":"2016-08-08T01:30:56Z","scopes":[],"fingerprint":null},{"id":44102341,"url":"https://api.github.com/authorizations/44102341","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"46f6b204e62d2f697856873ad654398566e51309db1107edd56afee1f6302930","token_last_eight":"5f2de63c","note":"two_factor_token/bean","note_url":null,"created_at":"2016-08-08T01:30:57Z","updated_at":"2016-08-08T01:30:57Z","scopes":[],"fingerprint":null},{"id":44102342,"url":"https://api.github.com/authorizations/44102342","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e54a047c1c4269f92fc237452a1571c7320b4eb76772ec8ad7a997878a75c8c6","token_last_eight":"1d1df405","note":"write_first_test/bean","note_url":null,"created_at":"2016-08-08T01:30:57Z","updated_at":"2016-08-08T01:30:57Z","scopes":[],"fingerprint":null}]'
|
130
126
|
http_version:
|
131
|
-
recorded_at: Mon,
|
127
|
+
recorded_at: Mon, 08 Aug 2016 01:34:09 GMT
|
132
128
|
- request:
|
133
129
|
method: delete
|
134
|
-
uri: https
|
130
|
+
uri: https://api.github.com/authorizations/44102341
|
135
131
|
body:
|
136
132
|
encoding: UTF-8
|
137
133
|
string: "{}"
|
@@ -139,11 +135,11 @@ http_interactions:
|
|
139
135
|
Accept:
|
140
136
|
- application/vnd.github.v3+json
|
141
137
|
User-Agent:
|
142
|
-
- Octokit Ruby Gem 4.
|
138
|
+
- Octokit Ruby Gem 4.3.0
|
143
139
|
Content-Type:
|
144
140
|
- application/json
|
145
141
|
X-Github-Otp:
|
146
|
-
- '
|
142
|
+
- '307015'
|
147
143
|
Accept-Encoding:
|
148
144
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
145
|
response:
|
@@ -154,44 +150,42 @@ http_interactions:
|
|
154
150
|
Server:
|
155
151
|
- GitHub.com
|
156
152
|
Date:
|
157
|
-
- Mon,
|
153
|
+
- Mon, 08 Aug 2016 01:34:09 GMT
|
158
154
|
Status:
|
159
155
|
- 204 No Content
|
160
156
|
X-Ratelimit-Limit:
|
161
157
|
- '5000'
|
162
158
|
X-Ratelimit-Remaining:
|
163
|
-
- '
|
159
|
+
- '4983'
|
164
160
|
X-Ratelimit-Reset:
|
165
|
-
- '
|
161
|
+
- '1470623455'
|
166
162
|
X-Github-Media-Type:
|
167
163
|
- 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
164
|
Access-Control-Expose-Headers:
|
177
165
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
178
166
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
179
167
|
Access-Control-Allow-Origin:
|
180
168
|
- "*"
|
169
|
+
Content-Security-Policy:
|
170
|
+
- default-src 'none'
|
181
171
|
Strict-Transport-Security:
|
182
172
|
- max-age=31536000; includeSubdomains; preload
|
183
173
|
X-Content-Type-Options:
|
184
174
|
- nosniff
|
175
|
+
X-Frame-Options:
|
176
|
+
- deny
|
177
|
+
X-Xss-Protection:
|
178
|
+
- 1; mode=block
|
185
179
|
Vary:
|
186
180
|
- Accept-Encoding
|
187
181
|
body:
|
188
182
|
encoding: UTF-8
|
189
183
|
string: ''
|
190
184
|
http_version:
|
191
|
-
recorded_at: Mon,
|
185
|
+
recorded_at: Mon, 08 Aug 2016 01:34:09 GMT
|
192
186
|
- request:
|
193
187
|
method: post
|
194
|
-
uri: https
|
188
|
+
uri: https://api.github.com/authorizations
|
195
189
|
body:
|
196
190
|
encoding: UTF-8
|
197
191
|
string: '{"note":"two_factor_token/bean","scopes":[]}'
|
@@ -199,11 +193,11 @@ http_interactions:
|
|
199
193
|
Accept:
|
200
194
|
- application/vnd.github.v3+json
|
201
195
|
User-Agent:
|
202
|
-
- Octokit Ruby Gem 4.
|
196
|
+
- Octokit Ruby Gem 4.3.0
|
203
197
|
Content-Type:
|
204
198
|
- application/json
|
205
199
|
X-Github-Otp:
|
206
|
-
- '
|
200
|
+
- '307015'
|
207
201
|
Accept-Encoding:
|
208
202
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
209
203
|
response:
|
@@ -214,7 +208,7 @@ http_interactions:
|
|
214
208
|
Server:
|
215
209
|
- GitHub.com
|
216
210
|
Date:
|
217
|
-
- Mon,
|
211
|
+
- Mon, 08 Aug 2016 01:34:10 GMT
|
218
212
|
Content-Type:
|
219
213
|
- application/json; charset=utf-8
|
220
214
|
Content-Length:
|
@@ -224,38 +218,36 @@ http_interactions:
|
|
224
218
|
X-Ratelimit-Limit:
|
225
219
|
- '5000'
|
226
220
|
X-Ratelimit-Remaining:
|
227
|
-
- '
|
221
|
+
- '4982'
|
228
222
|
X-Ratelimit-Reset:
|
229
|
-
- '
|
223
|
+
- '1470623455'
|
230
224
|
Cache-Control:
|
231
225
|
- private, max-age=60, s-maxage=60
|
232
|
-
Location:
|
233
|
-
- https://api.github.com/authorizations/23674459
|
234
226
|
Vary:
|
235
227
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
236
228
|
- Accept-Encoding
|
229
|
+
Location:
|
230
|
+
- https://api.github.com/authorizations/44102571
|
237
231
|
X-Github-Media-Type:
|
238
232
|
- github.v3; format=json
|
239
|
-
X-Xss-Protection:
|
240
|
-
- 1; mode=block
|
241
|
-
X-Frame-Options:
|
242
|
-
- deny
|
243
|
-
Content-Security-Policy:
|
244
|
-
- default-src 'none'
|
245
|
-
Access-Control-Allow-Credentials:
|
246
|
-
- 'true'
|
247
233
|
Access-Control-Expose-Headers:
|
248
234
|
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
249
235
|
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
250
236
|
Access-Control-Allow-Origin:
|
251
237
|
- "*"
|
238
|
+
Content-Security-Policy:
|
239
|
+
- default-src 'none'
|
252
240
|
Strict-Transport-Security:
|
253
241
|
- max-age=31536000; includeSubdomains; preload
|
254
242
|
X-Content-Type-Options:
|
255
243
|
- nosniff
|
244
|
+
X-Frame-Options:
|
245
|
+
- deny
|
246
|
+
X-Xss-Protection:
|
247
|
+
- 1; mode=block
|
256
248
|
body:
|
257
249
|
encoding: UTF-8
|
258
|
-
string: '{"id":
|
250
|
+
string: '{"id":44102571,"url":"https://api.github.com/authorizations/44102571","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"2fa_required_token","hashed_token":"2f386922bc5b6b543cf2fc65be3401243a842bb34c8925c6d20fcd6269de10d3","token_last_eight":"7f62752b","note":"two_factor_token/bean","note_url":null,"created_at":"2016-08-08T01:34:10Z","updated_at":"2016-08-08T01:34:10Z","scopes":[],"fingerprint":null}'
|
259
251
|
http_version:
|
260
|
-
recorded_at: Mon,
|
261
|
-
recorded_with: VCR
|
252
|
+
recorded_at: Mon, 08 Aug 2016 01:34:10 GMT
|
253
|
+
recorded_with: VCR 3.0.3
|