devise_bushido_authenticatable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -20
- data/Gemfile.lock +151 -74
- data/README.md +4 -2
- data/Rakefile +1 -46
- data/app/controllers/devise/cas_sessions_controller.rb +59 -10
- data/app/views/devise/cas_sessions/unregistered.html.erb +150 -2
- data/app/views/devise/cas_sessions/unregistered.html.erb.old +2 -0
- data/devise_bushido_authenticatable.gemspec +28 -95
- data/lib/devise_bushido_authenticatable/version.rb +3 -0
- data/lib/devise_cas_authenticatable.rb +45 -3
- data/lib/devise_cas_authenticatable/missing_session_helpers.rb +9 -0
- data/lib/devise_cas_authenticatable/model.rb +5 -6
- data/lib/devise_cas_authenticatable/routes.rb +5 -3
- data/lib/devise_cas_authenticatable/single_sign_out.rb +22 -0
- data/lib/devise_cas_authenticatable/single_sign_out/session_store/active_record.rb +12 -0
- data/lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb +27 -0
- data/lib/devise_cas_authenticatable/single_sign_out/strategies.rb +58 -0
- data/lib/devise_cas_authenticatable/single_sign_out/strategies/base.rb +11 -0
- data/lib/devise_cas_authenticatable/single_sign_out/strategies/rails_cache.rb +31 -0
- data/lib/devise_cas_authenticatable/strategy.rb +15 -11
- data/spec/devise_cas_authenticatable/model_spec.rb +39 -0
- data/spec/routes_spec.rb +25 -7
- data/spec/scenario/app/models/user.rb +2 -2
- data/spec/scenario/config/environments/development.rb +0 -1
- data/spec/scenario/config/initializers/castronaut.rb +1 -0
- data/spec/scenario/config/initializers/session_store.rb +2 -2
- data/spec/scenario/db/migrate/20100401102949_create_tables.rb +3 -2
- data/spec/scenario/db/migrate/20111002012903_add_sessions_table.rb +16 -0
- data/spec/scenario/db/schema.rb +25 -0
- data/spec/spec_helper.rb +3 -2
- data/spec/strategy_spec.rb +20 -29
- metadata +118 -27
- data/VERSION +0 -1
- data/devise_cas_authenticatable.gemspec +0 -118
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: devise_bushido_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Akash Manohar J
|
@@ -12,8 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date:
|
16
|
-
default_executable:
|
15
|
+
date: 2012-02-13 00:00:00 Z
|
17
16
|
dependencies:
|
18
17
|
- !ruby/object:Gem::Dependency
|
19
18
|
name: devise
|
@@ -22,23 +21,23 @@ dependencies:
|
|
22
21
|
requirements:
|
23
22
|
- - ">="
|
24
23
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
24
|
+
version: 1.0.6
|
26
25
|
type: :runtime
|
27
26
|
prerelease: false
|
28
27
|
version_requirements: *id001
|
29
28
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
29
|
+
name: rubycas-client
|
31
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
32
31
|
none: false
|
33
32
|
requirements:
|
34
|
-
- - "
|
33
|
+
- - ">="
|
35
34
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
37
|
-
type: :
|
35
|
+
version: 2.2.1
|
36
|
+
type: :runtime
|
38
37
|
prerelease: false
|
39
38
|
version_requirements: *id002
|
40
39
|
- !ruby/object:Gem::Dependency
|
41
|
-
name:
|
40
|
+
name: rspec
|
42
41
|
requirement: &id003 !ruby/object:Gem::Requirement
|
43
42
|
none: false
|
44
43
|
requirements:
|
@@ -49,7 +48,7 @@ dependencies:
|
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: *id003
|
51
50
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
51
|
+
name: mocha
|
53
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
54
53
|
none: false
|
55
54
|
requirements:
|
@@ -60,7 +59,7 @@ dependencies:
|
|
60
59
|
prerelease: false
|
61
60
|
version_requirements: *id004
|
62
61
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
62
|
+
name: shoulda
|
64
63
|
requirement: &id005 !ruby/object:Gem::Requirement
|
65
64
|
none: false
|
66
65
|
requirements:
|
@@ -71,55 +70,110 @@ dependencies:
|
|
71
70
|
prerelease: false
|
72
71
|
version_requirements: *id005
|
73
72
|
- !ruby/object:Gem::Dependency
|
74
|
-
name:
|
73
|
+
name: sqlite3-ruby
|
75
74
|
requirement: &id006 !ruby/object:Gem::Requirement
|
76
75
|
none: false
|
77
76
|
requirements:
|
78
77
|
- - ">="
|
79
78
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
81
|
-
type: :
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
82
81
|
prerelease: false
|
83
82
|
version_requirements: *id006
|
84
83
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
84
|
+
name: sham_rack
|
86
85
|
requirement: &id007 !ruby/object:Gem::Requirement
|
87
86
|
none: false
|
88
87
|
requirements:
|
89
88
|
- - ">="
|
90
89
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
92
|
-
type: :
|
90
|
+
version: "0"
|
91
|
+
type: :development
|
93
92
|
prerelease: false
|
94
93
|
version_requirements: *id007
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: capybara
|
96
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "0"
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: *id008
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: crypt-isaac
|
107
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: "0"
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: *id009
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: launchy
|
118
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: *id010
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: pry
|
129
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: "0"
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: *id011
|
95
138
|
description: Bushido SSO authentication module for Devise. A slight variant of the excellent work from Nat Budlin on devise_cas_authenticatable.
|
96
139
|
email: s@bushi.do
|
97
140
|
executables: []
|
98
141
|
|
99
142
|
extensions: []
|
100
143
|
|
101
|
-
extra_rdoc_files:
|
102
|
-
|
144
|
+
extra_rdoc_files: []
|
145
|
+
|
103
146
|
files:
|
147
|
+
- .gitignore
|
104
148
|
- .project
|
149
|
+
- .rspec
|
150
|
+
- .travis.yml
|
105
151
|
- Gemfile
|
106
152
|
- Gemfile.lock
|
107
153
|
- README.md
|
108
154
|
- Rakefile
|
109
|
-
- VERSION
|
110
155
|
- app/controllers/devise/cas_sessions_controller.rb
|
111
156
|
- app/views/devise/cas_sessions/new.html.erb
|
112
157
|
- app/views/devise/cas_sessions/unregistered.html.erb
|
158
|
+
- app/views/devise/cas_sessions/unregistered.html.erb.old
|
113
159
|
- devise_bushido_authenticatable.gemspec
|
114
|
-
- devise_cas_authenticatable.gemspec
|
115
160
|
- lib/devise_bushido_authenticatable.rb
|
161
|
+
- lib/devise_bushido_authenticatable/version.rb
|
116
162
|
- lib/devise_cas_authenticatable.rb
|
117
163
|
- lib/devise_cas_authenticatable/exceptions.rb
|
164
|
+
- lib/devise_cas_authenticatable/missing_session_helpers.rb
|
118
165
|
- lib/devise_cas_authenticatable/model.rb
|
119
166
|
- lib/devise_cas_authenticatable/routes.rb
|
120
167
|
- lib/devise_cas_authenticatable/schema.rb
|
168
|
+
- lib/devise_cas_authenticatable/single_sign_out.rb
|
169
|
+
- lib/devise_cas_authenticatable/single_sign_out/session_store/active_record.rb
|
170
|
+
- lib/devise_cas_authenticatable/single_sign_out/session_store/redis.rb
|
171
|
+
- lib/devise_cas_authenticatable/single_sign_out/strategies.rb
|
172
|
+
- lib/devise_cas_authenticatable/single_sign_out/strategies/base.rb
|
173
|
+
- lib/devise_cas_authenticatable/single_sign_out/strategies/rails_cache.rb
|
121
174
|
- lib/devise_cas_authenticatable/strategy.rb
|
122
175
|
- rails/init.rb
|
176
|
+
- spec/devise_cas_authenticatable/model_spec.rb
|
123
177
|
- spec/routes_spec.rb
|
124
178
|
- spec/scenario/.gitignore
|
125
179
|
- spec/scenario/app/controllers/application_controller.rb
|
@@ -136,6 +190,7 @@ files:
|
|
136
190
|
- spec/scenario/config/environments/production.rb
|
137
191
|
- spec/scenario/config/environments/test.rb
|
138
192
|
- spec/scenario/config/initializers/backtrace_silencers.rb
|
193
|
+
- spec/scenario/config/initializers/castronaut.rb
|
139
194
|
- spec/scenario/config/initializers/devise.rb
|
140
195
|
- spec/scenario/config/initializers/inflections.rb
|
141
196
|
- spec/scenario/config/initializers/mime_types.rb
|
@@ -145,11 +200,12 @@ files:
|
|
145
200
|
- spec/scenario/config/routes.rb
|
146
201
|
- spec/scenario/config/rubycas-server.yml
|
147
202
|
- spec/scenario/db/migrate/20100401102949_create_tables.rb
|
203
|
+
- spec/scenario/db/migrate/20111002012903_add_sessions_table.rb
|
204
|
+
- spec/scenario/db/schema.rb
|
148
205
|
- spec/scenario/public/.gitkeep
|
149
206
|
- spec/spec_helper.rb
|
150
207
|
- spec/strategy_spec.rb
|
151
208
|
- spec/support/migrations.rb
|
152
|
-
has_rdoc: true
|
153
209
|
homepage: http://github.com/bushido/bushido_cas_authenticatable
|
154
210
|
licenses: []
|
155
211
|
|
@@ -163,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
219
|
requirements:
|
164
220
|
- - ">="
|
165
221
|
- !ruby/object:Gem::Version
|
166
|
-
hash:
|
222
|
+
hash: -346763631352534379
|
167
223
|
segments:
|
168
224
|
- 0
|
169
225
|
version: "0"
|
@@ -172,13 +228,48 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
228
|
requirements:
|
173
229
|
- - ">="
|
174
230
|
- !ruby/object:Gem::Version
|
231
|
+
hash: -346763631352534379
|
232
|
+
segments:
|
233
|
+
- 0
|
175
234
|
version: "0"
|
176
235
|
requirements: []
|
177
236
|
|
178
|
-
rubyforge_project:
|
179
|
-
rubygems_version: 1.
|
237
|
+
rubyforge_project: devise_bushido_authenticatable
|
238
|
+
rubygems_version: 1.8.15
|
180
239
|
signing_key:
|
181
240
|
specification_version: 3
|
182
241
|
summary: Bushido SSO authentication module for Devise
|
183
|
-
test_files:
|
184
|
-
|
242
|
+
test_files:
|
243
|
+
- spec/devise_cas_authenticatable/model_spec.rb
|
244
|
+
- spec/routes_spec.rb
|
245
|
+
- spec/scenario/.gitignore
|
246
|
+
- spec/scenario/app/controllers/application_controller.rb
|
247
|
+
- spec/scenario/app/controllers/home_controller.rb
|
248
|
+
- spec/scenario/app/models/user.rb
|
249
|
+
- spec/scenario/app/views/layouts/application.html.erb
|
250
|
+
- spec/scenario/config.ru
|
251
|
+
- spec/scenario/config/application.rb
|
252
|
+
- spec/scenario/config/boot.rb
|
253
|
+
- spec/scenario/config/castronaut.yml
|
254
|
+
- spec/scenario/config/database.yml
|
255
|
+
- spec/scenario/config/environment.rb
|
256
|
+
- spec/scenario/config/environments/development.rb
|
257
|
+
- spec/scenario/config/environments/production.rb
|
258
|
+
- spec/scenario/config/environments/test.rb
|
259
|
+
- spec/scenario/config/initializers/backtrace_silencers.rb
|
260
|
+
- spec/scenario/config/initializers/castronaut.rb
|
261
|
+
- spec/scenario/config/initializers/devise.rb
|
262
|
+
- spec/scenario/config/initializers/inflections.rb
|
263
|
+
- spec/scenario/config/initializers/mime_types.rb
|
264
|
+
- spec/scenario/config/initializers/secret_token.rb
|
265
|
+
- spec/scenario/config/initializers/session_store.rb
|
266
|
+
- spec/scenario/config/locales/en.yml
|
267
|
+
- spec/scenario/config/routes.rb
|
268
|
+
- spec/scenario/config/rubycas-server.yml
|
269
|
+
- spec/scenario/db/migrate/20100401102949_create_tables.rb
|
270
|
+
- spec/scenario/db/migrate/20111002012903_add_sessions_table.rb
|
271
|
+
- spec/scenario/db/schema.rb
|
272
|
+
- spec/scenario/public/.gitkeep
|
273
|
+
- spec/spec_helper.rb
|
274
|
+
- spec/strategy_spec.rb
|
275
|
+
- spec/support/migrations.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.0
|
@@ -1,118 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{devise_cas_authenticatable}
|
8
|
-
s.version = "1.0.0.alpha10"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Nat Budin"]
|
12
|
-
s.date = %q{2011-06-08}
|
13
|
-
s.description = %q{CAS authentication module for Devise}
|
14
|
-
s.email = %q{natbudin@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.md"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".project",
|
20
|
-
"Gemfile",
|
21
|
-
"Gemfile.lock",
|
22
|
-
"README.md",
|
23
|
-
"Rakefile",
|
24
|
-
"VERSION",
|
25
|
-
"app/controllers/devise/cas_sessions_controller.rb",
|
26
|
-
"app/views/devise/cas_sessions/new.html.erb",
|
27
|
-
"app/views/devise/cas_sessions/unregistered.html.erb",
|
28
|
-
"devise_cas_authenticatable.gemspec",
|
29
|
-
"lib/devise_cas_authenticatable.rb",
|
30
|
-
"lib/devise_cas_authenticatable/exceptions.rb",
|
31
|
-
"lib/devise_cas_authenticatable/model.rb",
|
32
|
-
"lib/devise_cas_authenticatable/routes.rb",
|
33
|
-
"lib/devise_cas_authenticatable/schema.rb",
|
34
|
-
"lib/devise_cas_authenticatable/strategy.rb",
|
35
|
-
"rails/init.rb",
|
36
|
-
"spec/routes_spec.rb",
|
37
|
-
"spec/scenario/.gitignore",
|
38
|
-
"spec/scenario/app/controllers/application_controller.rb",
|
39
|
-
"spec/scenario/app/controllers/home_controller.rb",
|
40
|
-
"spec/scenario/app/models/user.rb",
|
41
|
-
"spec/scenario/app/views/layouts/application.html.erb",
|
42
|
-
"spec/scenario/config.ru",
|
43
|
-
"spec/scenario/config/application.rb",
|
44
|
-
"spec/scenario/config/boot.rb",
|
45
|
-
"spec/scenario/config/castronaut.yml",
|
46
|
-
"spec/scenario/config/database.yml",
|
47
|
-
"spec/scenario/config/environment.rb",
|
48
|
-
"spec/scenario/config/environments/development.rb",
|
49
|
-
"spec/scenario/config/environments/production.rb",
|
50
|
-
"spec/scenario/config/environments/test.rb",
|
51
|
-
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
52
|
-
"spec/scenario/config/initializers/devise.rb",
|
53
|
-
"spec/scenario/config/initializers/inflections.rb",
|
54
|
-
"spec/scenario/config/initializers/mime_types.rb",
|
55
|
-
"spec/scenario/config/initializers/secret_token.rb",
|
56
|
-
"spec/scenario/config/initializers/session_store.rb",
|
57
|
-
"spec/scenario/config/locales/en.yml",
|
58
|
-
"spec/scenario/config/routes.rb",
|
59
|
-
"spec/scenario/config/rubycas-server.yml",
|
60
|
-
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
61
|
-
"spec/scenario/public/.gitkeep",
|
62
|
-
"spec/spec_helper.rb",
|
63
|
-
"spec/strategy_spec.rb",
|
64
|
-
"spec/support/migrations.rb"
|
65
|
-
]
|
66
|
-
s.homepage = %q{http://github.com/nbudin/devise_cas_authenticatable}
|
67
|
-
s.require_paths = ["lib"]
|
68
|
-
s.rubygems_version = %q{1.5.0}
|
69
|
-
s.summary = %q{CAS authentication module for Devise}
|
70
|
-
s.test_files = [
|
71
|
-
"spec/routes_spec.rb",
|
72
|
-
"spec/scenario/app/controllers/application_controller.rb",
|
73
|
-
"spec/scenario/app/controllers/home_controller.rb",
|
74
|
-
"spec/scenario/app/models/user.rb",
|
75
|
-
"spec/scenario/config/application.rb",
|
76
|
-
"spec/scenario/config/boot.rb",
|
77
|
-
"spec/scenario/config/environment.rb",
|
78
|
-
"spec/scenario/config/environments/development.rb",
|
79
|
-
"spec/scenario/config/environments/production.rb",
|
80
|
-
"spec/scenario/config/environments/test.rb",
|
81
|
-
"spec/scenario/config/initializers/backtrace_silencers.rb",
|
82
|
-
"spec/scenario/config/initializers/devise.rb",
|
83
|
-
"spec/scenario/config/initializers/inflections.rb",
|
84
|
-
"spec/scenario/config/initializers/mime_types.rb",
|
85
|
-
"spec/scenario/config/initializers/secret_token.rb",
|
86
|
-
"spec/scenario/config/initializers/session_store.rb",
|
87
|
-
"spec/scenario/config/routes.rb",
|
88
|
-
"spec/scenario/db/migrate/20100401102949_create_tables.rb",
|
89
|
-
"spec/spec_helper.rb",
|
90
|
-
"spec/strategy_spec.rb",
|
91
|
-
"spec/support/migrations.rb"
|
92
|
-
]
|
93
|
-
|
94
|
-
if s.respond_to? :specification_version then
|
95
|
-
s.specification_version = 3
|
96
|
-
|
97
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
98
|
-
s.add_runtime_dependency(%q<devise>, [">= 0"])
|
99
|
-
s.add_development_dependency(%q<ruby-debug>, [">= 0"])
|
100
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
101
|
-
s.add_runtime_dependency(%q<devise>, [">= 1.0.6"])
|
102
|
-
s.add_runtime_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
103
|
-
else
|
104
|
-
s.add_dependency(%q<devise>, [">= 0"])
|
105
|
-
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
106
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
107
|
-
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
108
|
-
s.add_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
109
|
-
end
|
110
|
-
else
|
111
|
-
s.add_dependency(%q<devise>, [">= 0"])
|
112
|
-
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
113
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
114
|
-
s.add_dependency(%q<devise>, [">= 1.0.6"])
|
115
|
-
s.add_dependency(%q<rubycas-client>, [">= 2.2.1"])
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|