octoauth 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.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
@@ -1,63 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://user:pw@api.github.com/authorizations
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"note":"write_test","scopes":[],"fingerprint":"write_test/bean"}'
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- application/vnd.github.v3+json
|
12
|
-
User-Agent:
|
13
|
-
- Octokit Ruby Gem 4.0.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: 401
|
21
|
-
message: Unauthorized
|
22
|
-
headers:
|
23
|
-
Server:
|
24
|
-
- GitHub.com
|
25
|
-
Date:
|
26
|
-
- Sat, 25 Jul 2015 01:56:59 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '83'
|
31
|
-
Status:
|
32
|
-
- 401 Unauthorized
|
33
|
-
X-Github-Media-Type:
|
34
|
-
- github.v3; format=json
|
35
|
-
X-Ratelimit-Limit:
|
36
|
-
- '60'
|
37
|
-
X-Ratelimit-Remaining:
|
38
|
-
- '53'
|
39
|
-
X-Ratelimit-Reset:
|
40
|
-
- '1437793018'
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
|
-
X-Frame-Options:
|
44
|
-
- deny
|
45
|
-
Content-Security-Policy:
|
46
|
-
- default-src 'none'
|
47
|
-
Access-Control-Allow-Credentials:
|
48
|
-
- 'true'
|
49
|
-
Access-Control-Expose-Headers:
|
50
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
51
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
52
|
-
Access-Control-Allow-Origin:
|
53
|
-
- "*"
|
54
|
-
Strict-Transport-Security:
|
55
|
-
- max-age=31536000; includeSubdomains; preload
|
56
|
-
X-Content-Type-Options:
|
57
|
-
- nosniff
|
58
|
-
body:
|
59
|
-
encoding: UTF-8
|
60
|
-
string: '{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}'
|
61
|
-
http_version:
|
62
|
-
recorded_at: Sat, 25 Jul 2015 01:56:59 GMT
|
63
|
-
recorded_with: VCR 2.9.3
|