oauth2-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +10 -0
- data/.travis.yml +1 -0
- data/Gemfile +7 -12
- data/Gemfile.lock +17 -9
- data/{LICENSE → LICENSE.md} +1 -1
- data/README.md +109 -19
- data/examples/github_client.rb +42 -0
- data/examples/google_client.rb +17 -15
- data/examples/yammer_client.rb +96 -0
- data/lib/oauth2/client.rb +12 -0
- data/lib/oauth2/connection.rb +8 -12
- data/lib/oauth2/grant/authorization_code.rb +7 -8
- data/lib/oauth2/version.rb +1 -1
- data/oauth2-client.gemspec +23 -13
- data/spec/examples/github_client_spec.rb +59 -0
- data/spec/examples/google_client_spec.rb +54 -78
- data/spec/examples/yammer_client_spec.rb +75 -0
- data/spec/oauth2/client_spec.rb +4 -4
- data/spec/oauth2/connection_spec.rb +56 -43
- data/spec/oauth2/grant/authorization_code_spec.rb +7 -2
- data/spec/oauth2/grant/client_credentials_spec.rb +4 -1
- data/spec/oauth2/grant/device_spec.rb +7 -2
- data/spec/oauth2/grant/implicit_spec.rb +4 -1
- data/spec/oauth2/grant/password_spec.rb +4 -1
- data/spec/oauth2/grant/refresh_token_spec.rb +4 -1
- data/spec/spec_helper.rb +18 -1
- metadata +73 -18
- data/TODO +0 -10
- data/spec/.DS_Store +0 -0
- data/spec/mocks/oauth_client.yml +0 -60
data/TODO
DELETED
data/spec/.DS_Store
DELETED
Binary file
|
data/spec/mocks/oauth_client.yml
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
test:
|
2
|
-
google:
|
3
|
-
client_id: '827502413694.apps.googleusercontent.com'
|
4
|
-
client_secret: 'a2nQpcUm2Dgq1chWdAvbXGTk'
|
5
|
-
host: accounts.google.com
|
6
|
-
port: 443
|
7
|
-
token_path: /o/oauth2/token
|
8
|
-
authorize_path: /o/oauth2/auth
|
9
|
-
device_path: /o/oauth2/device/code
|
10
|
-
http_client: #OAuth2Client::Connection
|
11
|
-
max_redirects: 5
|
12
|
-
ssl:
|
13
|
-
|
14
|
-
yammer:
|
15
|
-
client_id: 'PRbTcg9qjgKsp4jjpm1pw'
|
16
|
-
client_secret: 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U'
|
17
|
-
host: www.yammer.com
|
18
|
-
port: 443
|
19
|
-
token_path: /oauth2/access_token
|
20
|
-
authorize_path: /dialog/oauth/
|
21
|
-
device_path:
|
22
|
-
http_client: #OAuth2Client::Connection
|
23
|
-
max_redirects: 5
|
24
|
-
ssl: #
|
25
|
-
|
26
|
-
microsoft:
|
27
|
-
client_id: 'PRbTcg9qjgKsp4jjpm1pw'
|
28
|
-
client_secret: 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U'
|
29
|
-
host: login.live.com
|
30
|
-
port: 443
|
31
|
-
token_path: /oauth20_token.srf
|
32
|
-
authorize_path: /oauth20_authorize.srf
|
33
|
-
device_path:
|
34
|
-
http_client: #OAuth2Client::Connection
|
35
|
-
max_redirects: 5
|
36
|
-
ssl: #
|
37
|
-
|
38
|
-
github:
|
39
|
-
client_id: '2945e6425da3d5d17ffc'
|
40
|
-
client_secret: '0a8f686f2835a70a79dbcece2ec63bc5079f40a8'
|
41
|
-
host: github.com
|
42
|
-
port: 443
|
43
|
-
token_path: /login/oauth/access_token
|
44
|
-
authorize_path: /login/oauth/authorize
|
45
|
-
device_path:
|
46
|
-
http_client: #OAuth2Client::Connection
|
47
|
-
max_redirects: 5
|
48
|
-
ssl: #
|
49
|
-
|
50
|
-
foursquare:
|
51
|
-
client_id: '2945e6425da3d5d17ffc'
|
52
|
-
client_secret: '0a8f686f2835a70a79dbcece2ec63bc5079f40a8'
|
53
|
-
host: foursquare.com
|
54
|
-
port: 443
|
55
|
-
token_path: /oauth2/access_token
|
56
|
-
authorize_path: /oauth2/authenticate
|
57
|
-
device_path:
|
58
|
-
http_client: #OAuth2Client::Connection
|
59
|
-
max_redirects: 5
|
60
|
-
ssl: #
|