cloudfoundry-devise 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. data/.gitignore +12 -0
  2. data/.travis.yml +13 -0
  3. data/CHANGELOG.rdoc +755 -0
  4. data/Gemfile +35 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.rdoc +366 -0
  7. data/Rakefile +34 -0
  8. data/app/controllers/devise/confirmations_controller.rb +46 -0
  9. data/app/controllers/devise/omniauth_callbacks_controller.rb +26 -0
  10. data/app/controllers/devise/passwords_controller.rb +50 -0
  11. data/app/controllers/devise/registrations_controller.rb +114 -0
  12. data/app/controllers/devise/sessions_controller.rb +49 -0
  13. data/app/controllers/devise/unlocks_controller.rb +34 -0
  14. data/app/helpers/devise_helper.rb +25 -0
  15. data/app/mailers/devise/mailer.rb +15 -0
  16. data/app/views/devise/confirmations/new.html.erb +12 -0
  17. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  18. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  19. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  20. data/app/views/devise/passwords/edit.html.erb +16 -0
  21. data/app/views/devise/passwords/new.html.erb +12 -0
  22. data/app/views/devise/registrations/edit.html.erb +25 -0
  23. data/app/views/devise/registrations/new.html.erb +18 -0
  24. data/app/views/devise/sessions/new.html.erb +17 -0
  25. data/app/views/devise/shared/_links.erb +25 -0
  26. data/app/views/devise/unlocks/new.html.erb +12 -0
  27. data/cloudfoundry-devise.gemspec +25 -0
  28. data/config/locales/en.yml +59 -0
  29. data/lib/devise.rb +453 -0
  30. data/lib/devise/controllers/helpers.rb +260 -0
  31. data/lib/devise/controllers/internal_helpers.rb +161 -0
  32. data/lib/devise/controllers/rememberable.rb +52 -0
  33. data/lib/devise/controllers/scoped_views.rb +33 -0
  34. data/lib/devise/controllers/shared_helpers.rb +26 -0
  35. data/lib/devise/controllers/url_helpers.rb +53 -0
  36. data/lib/devise/delegator.rb +16 -0
  37. data/lib/devise/encryptors/authlogic_sha512.rb +19 -0
  38. data/lib/devise/encryptors/base.rb +20 -0
  39. data/lib/devise/encryptors/clearance_sha1.rb +17 -0
  40. data/lib/devise/encryptors/restful_authentication_sha1.rb +22 -0
  41. data/lib/devise/encryptors/sha1.rb +25 -0
  42. data/lib/devise/encryptors/sha512.rb +25 -0
  43. data/lib/devise/failure_app.rb +149 -0
  44. data/lib/devise/hooks/activatable.rb +11 -0
  45. data/lib/devise/hooks/forgetable.rb +9 -0
  46. data/lib/devise/hooks/rememberable.rb +6 -0
  47. data/lib/devise/hooks/timeoutable.rb +24 -0
  48. data/lib/devise/hooks/trackable.rb +9 -0
  49. data/lib/devise/mailers/helpers.rb +86 -0
  50. data/lib/devise/mapping.rb +175 -0
  51. data/lib/devise/models.rb +91 -0
  52. data/lib/devise/models/authenticatable.rb +181 -0
  53. data/lib/devise/models/confirmable.rb +220 -0
  54. data/lib/devise/models/database_authenticatable.rb +122 -0
  55. data/lib/devise/models/encryptable.rb +72 -0
  56. data/lib/devise/models/lockable.rb +169 -0
  57. data/lib/devise/models/omniauthable.rb +23 -0
  58. data/lib/devise/models/recoverable.rb +136 -0
  59. data/lib/devise/models/registerable.rb +21 -0
  60. data/lib/devise/models/rememberable.rb +114 -0
  61. data/lib/devise/models/serializable.rb +43 -0
  62. data/lib/devise/models/timeoutable.rb +45 -0
  63. data/lib/devise/models/token_authenticatable.rb +72 -0
  64. data/lib/devise/models/trackable.rb +30 -0
  65. data/lib/devise/models/validatable.rb +62 -0
  66. data/lib/devise/modules.rb +30 -0
  67. data/lib/devise/omniauth.rb +28 -0
  68. data/lib/devise/omniauth/config.rb +45 -0
  69. data/lib/devise/omniauth/url_helpers.rb +33 -0
  70. data/lib/devise/orm/active_record.rb +44 -0
  71. data/lib/devise/orm/mongoid.rb +31 -0
  72. data/lib/devise/param_filter.rb +41 -0
  73. data/lib/devise/path_checker.rb +18 -0
  74. data/lib/devise/rails.rb +73 -0
  75. data/lib/devise/rails/routes.rb +385 -0
  76. data/lib/devise/rails/warden_compat.rb +120 -0
  77. data/lib/devise/schema.rb +109 -0
  78. data/lib/devise/strategies/authenticatable.rb +155 -0
  79. data/lib/devise/strategies/base.rb +15 -0
  80. data/lib/devise/strategies/database_authenticatable.rb +21 -0
  81. data/lib/devise/strategies/rememberable.rb +53 -0
  82. data/lib/devise/strategies/token_authenticatable.rb +57 -0
  83. data/lib/devise/test_helpers.rb +90 -0
  84. data/lib/devise/version.rb +3 -0
  85. data/lib/generators/active_record/devise_generator.rb +71 -0
  86. data/lib/generators/active_record/templates/migration.rb +29 -0
  87. data/lib/generators/active_record/templates/migration_existing.rb +26 -0
  88. data/lib/generators/devise/devise_generator.rb +22 -0
  89. data/lib/generators/devise/install_generator.rb +24 -0
  90. data/lib/generators/devise/orm_helpers.rb +31 -0
  91. data/lib/generators/devise/views_generator.rb +98 -0
  92. data/lib/generators/mongoid/devise_generator.rb +60 -0
  93. data/lib/generators/templates/README +32 -0
  94. data/lib/generators/templates/devise.rb +215 -0
  95. data/lib/generators/templates/markerb/confirmation_instructions.markerb +5 -0
  96. data/lib/generators/templates/markerb/reset_password_instructions.markerb +8 -0
  97. data/lib/generators/templates/markerb/unlock_instructions.markerb +7 -0
  98. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +15 -0
  99. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +19 -0
  100. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +15 -0
  101. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +22 -0
  102. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +17 -0
  103. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +15 -0
  104. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +15 -0
  105. data/test/controllers/helpers_test.rb +254 -0
  106. data/test/controllers/internal_helpers_test.rb +96 -0
  107. data/test/controllers/sessions_controller_test.rb +16 -0
  108. data/test/controllers/url_helpers_test.rb +59 -0
  109. data/test/delegator_test.rb +19 -0
  110. data/test/devise_test.rb +72 -0
  111. data/test/encryptors_test.rb +30 -0
  112. data/test/failure_app_test.rb +207 -0
  113. data/test/generators/active_record_generator_test.rb +47 -0
  114. data/test/generators/devise_generator_test.rb +39 -0
  115. data/test/generators/install_generator_test.rb +13 -0
  116. data/test/generators/mongoid_generator_test.rb +23 -0
  117. data/test/generators/views_generator_test.rb +52 -0
  118. data/test/helpers/devise_helper_test.rb +51 -0
  119. data/test/indifferent_hash.rb +33 -0
  120. data/test/integration/authenticatable_test.rb +590 -0
  121. data/test/integration/confirmable_test.rb +262 -0
  122. data/test/integration/database_authenticatable_test.rb +82 -0
  123. data/test/integration/http_authenticatable_test.rb +82 -0
  124. data/test/integration/lockable_test.rb +212 -0
  125. data/test/integration/omniauthable_test.rb +133 -0
  126. data/test/integration/recoverable_test.rb +287 -0
  127. data/test/integration/registerable_test.rb +335 -0
  128. data/test/integration/rememberable_test.rb +158 -0
  129. data/test/integration/timeoutable_test.rb +98 -0
  130. data/test/integration/token_authenticatable_test.rb +148 -0
  131. data/test/integration/trackable_test.rb +92 -0
  132. data/test/mailers/confirmation_instructions_test.rb +95 -0
  133. data/test/mailers/reset_password_instructions_test.rb +83 -0
  134. data/test/mailers/unlock_instructions_test.rb +77 -0
  135. data/test/mapping_test.rb +128 -0
  136. data/test/models/confirmable_test.rb +334 -0
  137. data/test/models/database_authenticatable_test.rb +167 -0
  138. data/test/models/encryptable_test.rb +67 -0
  139. data/test/models/lockable_test.rb +225 -0
  140. data/test/models/recoverable_test.rb +198 -0
  141. data/test/models/rememberable_test.rb +168 -0
  142. data/test/models/serializable_test.rb +38 -0
  143. data/test/models/timeoutable_test.rb +42 -0
  144. data/test/models/token_authenticatable_test.rb +49 -0
  145. data/test/models/trackable_test.rb +5 -0
  146. data/test/models/validatable_test.rb +113 -0
  147. data/test/models_test.rb +109 -0
  148. data/test/omniauth/config_test.rb +57 -0
  149. data/test/omniauth/url_helpers_test.rb +58 -0
  150. data/test/orm/active_record.rb +9 -0
  151. data/test/orm/mongoid.rb +14 -0
  152. data/test/rails_app/Rakefile +10 -0
  153. data/test/rails_app/app/active_record/admin.rb +6 -0
  154. data/test/rails_app/app/active_record/shim.rb +2 -0
  155. data/test/rails_app/app/active_record/user.rb +6 -0
  156. data/test/rails_app/app/controllers/admins/sessions_controller.rb +6 -0
  157. data/test/rails_app/app/controllers/admins_controller.rb +6 -0
  158. data/test/rails_app/app/controllers/application_controller.rb +8 -0
  159. data/test/rails_app/app/controllers/home_controller.rb +25 -0
  160. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +2 -0
  161. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +2 -0
  162. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +14 -0
  163. data/test/rails_app/app/controllers/users_controller.rb +23 -0
  164. data/test/rails_app/app/helpers/application_helper.rb +3 -0
  165. data/test/rails_app/app/mailers/users/mailer.rb +3 -0
  166. data/test/rails_app/app/mongoid/admin.rb +24 -0
  167. data/test/rails_app/app/mongoid/shim.rb +24 -0
  168. data/test/rails_app/app/mongoid/user.rb +45 -0
  169. data/test/rails_app/app/views/admins/index.html.erb +1 -0
  170. data/test/rails_app/app/views/admins/sessions/new.html.erb +2 -0
  171. data/test/rails_app/app/views/home/admin_dashboard.html.erb +1 -0
  172. data/test/rails_app/app/views/home/index.html.erb +1 -0
  173. data/test/rails_app/app/views/home/join.html.erb +1 -0
  174. data/test/rails_app/app/views/home/private.html.erb +1 -0
  175. data/test/rails_app/app/views/home/user_dashboard.html.erb +1 -0
  176. data/test/rails_app/app/views/layouts/application.html.erb +24 -0
  177. data/test/rails_app/app/views/users/index.html.erb +1 -0
  178. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +1 -0
  179. data/test/rails_app/app/views/users/sessions/new.html.erb +1 -0
  180. data/test/rails_app/config.ru +4 -0
  181. data/test/rails_app/config/application.rb +41 -0
  182. data/test/rails_app/config/boot.rb +8 -0
  183. data/test/rails_app/config/database.yml +18 -0
  184. data/test/rails_app/config/environment.rb +5 -0
  185. data/test/rails_app/config/environments/development.rb +18 -0
  186. data/test/rails_app/config/environments/production.rb +33 -0
  187. data/test/rails_app/config/environments/test.rb +33 -0
  188. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  189. data/test/rails_app/config/initializers/devise.rb +197 -0
  190. data/test/rails_app/config/initializers/inflections.rb +2 -0
  191. data/test/rails_app/config/initializers/secret_token.rb +2 -0
  192. data/test/rails_app/config/routes.rb +87 -0
  193. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +71 -0
  194. data/test/rails_app/db/schema.rb +52 -0
  195. data/test/rails_app/lib/shared_admin.rb +10 -0
  196. data/test/rails_app/lib/shared_user.rb +26 -0
  197. data/test/rails_app/public/404.html +26 -0
  198. data/test/rails_app/public/422.html +26 -0
  199. data/test/rails_app/public/500.html +26 -0
  200. data/test/rails_app/public/favicon.ico +0 -0
  201. data/test/rails_app/script/rails +10 -0
  202. data/test/routes_test.rb +240 -0
  203. data/test/support/assertions.rb +27 -0
  204. data/test/support/helpers.rb +109 -0
  205. data/test/support/integration.rb +88 -0
  206. data/test/support/locale/en.yml +4 -0
  207. data/test/support/webrat/integrations/rails.rb +24 -0
  208. data/test/test_helper.rb +27 -0
  209. data/test/test_helpers_test.rb +134 -0
  210. metadata +295 -0
@@ -0,0 +1,12 @@
1
+ **/*/log/*
2
+ **/*/tmp/*
3
+ *~
4
+ coverage/*
5
+ *.sqlite3
6
+ .bundle
7
+ rdoc/*
8
+ pkg
9
+ log
10
+ test/tmp/*
11
+ Gemfile.lock
12
+
@@ -0,0 +1,13 @@
1
+ script: "bundle exec rake test"
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - ree
6
+ - rbx
7
+ - rbx-2.0
8
+ notifications:
9
+ recipients:
10
+ - jose.valim@plataformatec.com.br
11
+ - carlos@plataformatec.com.br
12
+ - rodrigo.flores@plataformatec.com.br
13
+ - rafael.franca@plataformatec.com.br
@@ -0,0 +1,755 @@
1
+ == 2.0.0 (unreleased)
2
+
3
+ * enhancements
4
+ * Add support for e-mail reconfirmation on change (by github.com/Mandaryn and github.com/heimidal)
5
+
6
+ * deprecation
7
+ * Devise.apply_schema is deprecated
8
+ * Usage of rememberable with remember_token is deprecated
9
+ * Usage of recoverable without reset_password_sent_at is deprecated
10
+ * Usage of remember_across_browsers is deprecated
11
+
12
+ == 1.5.2
13
+
14
+ * enhancements
15
+ * Add support for Rails 3.1 new mass assignment conventions (by github.com/kirs)
16
+ * Add timeout_in method to Timeoutable, it can be overriden in a model (by github.com/lest)
17
+
18
+ * bug fix
19
+ * OmniAuth error message now shows the proper option (:strategy_class instead of :klass)
20
+
21
+ == 1.5.1
22
+
23
+ * bug fix
24
+ * Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
25
+
26
+ == 1.5.0
27
+
28
+ * enhancements
29
+ * Timeoutable also skips tracking if skip_trackable is given
30
+ * devise_for now accepts :failure_app as an option
31
+ * Models can select the proper mailer via devise_mailer method (by github.com/locomotivecms)
32
+ * Migration generator now uses the change method (by github.com/nashby)
33
+ * Support to markerb templates on the mailer generator (by github.com/sbounmy)
34
+ * Support for Omniauth 1.0 (older versions are no longer supported) (by github.com/TamiasSibiricus)
35
+
36
+ * bug fix
37
+ * Allow idempotent API requests
38
+ * Fix bug where logs did not show 401 as status code
39
+ * Change paranoid settings to behave as success instead of as failure
40
+ * Fix bug where activation messages were shown first than the credentials error message
41
+ * Instance variables are expired after sign out
42
+
43
+ * deprecation
44
+ * redirect_location is deprecated, please use after_sign_in_path_for
45
+ * after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
46
+
47
+ == 1.4.9
48
+
49
+ * bug fix
50
+ * url helpers were not being set under some circumstances
51
+
52
+ == 1.4.8
53
+
54
+ * enhancements
55
+ * Add docs for assets pipeline and Heroku
56
+
57
+ * bug fix
58
+ * confirmation_url was not being set under some circumstances
59
+
60
+ == 1.4.7
61
+
62
+ * bug fix
63
+ * Fix backward incompatible change from 1.4.6 for those using custom controllers
64
+
65
+ == 1.4.6
66
+
67
+ * enhancements
68
+ * Allow devise_for :skip => :all
69
+ * Allow options to be passed to authenticate_user!
70
+ * Allow --skip-routes to devise generator
71
+ * Add allow_params_authentication! to make it explicit when params authentication is allowed in a controller
72
+
73
+ == 1.4.5
74
+
75
+ * bug fix
76
+ * Failure app tries the root path if a session one does not exist
77
+ * No need to finalize Devise helpers all the time (by github.com/bradleypriest)
78
+ * Reset password shows proper message if user is not active
79
+ * `clean_up_passwords` sets the accessors to nil to skip validations
80
+
81
+ == 1.4.4
82
+
83
+ * bug fix
84
+ * Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
85
+
86
+ == 1.4.3
87
+
88
+ * enhancements
89
+ * Improve Rails 3.1 compatibility
90
+ * Use serialize_into_session and serialize_from_session in Warden serialize to improve extensibility
91
+
92
+ * bug fix
93
+ * Generator properly generates a change_table migration if a model already exists
94
+ * Properly deprecate setup_mail
95
+ * Fix encoding issues with email regexp
96
+ * Only generate helpers for the used mappings
97
+ * Wrap :action constraints in the proper hash
98
+
99
+ * deprecations
100
+ * Loosened the used email regexp to simply assert the existent of "@". If someone relies on a more strict regexp, they may use https://github.com/SixArm/sixarm_ruby_email_address_validation
101
+
102
+ == 1.4.2
103
+
104
+ * bug fix
105
+ * Provide a more robust behavior to serializers and add :force_except option
106
+
107
+ == 1.4.1
108
+
109
+ * enhancements
110
+ * Add :defaults and :format support on router
111
+ * Add simple form generators
112
+ * Better localization for devise_error_messages! (by github.com/zedtux)
113
+
114
+ * bug fix
115
+ * Ensure to_xml is properly white listened
116
+ * Ensure handle_unverified_request clean up any cached signed-in user
117
+
118
+ == 1.4.0
119
+
120
+ * enhancements
121
+ * Added authenticated and unauthenticated to the router to route the used based on his status (by github.com/sj26)
122
+ * Improve e-mail regexp (by github.com/rodrigoflores)
123
+ * Add strip_whitespace_keys and default to e-mail (by github.com/swrobel)
124
+ * Do not run format and uniqueness validations on e-mail if it hasn't changed (by github.com/Thibaut)
125
+ * Added update_without_password to update models but not allowing the password to change (by github.com/fschwahn)
126
+ * Added config.paranoid, check the generator for more information (by github.com/rodrigoflores)
127
+
128
+ * bug fix
129
+ * password_required? should not affect length validation
130
+ * User cannot access sign up and similar pages if he is already signed in through a cookie or token
131
+ * Do not convert booleans to strings on finders (by github.com/xavier)
132
+ * Run validations even if current_password fails (by github.com/crx)
133
+ * Devise now honors routes constraints (by github.com/macmartine)
134
+ * Do not return the user resource when requesting instructions (by github.com/rodrigoflores)
135
+
136
+ == 1.3.4
137
+
138
+ * bug fix
139
+ * Do not add formats if html or "*/*"
140
+
141
+ == 1.3.3
142
+
143
+ * bug fix
144
+ * Explicitly mark the token as expired if so
145
+
146
+ == 1.3.2
147
+
148
+ * bug fix
149
+ * Fix another regression related to reset_password_sent_at (by github.com/alexdreher)
150
+
151
+ == 1.3.1
152
+
153
+ * enhancements
154
+ * Improve failure_app responses (by github.com/indirect)
155
+ * sessions/new and registrations/new also respond to xml and json now
156
+
157
+ * bug fix
158
+ * Fix a regression that occurred if reset_password_sent_at is not present (by github.com/stevehodgkiss)
159
+
160
+ == 1.3.0
161
+
162
+ * enhancements
163
+ * All controllers can now handle different mime types than html using Responders (by github.com/sikachu)
164
+ * Added reset_password_within as configuration option to send the token for recovery (by github.com/jdguyot)
165
+ * Bump password length to 128 characters (by github.com/k33l0r)
166
+ * Add :only as option to devise_for (by github.com/timoschilling)
167
+ * Allow to override path after sending password instructions (by github.com/irohiroki)
168
+ * require_no_authentication has its own flash message (by github.com/jackdempsey)
169
+
170
+ * bug fix
171
+ * Fix a bug where configuration options were being included too late
172
+ * Ensure Devise::TestHelpers can be used to tests Devise internal controllers (by github.com/jwilger)
173
+ * valid_password? should not choke on empty passwords (by github.com/mikel)
174
+ * Calling devise more than once does not include previously added modules anymore
175
+ * downcase_keys before validation
176
+
177
+ * backward incompatible changes
178
+ * authentication_keys are no longer considered when creating the e-mail validations, the previous behavior was buggy. You must double check if you were relying on such behavior.
179
+
180
+ == 1.2.1
181
+
182
+ * enhancements
183
+ * Improve update path messages
184
+
185
+ == 1.2.0
186
+
187
+ * bug fix
188
+ * Properly ignore path prefix on omniauthable
189
+ * Faster uniqueness queries
190
+ * Rename active? to active_for_authentication? to avoid conflicts
191
+
192
+ == 1.2.rc2
193
+
194
+ * enhancements
195
+ * Make friendly_token 20 chars long
196
+ * Use secure_compare
197
+
198
+ * bug fix
199
+ * Fix an issue causing infinite redirects in production
200
+ * rails g destroy works properly with devise generators (by github.com/andmej)
201
+ * before_failure callbacks should work on test helpers (by github.com/twinge)
202
+ * rememberable cookie now is httponly by default (by github.com/JamesFerguson)
203
+ * Add missing confirmation_keys (by github.com/JohnPlummer)
204
+ * Ensure after_* hooks are called on RegistrationsController
205
+ * When using database_authenticatable Devise will now only create an email field when appropriate (if using default authentication_keys or custom authentication_keys with email included)
206
+ * Ensure stateless token does not trigger timeout (by github.com/pixelauthority)
207
+ * Implement handle_unverified_request for Rails 3.0.4 compatibility and improve FailureApp reliance on symbols
208
+ * Consider namespaces while generating routes
209
+ * Custom failure apps no longer ignored in test mode (by github.com/jaghion)
210
+ * Do not depend on ActiveModel::Dirty
211
+ * Manual sign_in now triggers remember token
212
+ * Be sure to halt strategies on failures
213
+ * Consider SCRIPT_NAME on Omniauth paths
214
+ * Reset failed attempts when lock is expired
215
+ * Ensure there is no Mongoid injection
216
+
217
+ * deprecations
218
+ * Deprecated anybody_signed_in? in favor of signed_in? (by github.com/gavinhughes)
219
+ * Removed --haml and --slim view templates
220
+ * Devise::OmniAuth helpers were deprecated and removed in favor of Omniauth.config.test_mode
221
+
222
+ == 1.2.rc
223
+
224
+ * deprecations
225
+ * cookie_domain is deprecated in favor of cookie_options
226
+ * after_update_path_for can no longer be defined in ApplicationController
227
+
228
+ * enhancements
229
+ * Added OmniAuth support
230
+ * Added ORM adapter to abstract ORM iteraction
231
+ * sign_out_via is available in the router to configure the method used for sign out (by github.com/martinrehfeld)
232
+ * Improved Ajax requests handling in failure app (by github.com/spastorino)
233
+ * Added request_keys to easily use request specific values (like subdomain) in authentication
234
+ * Increased the size of friendly_token to 60 characters (reduces the chances of a successful brute attack)
235
+ * Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by github.com/rymai)
236
+ * Extracted encryptors into :encryptable for better bcrypt support
237
+ * :rememberable is now able to use salt as token if no remember_token is provided
238
+ * Store the salt in session and expire the session if the user changes his password
239
+ * Allow :stateless_token to be set to true avoiding users to be stored in session through token authentication
240
+ * cookie_options uses session_options values by default
241
+ * Sign up now check if the user is active or not and redirect him accordingly setting the inactive_signed_up message
242
+ * Use ActiveModel#to_key instead of #id
243
+ * sign_out_all_scopes now destroys the whole session
244
+ * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by github.com/adahl)
245
+
246
+ * default behavior changes
247
+ * sign_out_all_scopes defaults to true as security measure
248
+ * http authenticatable is disabled by default
249
+ * Devise does not intercept 401 returned from applications
250
+
251
+ * bugfix
252
+ * after_sign_in_path_for always receives a resource
253
+ * Do not execute Warden::Callbacks on Devise::TestHelpers (by github.com/sgronblo)
254
+ * Allow password recovery and account unlocking to change used keys (by github.com/RStankov)
255
+ * FailureApp now properly handles nil request.format
256
+ * Fix a bug causing FailureApp to return with HTTP Auth Headers for IE7
257
+ * Ensure namespaces has proper scoped views
258
+ * Ensure Devise does not set empty flash messages (by github.com/sxross)
259
+
260
+ == 1.1.6
261
+
262
+ * Use a more secure e-mail regexp
263
+ * Implement Rails 3.0.4 handle unverified request
264
+ * Use secure_compare to compare passwords
265
+
266
+ == 1.1.5
267
+
268
+ * bugfix
269
+ * Ensure to convert keys on indifferent hash
270
+
271
+ * defaults
272
+ * Set config.http_authenticatable to false to avoid confusion
273
+
274
+ == 1.1.4
275
+
276
+ * bugfix
277
+ * Avoid session fixation attacks
278
+
279
+ == 1.1.3
280
+
281
+ * bugfix
282
+ * Add reply-to to e-mail headers by default
283
+ * Updated the views generator to respect the rails :template_engine option (by github.com/fredwu)
284
+ * Check the type of HTTP Authentication before using Basic headers
285
+ * Avoid invalid_salt errors by checking salt presence (by github.com/thibaudgg)
286
+ * Forget user deletes the right cookie before logout, not remembering the user anymore (by github.com/emtrane)
287
+ * Fix for failed first-ever logins on PostgreSQL where column default is nil (by github.com/bensie)
288
+ * :default options is now honored in migrations
289
+
290
+ == 1.1.2
291
+
292
+ * bugfix
293
+ * Compatibility with latest Rails routes schema
294
+
295
+ == 1.1.1
296
+
297
+ * bugfix
298
+ * Fix a small bug where generated locale file was empty on devise:install
299
+
300
+ == 1.1.0
301
+
302
+ * enhancements
303
+ * Rememberable module allows user to be remembered across browsers and is enabled by default (by github.com/trevorturk)
304
+ * Rememberable module allows you to activate the period the remember me token is extended (by github.com/trevorturk)
305
+ * devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
306
+ * Support `as` or `devise_scope` in the router to specify controller access scope
307
+ * HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by github.com/pellja)
308
+
309
+ * bug fix
310
+ * Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts
311
+ * Devise should respect script_name and path_info contracts
312
+ * Fix a bug when accessing a path with (.:format) (by github.com/klacointe)
313
+ * Do not add unlock routes unless unlock strategy is email or both
314
+ * Email should be case insensitive
315
+ * Store classes as string in session, to avoid serialization and stale data issues
316
+
317
+ * deprecations
318
+ * use_default_scope is deprecated and has no effect. Use :as or :devise_scope in the router instead
319
+
320
+ == 1.1.rc2
321
+
322
+ * enhancements
323
+ * Allow to set cookie domain for the remember token. (by github.com/mantas)
324
+ * Added navigational formats to specify when it should return a 302 and when a 401.
325
+ * Added authenticate(scope) support in routes (by github.com/wildchild)
326
+ * Added after_update_path_for to registrations controller (by github.com/thedelchop)
327
+ * Allow the mailer object to be replaced through config.mailer = "MyOwnMailer"
328
+
329
+ * bug fix
330
+ * Fix a bug where session was timing out on sign out
331
+
332
+ * deprecations
333
+ * bcrypt is now the default encryptor
334
+ * devise.mailer.confirmations_instructions now should be devise.mailer.confirmations_instructions.subject
335
+ * devise.mailer.user.confirmations_instructions now should be devise.mailer.confirmations_instructions.user_subject
336
+ * Generators now use Rails 3 syntax (devise:install) instead of devise_install
337
+
338
+ == 1.1.rc1
339
+
340
+ * enhancements
341
+ * Rails 3 compatibility
342
+ * All controllers and views are namespaced, for example: Devise::SessionsController and "devise/sessions"
343
+ * Devise.orm is deprecated. This reduces the required API to hook your ORM with devise
344
+ * Use metal for failure app
345
+ * HTML e-mails now have proper formatting
346
+ * Allow to give :skip and :controllers in routes
347
+ * Move trackable logic to the model
348
+ * E-mails now use any template available in the filesystem. Easy to create multipart e-mails
349
+ * E-mails asks headers_for in the model to set the proper headers
350
+ * Allow to specify haml in devise_views
351
+ * Compatibility with Mongoid
352
+ * Make config.devise available on config/application.rb
353
+ * TokenAuthenticatable now works with HTTP Basic Auth
354
+ * Allow :unlock_strategy to be :none and add :lock_strategy which can be :failed_attempts or none. Setting those values to :none means that you want to handle lock and unlocking by yourself
355
+ * No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3
356
+ * :activatable is included by default in your models
357
+
358
+ * bug fix
359
+ * Fix a bug with STI
360
+
361
+ * deprecations
362
+ * Rails 3 compatible only
363
+ * Removed support for MongoMapper
364
+ * Scoped views are no longer "sessions/users/new". Now use "users/sessions/new"
365
+ * Devise.orm is deprecated, just require "devise/orm/YOUR_ORM" instead
366
+ * Devise.default_url_options is deprecated, just modify ApplicationController.default_url_options
367
+ * All messages under devise.sessions, except :signed_in and :signed_out, should be moved to devise.failure
368
+ * :as and :scope in routes is deprecated. Use :path and :singular instead
369
+
370
+ == 1.0.8
371
+
372
+ * enhancements
373
+ * Support for latest MongoMapper
374
+ * Added anybody_signed_in? helper (by github.com/SSDany)
375
+
376
+ * bug fix
377
+ * confirmation_required? is properly honored on active? calls. (by github.com/paulrosania)
378
+
379
+ == 1.0.7
380
+
381
+ * bug fix
382
+ * Ensure password confirmation is always required
383
+
384
+ * deprecations
385
+ * authenticatable was deprecated and renamed to database_authenticatable
386
+ * confirmable is not included by default on generation
387
+
388
+ == 1.0.6
389
+
390
+ * bug fix
391
+ * Do not allow unlockable strategies based on time to access a controller.
392
+ * Do not send unlockable email several times.
393
+ * Allow controller to upstram custom! failures to Warden.
394
+
395
+ == 1.0.5
396
+
397
+ * bug fix
398
+ * Use prepend_before_filter in require_no_authentication.
399
+ * require_no_authentication on unlockable.
400
+ * Fix a bug when giving an association proxy to devise.
401
+ * Do not use lock! on lockable since it's part of ActiveRecord API.
402
+
403
+ == 1.0.4
404
+
405
+ * bug fix
406
+ * Fixed a bug when deleting an account with rememberable
407
+ * Fixed a bug with custom controllers
408
+
409
+ == 1.0.3
410
+
411
+ * enhancements
412
+ * HTML e-mails now have proper formatting
413
+ * Do not remove MongoMapper options in find
414
+
415
+ == 1.0.2
416
+
417
+ * enhancements
418
+ * Allows you set mailer content type (by github.com/glennr)
419
+
420
+ * bug fix
421
+ * Uses the same content type as request on http authenticatable 401 responses
422
+
423
+ == 1.0.1
424
+
425
+ * enhancements
426
+ * HttpAuthenticatable is not added by default automatically.
427
+ * Avoid mass assignment error messages with current password.
428
+
429
+ * bug fix
430
+ * Fixed encryptors autoload
431
+
432
+ == 1.0.0
433
+
434
+ * deprecation
435
+ * :old_password in update_with_password is deprecated, use :current_password instead
436
+
437
+ * enhancements
438
+ * Added Registerable
439
+ * Added Http Basic Authentication support
440
+ * Allow scoped_views to be customized per controller/mailer class
441
+ * [#99] Allow authenticatable to used in change_table statements
442
+
443
+ == 0.9.2
444
+
445
+ * bug fix
446
+ * Ensure inactive user cannot sign in
447
+ * Ensure redirect to proper url after sign up
448
+
449
+ * enhancements
450
+ * Added gemspec to repo
451
+ * Added token authenticatable (by github.com/grimen)
452
+
453
+ == 0.9.1
454
+
455
+ * bug fix
456
+ * Allow bigger salt size (by github.com/jgeiger)
457
+ * Fix relative url root
458
+
459
+ == 0.9.0
460
+
461
+ * deprecation
462
+ * devise :all is deprecated
463
+ * :success and :failure flash messages are now :notice and :alert
464
+
465
+ * enhancements
466
+ * Added devise lockable (by github.com/mhfs)
467
+ * Warden 0.9.0 compatibility
468
+ * Mongomapper 0.6.10 compatibility
469
+ * Added Devise.add_module as hooks for extensions (by github.com/grimen)
470
+ * Ruby 1.9.1 compatibility (by github.com/grimen)
471
+
472
+ * bug fix
473
+ * Accept path prefix not starting with slash
474
+ * url helpers should rely on find_scope!
475
+
476
+ == 0.8.2
477
+
478
+ * enhancements
479
+ * Allow Devise.mailer_sender to be a proc (by github.com/grimen)
480
+
481
+ * bug fix
482
+ * Fix bug with passenger, update is required to anyone deploying on passenger (by github.com/dvdpalm)
483
+
484
+ == 0.8.1
485
+
486
+ * enhancements
487
+ * Move salt to encryptors
488
+ * Devise::Lockable
489
+ * Moved view links into partial and I18n'ed them
490
+
491
+ * bug fix
492
+ * Bcrypt generator was not being loaded neither setting the proper salt
493
+
494
+ == 0.8.0
495
+
496
+ * enhancements
497
+ * Warden 0.8.0 compatibility
498
+ * Add an easy for map.connect "sign_in", :controller => "sessions", :action => "new" to work
499
+ * Added :bcrypt encryptor (by github.com/capotej)
500
+
501
+ * bug fix
502
+ * sign_in_count is also increased when user signs in via password change, confirmation, etc..
503
+ * More DataMapper compatibility (by github.com/lancecarlson)
504
+
505
+ * deprecation
506
+ * Removed DeviseMailer.sender
507
+
508
+ == 0.7.5
509
+
510
+ * enhancements
511
+ * Set a default value for mailer to avoid find_template issues
512
+ * Add models configuration to MongoMapper::EmbeddedDocument as well
513
+
514
+ == 0.7.4
515
+
516
+ * enhancements
517
+ * Extract Activatable from Confirmable
518
+ * Decouple Serializers from Devise modules
519
+
520
+ == 0.7.3
521
+
522
+ * bug fix
523
+ * Give scope to the proper model validation
524
+
525
+ * enhancements
526
+ * Mail views are scoped as well
527
+ * Added update_with_password for authenticatable
528
+ * Allow render_with_scope to accept :controller option
529
+
530
+ == 0.7.2
531
+
532
+ * deprecation
533
+ * Renamed reset_confirmation! to resend_confirmation!
534
+ * Copying locale is part of the installation process
535
+
536
+ * bug fix
537
+ * Fixed render_with_scope to work with all controllers
538
+ * Allow sign in with two different users in Devise::TestHelpers
539
+
540
+ == 0.7.1
541
+
542
+ * enhancements
543
+ * Small enhancements for other plugins compatibility (by github.com/grimen)
544
+
545
+ == 0.7.0
546
+
547
+ * deprecations
548
+ * :authenticatable is not included by default anymore
549
+
550
+ * enhancements
551
+ * Improve loading process
552
+ * Extract SessionSerializer from Authenticatable
553
+
554
+ == 0.6.3
555
+
556
+ * bug fix
557
+ * Added trackable to migrations
558
+ * Allow inflections to work
559
+
560
+ == 0.6.2
561
+
562
+ * enhancements
563
+ * More DataMapper compatibility
564
+ * Devise::Trackable - track sign in count, timestamps and ips
565
+
566
+ == 0.6.1
567
+
568
+ * enhancements
569
+ * Devise::Timeoutable - timeout sessions without activity
570
+ * DataMapper now accepts conditions
571
+
572
+ == 0.6.0
573
+
574
+ * deprecations
575
+ * :authenticatable is still included by default, but yields a deprecation warning
576
+
577
+ * enhancements
578
+ * Added DataMapper support
579
+ * Remove store_location from authenticatable strategy and add it to failure app
580
+ * Allow a strategy to be placed after authenticatable
581
+ * [#45] Do not rely attribute? methods, since they are not added on Datamapper
582
+
583
+ == 0.5.6
584
+
585
+ * enhancements
586
+ * [#42] Do not send nil to build (DataMapper compatibility)
587
+ * [#44] Allow to have scoped views
588
+
589
+ == 0.5.5
590
+
591
+ * enhancements
592
+ * Allow overwriting find for authentication method
593
+ * [#38] Remove Ruby 1.8.7 dependency
594
+
595
+ == 0.5.4
596
+
597
+ * deprecations
598
+ * Deprecate :singular in devise_for and use :scope instead
599
+
600
+ * enhancements
601
+ * [#37] Create after_sign_in_path_for and after_sign_out_path_for hooks to be
602
+ overwriten in ApplicationController
603
+ * Create sign_in_and_redirect and sign_out_and_redirect helpers
604
+ * Warden::Manager.default_scope is automatically configured to the first given scope
605
+
606
+ == 0.5.3
607
+
608
+ * bug fix
609
+ * MongoMapper now converts DateTime to Time
610
+ * Ensure all controllers are unloadable
611
+
612
+ * enhancements
613
+ * [#35] Moved friendly_token to Devise
614
+ * Added Devise.all, so you can freeze your app strategies
615
+ * Added Devise.apply_schema, so you can turn it to false in Datamapper or MongoMapper
616
+ in cases you don't want it be handlded automatically
617
+
618
+ == 0.5.2
619
+
620
+ * enhancements
621
+ * [#28] Improved sign_in and sign_out helpers to accepts resources
622
+ * [#28] Added stored_location_for as a helper
623
+ * [#20] Added test helpers
624
+
625
+ == 0.5.1
626
+
627
+ * enhancements
628
+ * Added serializers based on Warden ones
629
+ * Allow authentication keys to be set
630
+
631
+ == 0.5.0
632
+
633
+ * bug fix
634
+ * Fixed a bug where remember me module was not working properly
635
+
636
+ * enhancements
637
+ * Moved encryption strategy into the Encryptors module to allow several algorithms (by github.com/mhfs)
638
+ * Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by github.com/mhfs)
639
+ * Added support for MongoMapper (by github.com/shingara)
640
+
641
+ == 0.4.3
642
+
643
+ * bug fix
644
+ * [#29] Authentication just fails if user cannot be serialized from session, without raising errors;
645
+ * Default configuration values should not overwrite user values;
646
+
647
+ == 0.4.2
648
+
649
+ * deprecations
650
+ * Renamed mail_sender to mailer_sender
651
+
652
+ * enhancements
653
+ * skip_before_filter added in Devise controllers
654
+ * Use home_or_root_path on require_no_authentication as well
655
+ * Added devise_controller?, useful to select or reject filters in ApplicationController
656
+ * Allow :path_prefix to be given to devise_for
657
+ * Allow default_url_options to be configured through devise (:path_prefix => "/:locale" is now supported)
658
+
659
+ == 0.4.1
660
+
661
+ * bug fix
662
+ * [#21] Ensure options can be set even if models were not loaded
663
+
664
+ == 0.4.0
665
+
666
+ * deprecations
667
+ * Notifier is deprecated, use DeviseMailer instead. Remember to rename
668
+ app/views/notifier to app/views/devise_mailer and I18n key from
669
+ devise.notifier to devise.mailer
670
+ * :authenticable calls are deprecated, use :authenticatable instead
671
+
672
+ * enhancements
673
+ * [#16] Allow devise to be more agnostic and do not require ActiveRecord to be loaded
674
+ * Allow Warden::Manager to be configured through Devise
675
+ * Created a generator which creates an initializer
676
+
677
+ == 0.3.0
678
+
679
+ * bug fix
680
+ * [#15] Allow yml messages to be configured by not using engine locales
681
+
682
+ * deprecations
683
+ * Renamed confirm_in to confirm_within
684
+ * [#14] Do not send confirmation messages when user changes his e-mail
685
+ * [#13] Renamed authenticable to authenticatable and added deprecation warnings
686
+
687
+ == 0.2.3
688
+
689
+ * enhancements
690
+ * Ensure fail! works inside strategies
691
+ * [#12] Make unauthenticated message (when you haven't signed in) different from invalid message
692
+
693
+ * bug fix
694
+ * Do not redirect on invalid authenticate
695
+ * Allow model configuration to be set to nil
696
+
697
+ == 0.2.2
698
+
699
+ * bug fix
700
+ * [#9] Fix a bug when using customized resources
701
+
702
+ == 0.2.1
703
+
704
+ * refactor
705
+ * Clean devise_views generator to use devise existing views
706
+
707
+ * enhancements
708
+ * [#7] Create instance variables (like @user) for each devise controller
709
+ * Use Devise::Controller::Helpers only internally
710
+
711
+ * bug fix
712
+ * [#6] Fix a bug with Mongrel and Ruby 1.8.6
713
+
714
+ == 0.2.0
715
+
716
+ * enhancements
717
+ * [#4] Allow option :null => true in authenticable migration
718
+ * [#3] Remove attr_accessible calls from devise modules
719
+ * Customizable time frame for rememberable with :remember_for config
720
+ * Customizable time frame for confirmable with :confirm_in config
721
+ * Generators for creating a resource and copy views
722
+
723
+ * optimize
724
+ * Do not load hooks or strategies if they are not used
725
+
726
+ * bug fixes
727
+ * [#2] Fixed requiring devise strategies
728
+
729
+ == 0.1.1
730
+
731
+ * bug fixes
732
+ * [#1] Fixed requiring devise mapping
733
+
734
+ == 0.1.0
735
+
736
+ * Devise::Authenticable
737
+ * Devise::Confirmable
738
+ * Devise::Recoverable
739
+ * Devise::Validatable
740
+ * Devise::Migratable
741
+ * Devise::Rememberable
742
+
743
+ * SessionsController
744
+ * PasswordsController
745
+ * ConfirmationsController
746
+
747
+ * Create an example app
748
+ * devise :all, :except => :rememberable
749
+ * Use sign_in and sign_out in SessionsController
750
+
751
+ * Mailer subjects namespaced by model
752
+ * Allow stretches and pepper per model
753
+
754
+ * Store session[:return_to] in session
755
+ * Sign user in automatically after confirming or changing it's password