opensesame 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +11 -1
- data/app/controllers/open_sesame/sessions_controller.rb +6 -2
- data/lib/open_sesame.rb +8 -2
- data/lib/open_sesame/configuration.rb +23 -8
- data/lib/open_sesame/devise.rb +13 -0
- data/lib/open_sesame/engine.rb +12 -16
- data/lib/open_sesame/failure/devise_app.rb +1 -1
- data/lib/open_sesame/github_auth.rb +17 -1
- data/lib/open_sesame/github_warden.rb +6 -2
- data/lib/open_sesame/helpers/controller_helper.rb +1 -1
- data/lib/open_sesame/member.rb +52 -19
- data/lib/open_sesame/version.rb +1 -1
- data/spec/dummy/app/models/user.rb +8 -0
- data/spec/dummy/config/initializers/devise.rb +267 -0
- data/spec/dummy/config/initializers/opensesame.rb +5 -4
- data/spec/dummy/config/locales/devise.en.yml +59 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140410210424_devise_create_users.rb +42 -0
- data/spec/dummy/db/schema.rb +19 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +153 -0
- data/spec/dummy/log/test.log +77170 -0
- data/spec/dummy/tmp/cache/assets/C72/560/sprockets%2F454956b6f70061da46ea7e27111c1008 +0 -0
- data/spec/dummy/tmp/cache/assets/C96/3A0/sprockets%2F97c9391b36c4982d0c9fc0807276627f +0 -0
- data/spec/dummy/tmp/cache/assets/CA9/460/sprockets%2F948e48dc820b40d8161dd1460b2064b9 +0 -0
- data/spec/dummy/tmp/cache/assets/CB9/D50/sprockets%2F2945a991966bdb26e54c2d48a63d6225 +0 -0
- data/spec/dummy/tmp/cache/assets/CFC/F00/sprockets%2F031f4282e0b852bc633f0bad24e56c63 +0 -0
- data/spec/dummy/tmp/cache/assets/D08/BA0/sprockets%2F796774ff7a0a9a7f394dd67d369c8693 +0 -0
- data/spec/dummy/tmp/cache/assets/D4C/C80/sprockets%2F3555b9b1ef17e63f54c7f2a819a2ce88 +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D60/A00/sprockets%2F47747aad6a9bcc1d57003331c30e6cfd +0 -0
- data/spec/dummy/tmp/cache/assets/D61/6B0/sprockets%2Faa0ef972a2d713f5b0096ead0e9a0681 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/F40/sprockets%2F071c809d0cdd0bbad45a1b9f8d718858 +0 -0
- data/spec/dummy/tmp/cache/assets/D9D/E40/sprockets%2F81ceef9ff2401a52fa3d5777afa0348b +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/lib/open_sesame/configuration_spec.rb +9 -4
- data/spec/lib/open_sesame/github_warden_spec.rb +13 -8
- data/spec/lib/open_sesame/member_spec.rb +9 -25
- data/spec/lib/open_sesame/sessions_spec.rb +4 -5
- data/spec/spec_helper.rb +7 -5
- data/spec/support/capybara.rb +15 -11
- data/spec/support/request_helpers.rb +1 -1
- data/spec/support/vcr.rb +3 -2
- data/spec/vcr/1.9/member/retrieves_attributes_from_github.yml +491 -0
- data/spec/vcr/1.9/member/returns_nil_if_no_github_member_found.yml +185 -0
- data/spec/vcr/1.9/member/serialize_from_session_returns_member_from_given_member_id.yml +491 -0
- data/spec/vcr/1.9/member/serialize_into_session_returns_given_member_id_in_array.yml +491 -0
- data/spec/vcr/1.9/session/allows_auto_login.yml +491 -0
- data/spec/vcr/1.9/session/enforces_opensesame_login.yml +491 -0
- data/spec/vcr/1.9/session/skips_auto_login_if_just_logged_out.yml +491 -0
- data/spec/vcr/2.0/member/retrieves_attributes_from_github.yml +208 -0
- data/spec/vcr/2.0/member/returns_nil_if_no_github_member_found.yml +67 -0
- data/spec/vcr/2.0/member/serialize_from_session_returns_member_from_given_member_id.yml +208 -0
- data/spec/vcr/2.0/member/serialize_into_session_returns_given_member_id_in_array.yml +208 -0
- data/spec/vcr/2.0/session/allows_auto_login.yml +208 -0
- data/spec/vcr/2.0/session/enforces_opensesame_login.yml +208 -0
- data/spec/vcr/2.0/session/skips_auto_login_if_just_logged_out.yml +208 -0
- metadata +141 -81
- data/spec/vcr/member/retrieves_attributes_from_github.yml +0 -46
- data/spec/vcr/member/returns_nil_if_no_github_member_found.yml +0 -46
- data/spec/vcr/member/serialize_from_session_returns_member_from_given_member_id.yml +0 -89
- data/spec/vcr/member/serialize_into_session_returns_given_member_id_in_array.yml +0 -46
- data/spec/vcr/session/allows_auto_login.yml +0 -132
- data/spec/vcr/session/enforces_opensesame_login.yml +0 -132
- data/spec/vcr/session/skips_auto_login_if_just_logged_out.yml +0 -175
- data/spec/vcr/session/tries_auto_login_and_ends_up_on_opensesame_page_after_failure.yml +0 -46
@@ -0,0 +1,208 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.github.com/orgs/challengepost/members/rossta?client_id=65c6c34afdfc113d4698&client_secret=59c44f344f9c45b4f15b03935bb2cc0501d40e46
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- application/vnd.github.beta+json
|
12
|
+
user-agent:
|
13
|
+
- Octokit Ruby Gem 2.3.1
|
14
|
+
accept-encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 302
|
19
|
+
message: Found
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- GitHub.com
|
23
|
+
date:
|
24
|
+
- Fri, 11 Apr 2014 14:53:21 GMT
|
25
|
+
content-type:
|
26
|
+
- text/html;charset=utf-8
|
27
|
+
connection:
|
28
|
+
- close
|
29
|
+
status:
|
30
|
+
- 302 Found
|
31
|
+
x-ratelimit-limit:
|
32
|
+
- '5000'
|
33
|
+
x-ratelimit-remaining:
|
34
|
+
- '4944'
|
35
|
+
x-ratelimit-reset:
|
36
|
+
- '1397230923'
|
37
|
+
location:
|
38
|
+
- https://api.github.com/organizations/199945/public_members/rossta
|
39
|
+
x-xss-protection:
|
40
|
+
- 1; mode=block
|
41
|
+
x-frame-options:
|
42
|
+
- deny
|
43
|
+
content-security-policy:
|
44
|
+
- default-src 'none'
|
45
|
+
content-length:
|
46
|
+
- '0'
|
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
|
+
x-github-request-id:
|
55
|
+
- 324A188A:013F:2A3454:534801E0
|
56
|
+
strict-transport-security:
|
57
|
+
- max-age=31536000
|
58
|
+
x-content-type-options:
|
59
|
+
- nosniff
|
60
|
+
vary:
|
61
|
+
- Accept-Encoding
|
62
|
+
x-served-by:
|
63
|
+
- 132026e9262a0093e437f99db5f1e499
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: ''
|
67
|
+
http_version: '1.1'
|
68
|
+
recorded_at: Fri, 11 Apr 2014 14:53:31 GMT
|
69
|
+
- request:
|
70
|
+
method: get
|
71
|
+
uri: https://api.github.com/organizations/199945/public_members/rossta?client_id=65c6c34afdfc113d4698&client_secret=59c44f344f9c45b4f15b03935bb2cc0501d40e46
|
72
|
+
body:
|
73
|
+
encoding: US-ASCII
|
74
|
+
string: ''
|
75
|
+
headers:
|
76
|
+
accept:
|
77
|
+
- application/vnd.github.beta+json
|
78
|
+
user-agent:
|
79
|
+
- Octokit Ruby Gem 2.3.1
|
80
|
+
accept-encoding:
|
81
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 204
|
85
|
+
message: No Content
|
86
|
+
headers:
|
87
|
+
server:
|
88
|
+
- GitHub.com
|
89
|
+
date:
|
90
|
+
- Fri, 11 Apr 2014 14:53:21 GMT
|
91
|
+
connection:
|
92
|
+
- close
|
93
|
+
status:
|
94
|
+
- 204 No Content
|
95
|
+
x-ratelimit-limit:
|
96
|
+
- '5000'
|
97
|
+
x-ratelimit-remaining:
|
98
|
+
- '4943'
|
99
|
+
x-ratelimit-reset:
|
100
|
+
- '1397230923'
|
101
|
+
x-github-media-type:
|
102
|
+
- github.beta; format=json
|
103
|
+
x-xss-protection:
|
104
|
+
- 1; mode=block
|
105
|
+
x-frame-options:
|
106
|
+
- deny
|
107
|
+
content-security-policy:
|
108
|
+
- default-src 'none'
|
109
|
+
access-control-allow-credentials:
|
110
|
+
- 'true'
|
111
|
+
access-control-expose-headers:
|
112
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
113
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
114
|
+
access-control-allow-origin:
|
115
|
+
- '*'
|
116
|
+
x-github-request-id:
|
117
|
+
- 324A188A:013E:1C0AC0:534801E1
|
118
|
+
strict-transport-security:
|
119
|
+
- max-age=31536000
|
120
|
+
x-content-type-options:
|
121
|
+
- nosniff
|
122
|
+
vary:
|
123
|
+
- Accept-Encoding
|
124
|
+
x-served-by:
|
125
|
+
- 03d91026ad8428f4d9966d7434f9d82e
|
126
|
+
body:
|
127
|
+
encoding: US-ASCII
|
128
|
+
string: ''
|
129
|
+
http_version: '1.1'
|
130
|
+
recorded_at: Fri, 11 Apr 2014 14:53:31 GMT
|
131
|
+
- request:
|
132
|
+
method: get
|
133
|
+
uri: https://api.github.com/users/rossta?client_id=65c6c34afdfc113d4698&client_secret=59c44f344f9c45b4f15b03935bb2cc0501d40e46
|
134
|
+
body:
|
135
|
+
encoding: US-ASCII
|
136
|
+
string: ''
|
137
|
+
headers:
|
138
|
+
accept:
|
139
|
+
- application/vnd.github.beta+json
|
140
|
+
user-agent:
|
141
|
+
- Octokit Ruby Gem 2.3.1
|
142
|
+
accept-encoding:
|
143
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
144
|
+
response:
|
145
|
+
status:
|
146
|
+
code: 200
|
147
|
+
message: OK
|
148
|
+
headers:
|
149
|
+
server:
|
150
|
+
- GitHub.com
|
151
|
+
date:
|
152
|
+
- Fri, 11 Apr 2014 14:53:21 GMT
|
153
|
+
content-type:
|
154
|
+
- application/json; charset=utf-8
|
155
|
+
transfer-encoding:
|
156
|
+
- chunked
|
157
|
+
connection:
|
158
|
+
- close
|
159
|
+
status:
|
160
|
+
- 200 OK
|
161
|
+
x-ratelimit-limit:
|
162
|
+
- '5000'
|
163
|
+
x-ratelimit-remaining:
|
164
|
+
- '4942'
|
165
|
+
x-ratelimit-reset:
|
166
|
+
- '1397230923'
|
167
|
+
cache-control:
|
168
|
+
- public, max-age=60, s-maxage=60
|
169
|
+
last-modified:
|
170
|
+
- Thu, 10 Apr 2014 22:40:18 GMT
|
171
|
+
etag:
|
172
|
+
- '"f8ff49c31bbe1a197e2fbbbb86ad5eda"'
|
173
|
+
vary:
|
174
|
+
- Accept
|
175
|
+
- Accept-Encoding
|
176
|
+
x-github-media-type:
|
177
|
+
- github.beta; format=json
|
178
|
+
x-xss-protection:
|
179
|
+
- 1; mode=block
|
180
|
+
x-frame-options:
|
181
|
+
- deny
|
182
|
+
content-security-policy:
|
183
|
+
- default-src 'none'
|
184
|
+
access-control-allow-credentials:
|
185
|
+
- 'true'
|
186
|
+
access-control-expose-headers:
|
187
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
188
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
189
|
+
access-control-allow-origin:
|
190
|
+
- '*'
|
191
|
+
x-github-request-id:
|
192
|
+
- 324A188A:0141:43F453:534801E1
|
193
|
+
strict-transport-security:
|
194
|
+
- max-age=31536000
|
195
|
+
x-content-type-options:
|
196
|
+
- nosniff
|
197
|
+
x-served-by:
|
198
|
+
- c046d59f93ede9ab52d5ac29f1ed70f7
|
199
|
+
content-encoding:
|
200
|
+
- gzip
|
201
|
+
body:
|
202
|
+
encoding: UTF-8
|
203
|
+
string: '{"login":"rossta","id":11673,"avatar_url":"https://avatars.githubusercontent.com/u/11673?","gravatar_id":"b0169a78f851962058d63337ad0147d6","url":"https://api.github.com/users/rossta","html_url":"https://github.com/rossta","followers_url":"https://api.github.com/users/rossta/followers","following_url":"https://api.github.com/users/rossta/following{/other_user}","gists_url":"https://api.github.com/users/rossta/gists{/gist_id}","starred_url":"https://api.github.com/users/rossta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossta/subscriptions","organizations_url":"https://api.github.com/users/rossta/orgs","repos_url":"https://api.github.com/users/rossta/repos","events_url":"https://api.github.com/users/rossta/events{/privacy}","received_events_url":"https://api.github.com/users/rossta/received_events","type":"User","site_admin":false,"name":"Ross
|
204
|
+
Kaffenberger","company":"http://challengepost.com","blog":"http://rosskaff.com","location":"New
|
205
|
+
York City","email":"rosskaff@gmail.com","hireable":false,"bio":null,"public_repos":62,"public_gists":27,"followers":20,"following":23,"created_at":"2008-05-27T18:27:16Z","updated_at":"2014-04-10T22:40:18Z"}'
|
206
|
+
http_version: '1.1'
|
207
|
+
recorded_at: Fri, 11 Apr 2014 14:53:31 GMT
|
208
|
+
recorded_with: VCR 2.9.0
|
metadata
CHANGED
@@ -1,159 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opensesame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ross Kaffenberger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: omniauth-github
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: octokit
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
47
|
+
version: '2.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday-http-cache
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
44
62
|
type: :runtime
|
45
63
|
prerelease: false
|
46
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
47
69
|
- !ruby/object:Gem::Dependency
|
48
70
|
name: warden
|
49
|
-
requirement:
|
50
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
51
72
|
requirements:
|
52
73
|
- - ! '>='
|
53
74
|
- !ruby/object:Gem::Version
|
54
75
|
version: '0'
|
55
76
|
type: :runtime
|
56
77
|
prerelease: false
|
57
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
58
83
|
- !ruby/object:Gem::Dependency
|
59
84
|
name: sqlite3
|
60
|
-
requirement:
|
61
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
62
86
|
requirements:
|
63
87
|
- - ! '>='
|
64
88
|
- !ruby/object:Gem::Version
|
65
89
|
version: '0'
|
66
90
|
type: :development
|
67
91
|
prerelease: false
|
68
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rspec-rails
|
71
|
-
requirement:
|
72
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
73
100
|
requirements:
|
74
101
|
- - ~>
|
75
102
|
- !ruby/object:Gem::Version
|
76
|
-
version: 2.
|
103
|
+
version: 2.14.0
|
77
104
|
type: :development
|
78
105
|
prerelease: false
|
79
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.14.0
|
80
111
|
- !ruby/object:Gem::Dependency
|
81
112
|
name: capybara
|
82
|
-
requirement:
|
83
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
84
114
|
requirements:
|
85
115
|
- - ! '>='
|
86
116
|
- !ruby/object:Gem::Version
|
87
117
|
version: '0'
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: launchy
|
93
|
-
requirement: &70144238108020 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
121
|
requirements:
|
96
122
|
- - ! '>='
|
97
123
|
- !ruby/object:Gem::Version
|
98
124
|
version: '0'
|
99
|
-
type: :development
|
100
|
-
prerelease: false
|
101
|
-
version_requirements: *70144238108020
|
102
125
|
- !ruby/object:Gem::Dependency
|
103
|
-
name:
|
104
|
-
requirement:
|
105
|
-
none: false
|
126
|
+
name: nokogiri
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
106
128
|
requirements:
|
107
129
|
- - ! '>='
|
108
130
|
- !ruby/object:Gem::Version
|
109
131
|
version: '0'
|
110
132
|
type: :development
|
111
133
|
prerelease: false
|
112
|
-
version_requirements:
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: pry-nav
|
115
|
-
requirement: &70144238106220 !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
135
|
requirements:
|
118
136
|
- - ! '>='
|
119
137
|
- !ruby/object:Gem::Version
|
120
138
|
version: '0'
|
121
|
-
type: :development
|
122
|
-
prerelease: false
|
123
|
-
version_requirements: *70144238106220
|
124
139
|
- !ruby/object:Gem::Dependency
|
125
140
|
name: vcr
|
126
|
-
requirement:
|
127
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
|
-
- -
|
143
|
+
- - ~>
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
145
|
+
version: 2.9.0
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.9.0
|
135
153
|
- !ruby/object:Gem::Dependency
|
136
154
|
name: fakeweb
|
137
|
-
requirement:
|
138
|
-
none: false
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
139
156
|
requirements:
|
140
157
|
- - ! '>='
|
141
158
|
- !ruby/object:Gem::Version
|
142
159
|
version: '0'
|
143
160
|
type: :development
|
144
161
|
prerelease: false
|
145
|
-
version_requirements:
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
146
167
|
- !ruby/object:Gem::Dependency
|
147
168
|
name: guard-rspec
|
148
|
-
requirement:
|
149
|
-
none: false
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
150
170
|
requirements:
|
151
171
|
- - ! '>='
|
152
172
|
- !ruby/object:Gem::Version
|
153
173
|
version: '0'
|
154
174
|
type: :development
|
155
175
|
prerelease: false
|
156
|
-
version_requirements:
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
157
181
|
description: Rails engine for authenticating internal applications and private-access
|
158
182
|
products
|
159
183
|
email:
|
@@ -173,6 +197,7 @@ files:
|
|
173
197
|
- app/views/open_sesame/sessions/new.html.erb
|
174
198
|
- config/routes.rb
|
175
199
|
- lib/open_sesame/configuration.rb
|
200
|
+
- lib/open_sesame/devise.rb
|
176
201
|
- lib/open_sesame/engine.rb
|
177
202
|
- lib/open_sesame/failure/app.rb
|
178
203
|
- lib/open_sesame/failure/devise_app.rb
|
@@ -193,6 +218,7 @@ files:
|
|
193
218
|
- spec/dummy/app/controllers/application_controller.rb
|
194
219
|
- spec/dummy/app/controllers/home_controller.rb
|
195
220
|
- spec/dummy/app/helpers/application_helper.rb
|
221
|
+
- spec/dummy/app/models/user.rb
|
196
222
|
- spec/dummy/app/views/home/index.html.erb
|
197
223
|
- spec/dummy/app/views/layouts/application.html.erb
|
198
224
|
- spec/dummy/config/application.rb
|
@@ -203,16 +229,19 @@ files:
|
|
203
229
|
- spec/dummy/config/environments/production.rb
|
204
230
|
- spec/dummy/config/environments/test.rb
|
205
231
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
232
|
+
- spec/dummy/config/initializers/devise.rb
|
206
233
|
- spec/dummy/config/initializers/inflections.rb
|
207
234
|
- spec/dummy/config/initializers/mime_types.rb
|
208
235
|
- spec/dummy/config/initializers/opensesame.rb
|
209
236
|
- spec/dummy/config/initializers/secret_token.rb
|
210
237
|
- spec/dummy/config/initializers/session_store.rb
|
211
238
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
239
|
+
- spec/dummy/config/locales/devise.en.yml
|
212
240
|
- spec/dummy/config/locales/en.yml
|
213
241
|
- spec/dummy/config/routes.rb
|
214
242
|
- spec/dummy/config.ru
|
215
243
|
- spec/dummy/db/development.sqlite3
|
244
|
+
- spec/dummy/db/migrate/20140410210424_devise_create_users.rb
|
216
245
|
- spec/dummy/db/schema.rb
|
217
246
|
- spec/dummy/db/test.sqlite3
|
218
247
|
- spec/dummy/log/development.log
|
@@ -226,19 +255,30 @@ files:
|
|
226
255
|
- spec/dummy/script/rails
|
227
256
|
- spec/dummy/tmp/cache/assets/C09/2F0/sprockets%2F76045b33d436a11b0156b36a91560651
|
228
257
|
- spec/dummy/tmp/cache/assets/C54/300/sprockets%2Fb83307a70e6040f817087f997dc73122
|
258
|
+
- spec/dummy/tmp/cache/assets/C72/560/sprockets%2F454956b6f70061da46ea7e27111c1008
|
259
|
+
- spec/dummy/tmp/cache/assets/C96/3A0/sprockets%2F97c9391b36c4982d0c9fc0807276627f
|
260
|
+
- spec/dummy/tmp/cache/assets/CA9/460/sprockets%2F948e48dc820b40d8161dd1460b2064b9
|
229
261
|
- spec/dummy/tmp/cache/assets/CAA/920/sprockets%2Ff2904820584f0723f5ab256dcf1a9225
|
262
|
+
- spec/dummy/tmp/cache/assets/CB9/D50/sprockets%2F2945a991966bdb26e54c2d48a63d6225
|
230
263
|
- spec/dummy/tmp/cache/assets/CC2/790/sprockets%2F020f956f67983c52c9889ac9801ca4b4
|
231
264
|
- spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
232
265
|
- spec/dummy/tmp/cache/assets/CEC/240/sprockets%2Fdec29f626939d38247d1745e057c6ab2
|
266
|
+
- spec/dummy/tmp/cache/assets/CFC/F00/sprockets%2F031f4282e0b852bc633f0bad24e56c63
|
267
|
+
- spec/dummy/tmp/cache/assets/D08/BA0/sprockets%2F796774ff7a0a9a7f394dd67d369c8693
|
233
268
|
- spec/dummy/tmp/cache/assets/D0C/2A0/sprockets%2F04922c120a656b333dd5fcd28c9f8f53
|
234
269
|
- spec/dummy/tmp/cache/assets/D12/EF0/sprockets%2F98d5a511dcf32074eef97c372f294a20
|
235
270
|
- spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
236
271
|
- spec/dummy/tmp/cache/assets/D38/DB0/sprockets%2Fe4441bec5b04f6a4ad4bf7056181558e
|
237
272
|
- spec/dummy/tmp/cache/assets/D45/CE0/sprockets%2F6c1b76a50b27d5e7485d41cef59eb427
|
273
|
+
- spec/dummy/tmp/cache/assets/D4C/C80/sprockets%2F3555b9b1ef17e63f54c7f2a819a2ce88
|
238
274
|
- spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
239
275
|
- spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
240
276
|
- spec/dummy/tmp/cache/assets/D60/400/sprockets%2F1f456ac6c7c736a4407ead0832adb42c
|
277
|
+
- spec/dummy/tmp/cache/assets/D60/A00/sprockets%2F47747aad6a9bcc1d57003331c30e6cfd
|
278
|
+
- spec/dummy/tmp/cache/assets/D61/6B0/sprockets%2Faa0ef972a2d713f5b0096ead0e9a0681
|
279
|
+
- spec/dummy/tmp/cache/assets/D6D/F40/sprockets%2F071c809d0cdd0bbad45a1b9f8d718858
|
241
280
|
- spec/dummy/tmp/cache/assets/D72/880/sprockets%2Fe5615e8c12de3dbb5626aee43388cb39
|
281
|
+
- spec/dummy/tmp/cache/assets/D9D/E40/sprockets%2F81ceef9ff2401a52fa3d5777afa0348b
|
242
282
|
- spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
243
283
|
- spec/dummy/tmp/cache/assets/DDD/910/sprockets%2Ff8ed9a8d47ac232db51e9c7adb8377a9
|
244
284
|
- spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
@@ -291,43 +331,42 @@ files:
|
|
291
331
|
- spec/support/capybara.rb
|
292
332
|
- spec/support/request_helpers.rb
|
293
333
|
- spec/support/vcr.rb
|
294
|
-
- spec/vcr/member/retrieves_attributes_from_github.yml
|
295
|
-
- spec/vcr/member/returns_nil_if_no_github_member_found.yml
|
296
|
-
- spec/vcr/member/serialize_from_session_returns_member_from_given_member_id.yml
|
297
|
-
- spec/vcr/member/serialize_into_session_returns_given_member_id_in_array.yml
|
298
|
-
- spec/vcr/session/allows_auto_login.yml
|
299
|
-
- spec/vcr/session/enforces_opensesame_login.yml
|
300
|
-
- spec/vcr/session/skips_auto_login_if_just_logged_out.yml
|
301
|
-
- spec/vcr/
|
334
|
+
- spec/vcr/1.9/member/retrieves_attributes_from_github.yml
|
335
|
+
- spec/vcr/1.9/member/returns_nil_if_no_github_member_found.yml
|
336
|
+
- spec/vcr/1.9/member/serialize_from_session_returns_member_from_given_member_id.yml
|
337
|
+
- spec/vcr/1.9/member/serialize_into_session_returns_given_member_id_in_array.yml
|
338
|
+
- spec/vcr/1.9/session/allows_auto_login.yml
|
339
|
+
- spec/vcr/1.9/session/enforces_opensesame_login.yml
|
340
|
+
- spec/vcr/1.9/session/skips_auto_login_if_just_logged_out.yml
|
341
|
+
- spec/vcr/2.0/member/retrieves_attributes_from_github.yml
|
342
|
+
- spec/vcr/2.0/member/returns_nil_if_no_github_member_found.yml
|
343
|
+
- spec/vcr/2.0/member/serialize_from_session_returns_member_from_given_member_id.yml
|
344
|
+
- spec/vcr/2.0/member/serialize_into_session_returns_given_member_id_in_array.yml
|
345
|
+
- spec/vcr/2.0/session/allows_auto_login.yml
|
346
|
+
- spec/vcr/2.0/session/enforces_opensesame_login.yml
|
347
|
+
- spec/vcr/2.0/session/skips_auto_login_if_just_logged_out.yml
|
302
348
|
homepage: https://github.com/rossta/opensesame
|
303
349
|
licenses: []
|
350
|
+
metadata: {}
|
304
351
|
post_install_message:
|
305
352
|
rdoc_options: []
|
306
353
|
require_paths:
|
307
354
|
- lib
|
308
355
|
required_ruby_version: !ruby/object:Gem::Requirement
|
309
|
-
none: false
|
310
356
|
requirements:
|
311
357
|
- - ! '>='
|
312
358
|
- !ruby/object:Gem::Version
|
313
359
|
version: '0'
|
314
|
-
segments:
|
315
|
-
- 0
|
316
|
-
hash: -2191668992877539222
|
317
360
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
|
-
none: false
|
319
361
|
requirements:
|
320
362
|
- - ! '>='
|
321
363
|
- !ruby/object:Gem::Version
|
322
364
|
version: '0'
|
323
|
-
segments:
|
324
|
-
- 0
|
325
|
-
hash: -2191668992877539222
|
326
365
|
requirements: []
|
327
366
|
rubyforge_project:
|
328
|
-
rubygems_version: 1.
|
367
|
+
rubygems_version: 2.1.11
|
329
368
|
signing_key:
|
330
|
-
specification_version:
|
369
|
+
specification_version: 4
|
331
370
|
summary: Rails engine for authenticating internal applications and private-access
|
332
371
|
products
|
333
372
|
test_files:
|
@@ -336,6 +375,7 @@ test_files:
|
|
336
375
|
- spec/dummy/app/controllers/application_controller.rb
|
337
376
|
- spec/dummy/app/controllers/home_controller.rb
|
338
377
|
- spec/dummy/app/helpers/application_helper.rb
|
378
|
+
- spec/dummy/app/models/user.rb
|
339
379
|
- spec/dummy/app/views/home/index.html.erb
|
340
380
|
- spec/dummy/app/views/layouts/application.html.erb
|
341
381
|
- spec/dummy/config/application.rb
|
@@ -346,16 +386,19 @@ test_files:
|
|
346
386
|
- spec/dummy/config/environments/production.rb
|
347
387
|
- spec/dummy/config/environments/test.rb
|
348
388
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
389
|
+
- spec/dummy/config/initializers/devise.rb
|
349
390
|
- spec/dummy/config/initializers/inflections.rb
|
350
391
|
- spec/dummy/config/initializers/mime_types.rb
|
351
392
|
- spec/dummy/config/initializers/opensesame.rb
|
352
393
|
- spec/dummy/config/initializers/secret_token.rb
|
353
394
|
- spec/dummy/config/initializers/session_store.rb
|
354
395
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
396
|
+
- spec/dummy/config/locales/devise.en.yml
|
355
397
|
- spec/dummy/config/locales/en.yml
|
356
398
|
- spec/dummy/config/routes.rb
|
357
399
|
- spec/dummy/config.ru
|
358
400
|
- spec/dummy/db/development.sqlite3
|
401
|
+
- spec/dummy/db/migrate/20140410210424_devise_create_users.rb
|
359
402
|
- spec/dummy/db/schema.rb
|
360
403
|
- spec/dummy/db/test.sqlite3
|
361
404
|
- spec/dummy/log/development.log
|
@@ -369,19 +412,30 @@ test_files:
|
|
369
412
|
- spec/dummy/script/rails
|
370
413
|
- spec/dummy/tmp/cache/assets/C09/2F0/sprockets%2F76045b33d436a11b0156b36a91560651
|
371
414
|
- spec/dummy/tmp/cache/assets/C54/300/sprockets%2Fb83307a70e6040f817087f997dc73122
|
415
|
+
- spec/dummy/tmp/cache/assets/C72/560/sprockets%2F454956b6f70061da46ea7e27111c1008
|
416
|
+
- spec/dummy/tmp/cache/assets/C96/3A0/sprockets%2F97c9391b36c4982d0c9fc0807276627f
|
417
|
+
- spec/dummy/tmp/cache/assets/CA9/460/sprockets%2F948e48dc820b40d8161dd1460b2064b9
|
372
418
|
- spec/dummy/tmp/cache/assets/CAA/920/sprockets%2Ff2904820584f0723f5ab256dcf1a9225
|
419
|
+
- spec/dummy/tmp/cache/assets/CB9/D50/sprockets%2F2945a991966bdb26e54c2d48a63d6225
|
373
420
|
- spec/dummy/tmp/cache/assets/CC2/790/sprockets%2F020f956f67983c52c9889ac9801ca4b4
|
374
421
|
- spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
375
422
|
- spec/dummy/tmp/cache/assets/CEC/240/sprockets%2Fdec29f626939d38247d1745e057c6ab2
|
423
|
+
- spec/dummy/tmp/cache/assets/CFC/F00/sprockets%2F031f4282e0b852bc633f0bad24e56c63
|
424
|
+
- spec/dummy/tmp/cache/assets/D08/BA0/sprockets%2F796774ff7a0a9a7f394dd67d369c8693
|
376
425
|
- spec/dummy/tmp/cache/assets/D0C/2A0/sprockets%2F04922c120a656b333dd5fcd28c9f8f53
|
377
426
|
- spec/dummy/tmp/cache/assets/D12/EF0/sprockets%2F98d5a511dcf32074eef97c372f294a20
|
378
427
|
- spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
379
428
|
- spec/dummy/tmp/cache/assets/D38/DB0/sprockets%2Fe4441bec5b04f6a4ad4bf7056181558e
|
380
429
|
- spec/dummy/tmp/cache/assets/D45/CE0/sprockets%2F6c1b76a50b27d5e7485d41cef59eb427
|
430
|
+
- spec/dummy/tmp/cache/assets/D4C/C80/sprockets%2F3555b9b1ef17e63f54c7f2a819a2ce88
|
381
431
|
- spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
382
432
|
- spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
383
433
|
- spec/dummy/tmp/cache/assets/D60/400/sprockets%2F1f456ac6c7c736a4407ead0832adb42c
|
434
|
+
- spec/dummy/tmp/cache/assets/D60/A00/sprockets%2F47747aad6a9bcc1d57003331c30e6cfd
|
435
|
+
- spec/dummy/tmp/cache/assets/D61/6B0/sprockets%2Faa0ef972a2d713f5b0096ead0e9a0681
|
436
|
+
- spec/dummy/tmp/cache/assets/D6D/F40/sprockets%2F071c809d0cdd0bbad45a1b9f8d718858
|
384
437
|
- spec/dummy/tmp/cache/assets/D72/880/sprockets%2Fe5615e8c12de3dbb5626aee43388cb39
|
438
|
+
- spec/dummy/tmp/cache/assets/D9D/E40/sprockets%2F81ceef9ff2401a52fa3d5777afa0348b
|
385
439
|
- spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
386
440
|
- spec/dummy/tmp/cache/assets/DDD/910/sprockets%2Ff8ed9a8d47ac232db51e9c7adb8377a9
|
387
441
|
- spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
@@ -434,11 +488,17 @@ test_files:
|
|
434
488
|
- spec/support/capybara.rb
|
435
489
|
- spec/support/request_helpers.rb
|
436
490
|
- spec/support/vcr.rb
|
437
|
-
- spec/vcr/member/retrieves_attributes_from_github.yml
|
438
|
-
- spec/vcr/member/returns_nil_if_no_github_member_found.yml
|
439
|
-
- spec/vcr/member/serialize_from_session_returns_member_from_given_member_id.yml
|
440
|
-
- spec/vcr/member/serialize_into_session_returns_given_member_id_in_array.yml
|
441
|
-
- spec/vcr/session/allows_auto_login.yml
|
442
|
-
- spec/vcr/session/enforces_opensesame_login.yml
|
443
|
-
- spec/vcr/session/skips_auto_login_if_just_logged_out.yml
|
444
|
-
- spec/vcr/
|
491
|
+
- spec/vcr/1.9/member/retrieves_attributes_from_github.yml
|
492
|
+
- spec/vcr/1.9/member/returns_nil_if_no_github_member_found.yml
|
493
|
+
- spec/vcr/1.9/member/serialize_from_session_returns_member_from_given_member_id.yml
|
494
|
+
- spec/vcr/1.9/member/serialize_into_session_returns_given_member_id_in_array.yml
|
495
|
+
- spec/vcr/1.9/session/allows_auto_login.yml
|
496
|
+
- spec/vcr/1.9/session/enforces_opensesame_login.yml
|
497
|
+
- spec/vcr/1.9/session/skips_auto_login_if_just_logged_out.yml
|
498
|
+
- spec/vcr/2.0/member/retrieves_attributes_from_github.yml
|
499
|
+
- spec/vcr/2.0/member/returns_nil_if_no_github_member_found.yml
|
500
|
+
- spec/vcr/2.0/member/serialize_from_session_returns_member_from_given_member_id.yml
|
501
|
+
- spec/vcr/2.0/member/serialize_into_session_returns_given_member_id_in_array.yml
|
502
|
+
- spec/vcr/2.0/session/allows_auto_login.yml
|
503
|
+
- spec/vcr/2.0/session/enforces_opensesame_login.yml
|
504
|
+
- spec/vcr/2.0/session/skips_auto_login_if_just_logged_out.yml
|