devise-multi-radius-authenticatable 0.1.1

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.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +3 -0
  6. data/MIT-LICENSE +21 -0
  7. data/README.md +85 -0
  8. data/Rakefile +16 -0
  9. data/devise-multi-radius-authenticatable.gemspec +32 -0
  10. data/lib/devise-radius-authenticatable.rb +8 -0
  11. data/lib/devise/models/radius_authenticatable.rb +187 -0
  12. data/lib/devise/radius_authenticatable.rb +45 -0
  13. data/lib/devise/radius_authenticatable/test_helpers.rb +126 -0
  14. data/lib/devise/radius_authenticatable/version.rb +5 -0
  15. data/lib/devise/strategies/radius_authenticatable.rb +30 -0
  16. data/lib/generators/devise_radius_authenticatable/install_generator.rb +93 -0
  17. data/spec/devise/models/radius_authenticatable_spec.rb +170 -0
  18. data/spec/factories/admins.rb +10 -0
  19. data/spec/fixtures/devise.rb +238 -0
  20. data/spec/generators/install_generator_spec.rb +66 -0
  21. data/spec/integration/radius_authenticatable_spec.rb +115 -0
  22. data/spec/rails_app/.gitignore +15 -0
  23. data/spec/rails_app/Gemfile +4 -0
  24. data/spec/rails_app/Rakefile +7 -0
  25. data/spec/rails_app/app/assets/images/rails.png +0 -0
  26. data/spec/rails_app/app/assets/javascripts/application.js +13 -0
  27. data/spec/rails_app/app/assets/stylesheets/application.css +13 -0
  28. data/spec/rails_app/app/controllers/admins_controller.rb +83 -0
  29. data/spec/rails_app/app/controllers/application_controller.rb +11 -0
  30. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  31. data/spec/rails_app/app/mailers/.gitkeep +0 -0
  32. data/spec/rails_app/app/models/.gitkeep +0 -0
  33. data/spec/rails_app/app/models/admin.rb +11 -0
  34. data/spec/rails_app/app/views/admins/_form.html.erb +17 -0
  35. data/spec/rails_app/app/views/admins/edit.html.erb +6 -0
  36. data/spec/rails_app/app/views/admins/index.html.erb +21 -0
  37. data/spec/rails_app/app/views/admins/new.html.erb +5 -0
  38. data/spec/rails_app/app/views/admins/show.html.erb +5 -0
  39. data/spec/rails_app/app/views/devise/confirmations/new.html.erb +12 -0
  40. data/spec/rails_app/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  41. data/spec/rails_app/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  42. data/spec/rails_app/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  43. data/spec/rails_app/app/views/devise/passwords/edit.html.erb +16 -0
  44. data/spec/rails_app/app/views/devise/passwords/new.html.erb +12 -0
  45. data/spec/rails_app/app/views/devise/registrations/edit.html.erb +29 -0
  46. data/spec/rails_app/app/views/devise/registrations/new.html.erb +18 -0
  47. data/spec/rails_app/app/views/devise/sessions/new.html.erb +17 -0
  48. data/spec/rails_app/app/views/devise/shared/_links.erb +25 -0
  49. data/spec/rails_app/app/views/devise/unlocks/new.html.erb +12 -0
  50. data/spec/rails_app/app/views/layouts/application.html.erb +25 -0
  51. data/spec/rails_app/bin/bundle +3 -0
  52. data/spec/rails_app/bin/rails +4 -0
  53. data/spec/rails_app/bin/rake +4 -0
  54. data/spec/rails_app/config.ru +4 -0
  55. data/spec/rails_app/config/application.rb +23 -0
  56. data/spec/rails_app/config/boot.rb +4 -0
  57. data/spec/rails_app/config/database.yml +25 -0
  58. data/spec/rails_app/config/environment.rb +5 -0
  59. data/spec/rails_app/config/environments/development.rb +29 -0
  60. data/spec/rails_app/config/environments/production.rb +80 -0
  61. data/spec/rails_app/config/environments/test.rb +36 -0
  62. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  63. data/spec/rails_app/config/initializers/devise.rb +308 -0
  64. data/spec/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  65. data/spec/rails_app/config/initializers/inflections.rb +16 -0
  66. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  67. data/spec/rails_app/config/initializers/secret_token.rb +12 -0
  68. data/spec/rails_app/config/initializers/session_store.rb +3 -0
  69. data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
  70. data/spec/rails_app/config/locales/devise.en.yml +59 -0
  71. data/spec/rails_app/config/locales/en.yml +23 -0
  72. data/spec/rails_app/config/routes.rb +63 -0
  73. data/spec/rails_app/db/migrate/20120627042556_devise_create_admins.rb +48 -0
  74. data/spec/rails_app/db/schema.rb +37 -0
  75. data/spec/rails_app/db/seeds.rb +7 -0
  76. data/spec/rails_app/lib/assets/.gitkeep +0 -0
  77. data/spec/rails_app/lib/tasks/.gitkeep +0 -0
  78. data/spec/rails_app/public/404.html +26 -0
  79. data/spec/rails_app/public/422.html +26 -0
  80. data/spec/rails_app/public/500.html +25 -0
  81. data/spec/rails_app/public/favicon.ico +0 -0
  82. data/spec/rails_app/public/robots.txt +5 -0
  83. data/spec/rails_app/script/rails +6 -0
  84. data/spec/spec_helper.rb +28 -0
  85. data/spec/support/devise_helpers.rb +18 -0
  86. data/spec/support/generator_helpers.rb +16 -0
  87. metadata +359 -0
@@ -0,0 +1,16 @@
1
+ module GeneratorHelpers
2
+ DESTINATION_PATH = File.expand_path("../../../tmp", __FILE__)
3
+ FIXTURES_PATH = File.expand_path("../../fixtures", __FILE__)
4
+
5
+ def prepare_devise
6
+ initializers_path = File.join(DESTINATION_PATH, 'config/initializers')
7
+ FileUtils.mkpath(initializers_path)
8
+ FileUtils.cp(File.join(FIXTURES_PATH, 'devise.rb'), initializers_path)
9
+ end
10
+ end
11
+
12
+ RSpec::configure do |c|
13
+ c.include GeneratorHelpers, :type => :generator, :example_group => {
14
+ :file_path => /spec[\\\/]generators/
15
+ }
16
+ end
metadata ADDED
@@ -0,0 +1,359 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devise-multi-radius-authenticatable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Michael Zaccari
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: devise
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: radiustar
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.0.8
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.8
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 10.2.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 10.2.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.14'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.14'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.14'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.14'
111
+ - !ruby/object:Gem::Dependency
112
+ name: factory_girl
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.4'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: capybara
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.2.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.2.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: launchy
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: ammeter
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.2'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.2'
167
+ description: A new authentication strategy named radius_authenticatable is added to
168
+ the list of warden strategies when the model requests it. The radius server information
169
+ is configured through the devise initializer. One or more servers may be configured. When
170
+ a user attempts to authenticate via radius, the radiustar gem is used to perform
171
+ the authentication with each server until a response is received. This authentication
172
+ strategy can be used in place of the database_authenticatable or alongside it depending
173
+ on the needs of the application.
174
+ email: michael.zaccari@gmail.com
175
+ executables: []
176
+ extensions: []
177
+ extra_rdoc_files: []
178
+ files:
179
+ - ".gitignore"
180
+ - ".rspec"
181
+ - ".travis.yml"
182
+ - Gemfile
183
+ - MIT-LICENSE
184
+ - README.md
185
+ - Rakefile
186
+ - devise-multi-radius-authenticatable.gemspec
187
+ - lib/devise-radius-authenticatable.rb
188
+ - lib/devise/models/radius_authenticatable.rb
189
+ - lib/devise/radius_authenticatable.rb
190
+ - lib/devise/radius_authenticatable/test_helpers.rb
191
+ - lib/devise/radius_authenticatable/version.rb
192
+ - lib/devise/strategies/radius_authenticatable.rb
193
+ - lib/generators/devise_radius_authenticatable/install_generator.rb
194
+ - spec/devise/models/radius_authenticatable_spec.rb
195
+ - spec/factories/admins.rb
196
+ - spec/fixtures/devise.rb
197
+ - spec/generators/install_generator_spec.rb
198
+ - spec/integration/radius_authenticatable_spec.rb
199
+ - spec/rails_app/.gitignore
200
+ - spec/rails_app/Gemfile
201
+ - spec/rails_app/Rakefile
202
+ - spec/rails_app/app/assets/images/rails.png
203
+ - spec/rails_app/app/assets/javascripts/application.js
204
+ - spec/rails_app/app/assets/stylesheets/application.css
205
+ - spec/rails_app/app/controllers/admins_controller.rb
206
+ - spec/rails_app/app/controllers/application_controller.rb
207
+ - spec/rails_app/app/helpers/application_helper.rb
208
+ - spec/rails_app/app/mailers/.gitkeep
209
+ - spec/rails_app/app/models/.gitkeep
210
+ - spec/rails_app/app/models/admin.rb
211
+ - spec/rails_app/app/views/admins/_form.html.erb
212
+ - spec/rails_app/app/views/admins/edit.html.erb
213
+ - spec/rails_app/app/views/admins/index.html.erb
214
+ - spec/rails_app/app/views/admins/new.html.erb
215
+ - spec/rails_app/app/views/admins/show.html.erb
216
+ - spec/rails_app/app/views/devise/confirmations/new.html.erb
217
+ - spec/rails_app/app/views/devise/mailer/confirmation_instructions.html.erb
218
+ - spec/rails_app/app/views/devise/mailer/reset_password_instructions.html.erb
219
+ - spec/rails_app/app/views/devise/mailer/unlock_instructions.html.erb
220
+ - spec/rails_app/app/views/devise/passwords/edit.html.erb
221
+ - spec/rails_app/app/views/devise/passwords/new.html.erb
222
+ - spec/rails_app/app/views/devise/registrations/edit.html.erb
223
+ - spec/rails_app/app/views/devise/registrations/new.html.erb
224
+ - spec/rails_app/app/views/devise/sessions/new.html.erb
225
+ - spec/rails_app/app/views/devise/shared/_links.erb
226
+ - spec/rails_app/app/views/devise/unlocks/new.html.erb
227
+ - spec/rails_app/app/views/layouts/application.html.erb
228
+ - spec/rails_app/bin/bundle
229
+ - spec/rails_app/bin/rails
230
+ - spec/rails_app/bin/rake
231
+ - spec/rails_app/config.ru
232
+ - spec/rails_app/config/application.rb
233
+ - spec/rails_app/config/boot.rb
234
+ - spec/rails_app/config/database.yml
235
+ - spec/rails_app/config/environment.rb
236
+ - spec/rails_app/config/environments/development.rb
237
+ - spec/rails_app/config/environments/production.rb
238
+ - spec/rails_app/config/environments/test.rb
239
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
240
+ - spec/rails_app/config/initializers/devise.rb
241
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
242
+ - spec/rails_app/config/initializers/inflections.rb
243
+ - spec/rails_app/config/initializers/mime_types.rb
244
+ - spec/rails_app/config/initializers/secret_token.rb
245
+ - spec/rails_app/config/initializers/session_store.rb
246
+ - spec/rails_app/config/initializers/wrap_parameters.rb
247
+ - spec/rails_app/config/locales/devise.en.yml
248
+ - spec/rails_app/config/locales/en.yml
249
+ - spec/rails_app/config/routes.rb
250
+ - spec/rails_app/db/migrate/20120627042556_devise_create_admins.rb
251
+ - spec/rails_app/db/schema.rb
252
+ - spec/rails_app/db/seeds.rb
253
+ - spec/rails_app/lib/assets/.gitkeep
254
+ - spec/rails_app/lib/tasks/.gitkeep
255
+ - spec/rails_app/public/404.html
256
+ - spec/rails_app/public/422.html
257
+ - spec/rails_app/public/500.html
258
+ - spec/rails_app/public/favicon.ico
259
+ - spec/rails_app/public/robots.txt
260
+ - spec/rails_app/script/rails
261
+ - spec/spec_helper.rb
262
+ - spec/support/devise_helpers.rb
263
+ - spec/support/generator_helpers.rb
264
+ homepage: http://github.com/mzaccari/devise-radius-authenticatable
265
+ licenses:
266
+ - MIT
267
+ metadata: {}
268
+ post_install_message:
269
+ rdoc_options: []
270
+ require_paths:
271
+ - lib
272
+ required_ruby_version: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - ">="
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
277
+ required_rubygems_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ requirements: []
283
+ rubyforge_project:
284
+ rubygems_version: 2.4.5.1
285
+ signing_key:
286
+ specification_version: 4
287
+ summary: Devise extension to allow authentication via one or more RADIUS servers
288
+ test_files:
289
+ - spec/devise/models/radius_authenticatable_spec.rb
290
+ - spec/factories/admins.rb
291
+ - spec/fixtures/devise.rb
292
+ - spec/generators/install_generator_spec.rb
293
+ - spec/integration/radius_authenticatable_spec.rb
294
+ - spec/rails_app/.gitignore
295
+ - spec/rails_app/Gemfile
296
+ - spec/rails_app/Rakefile
297
+ - spec/rails_app/app/assets/images/rails.png
298
+ - spec/rails_app/app/assets/javascripts/application.js
299
+ - spec/rails_app/app/assets/stylesheets/application.css
300
+ - spec/rails_app/app/controllers/admins_controller.rb
301
+ - spec/rails_app/app/controllers/application_controller.rb
302
+ - spec/rails_app/app/helpers/application_helper.rb
303
+ - spec/rails_app/app/mailers/.gitkeep
304
+ - spec/rails_app/app/models/.gitkeep
305
+ - spec/rails_app/app/models/admin.rb
306
+ - spec/rails_app/app/views/admins/_form.html.erb
307
+ - spec/rails_app/app/views/admins/edit.html.erb
308
+ - spec/rails_app/app/views/admins/index.html.erb
309
+ - spec/rails_app/app/views/admins/new.html.erb
310
+ - spec/rails_app/app/views/admins/show.html.erb
311
+ - spec/rails_app/app/views/devise/confirmations/new.html.erb
312
+ - spec/rails_app/app/views/devise/mailer/confirmation_instructions.html.erb
313
+ - spec/rails_app/app/views/devise/mailer/reset_password_instructions.html.erb
314
+ - spec/rails_app/app/views/devise/mailer/unlock_instructions.html.erb
315
+ - spec/rails_app/app/views/devise/passwords/edit.html.erb
316
+ - spec/rails_app/app/views/devise/passwords/new.html.erb
317
+ - spec/rails_app/app/views/devise/registrations/edit.html.erb
318
+ - spec/rails_app/app/views/devise/registrations/new.html.erb
319
+ - spec/rails_app/app/views/devise/sessions/new.html.erb
320
+ - spec/rails_app/app/views/devise/shared/_links.erb
321
+ - spec/rails_app/app/views/devise/unlocks/new.html.erb
322
+ - spec/rails_app/app/views/layouts/application.html.erb
323
+ - spec/rails_app/bin/bundle
324
+ - spec/rails_app/bin/rails
325
+ - spec/rails_app/bin/rake
326
+ - spec/rails_app/config.ru
327
+ - spec/rails_app/config/application.rb
328
+ - spec/rails_app/config/boot.rb
329
+ - spec/rails_app/config/database.yml
330
+ - spec/rails_app/config/environment.rb
331
+ - spec/rails_app/config/environments/development.rb
332
+ - spec/rails_app/config/environments/production.rb
333
+ - spec/rails_app/config/environments/test.rb
334
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
335
+ - spec/rails_app/config/initializers/devise.rb
336
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
337
+ - spec/rails_app/config/initializers/inflections.rb
338
+ - spec/rails_app/config/initializers/mime_types.rb
339
+ - spec/rails_app/config/initializers/secret_token.rb
340
+ - spec/rails_app/config/initializers/session_store.rb
341
+ - spec/rails_app/config/initializers/wrap_parameters.rb
342
+ - spec/rails_app/config/locales/devise.en.yml
343
+ - spec/rails_app/config/locales/en.yml
344
+ - spec/rails_app/config/routes.rb
345
+ - spec/rails_app/db/migrate/20120627042556_devise_create_admins.rb
346
+ - spec/rails_app/db/schema.rb
347
+ - spec/rails_app/db/seeds.rb
348
+ - spec/rails_app/lib/assets/.gitkeep
349
+ - spec/rails_app/lib/tasks/.gitkeep
350
+ - spec/rails_app/public/404.html
351
+ - spec/rails_app/public/422.html
352
+ - spec/rails_app/public/500.html
353
+ - spec/rails_app/public/favicon.ico
354
+ - spec/rails_app/public/robots.txt
355
+ - spec/rails_app/script/rails
356
+ - spec/spec_helper.rb
357
+ - spec/support/devise_helpers.rb
358
+ - spec/support/generator_helpers.rb
359
+ has_rdoc: