Carlos Antonio da Silva
a59e20e3bb
Add some tests to helper creation using namespaces, to better show how it works.
2010-08-02 08:50:48 -03:00
José Valim
ae6322efb5
No longer retrieve the user from paths, but use the env hash. This change deprecates use_default_scope.
...
If you have non conventional routes and want to specify the scope for a controller, you can do that at the router level:
as :user do
get "/sign_in", :to => "devise/session#new"
end
This is saying: when accessing "/sign_in", devise should use the user scope. Meaning that users signed through that form will be signed to the user scope.
2010-07-06 01:33:32 +02:00
José Valim
7a1adbb61e
Improve integration of devise with new router scope.
2010-07-04 11:53:12 +02:00
Denis Lifanov
819db39263
simplification (sign_out_everybody => sign_out_all_scopes)
2010-06-25 02:29:48 +08:00
Denis Lifanov
1924a915a8
sign_out_everybody helper (as a convenient proxy to warden)
2010-06-25 02:29:41 +08:00
SSDany
5c9fe5e769
anybody_signed_in? helper
2010-06-12 05:11:03 +08:00
Joseph DelCioppio
80977c6dee
Added after_update_path to registrations controller. Users can now specify the path that their app should return to after updated a resource. If not specified it will return to the root, or the resource's root if specified.
2010-05-25 04:25:32 +08:00
José Valim
23e608e27b
No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3.
2010-04-03 11:43:31 +02:00
José Valim
2b5a068246
Move part of the logic in SessionsController#create to the FailureApp. Whenever Warden is invoked with a :recall, the failure app will recall the chosen controller and the action given to recall.
2010-04-01 17:30:55 +02:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
José Valim
829c85631b
Aim for Rails 3.0.0.beta1 compatibility. A few issues are still pending with Warden.
2010-03-10 15:00:12 +01:00
José Valim
1c6f18cb8b
Since Devise::FailureApp is now a metal, we can get rid of this default_url_options stuff.
2010-02-19 10:13:53 +01:00
José Valim
d466849c57
More tests passing for Rails 3 compatibility. 369 tests, 788 assertions, 34 failures, 16 errors.
2010-02-16 16:11:30 +01:00
José Valim
a5b2ee5171
Improve documentation for after_sign_in_path_for.
2010-01-16 10:56:35 +01:00
José Valim
f46d1b1d81
Add support to Warden 0.9.0.pre
2010-01-14 13:38:02 +01:00
José Valim
b581f86317
DRY up controllers.
2010-01-13 18:12:13 +01:00
José Valim
eb335234d4
Release Devise 0.5.5 bringing back Ruby 1.8.6 compatibility.
2009-11-19 20:55:40 -02:00
José Valim
d445b4beb9
Create after_sign_in_path_for and after_sign_out_path_for hooks and sign_in_and_redirect and sign_out_and_redirect helpers.
2009-11-19 11:16:31 -02:00
José Valim
05fc5712e3
Added a couple of helpers to help sign up and delete account tasks.
2009-11-15 12:19:16 -02:00
José Valim
05678e773f
Added support to config.default_url_options.
2009-11-06 20:59:36 -02:00
José Valim
1db50dee36
Skip authentication filters by default on Devise controllers and add devise_controller? to select/reject other filters.
2009-11-06 09:33:18 -02:00
José Valim
dede8af5b0
Do not include Devise internal helpers in application controller.
2009-10-27 21:26:40 -02:00
Carlos A. da Silva
28a7f78fba
Creating rememberable module.
2009-10-20 00:31:33 -02:00
José Valim
b0a2da72b5
Use sign_in and authenticate methods.
2009-10-18 15:01:56 -02:00
José Valim
609a83a76c
Allow to access the session for a given scope, through #{scope}_session reader and improved documentation.
2009-10-18 12:54:21 -02:00
Carlos A. da Silva
8d85db3b57
Sign user in automatically after confirming or changing it's password
2009-10-18 10:36:20 -02:00
Carlos A. da Silva
0f174dbf4b
Updating routes to use sign_in/sign_out instead of session.
2009-10-16 13:44:51 -03:00
Carlos A. da Silva
0664359381
Updating helpers to use sign_in/sign_out instead of authenticate/logout.
2009-10-12 19:20:12 -03:00
José Valim
6da49499ff
Finished major changes.
2009-10-12 10:18:14 -03:00
José Valim
b012bc800b
Kick tests back to life.
2009-10-11 23:24:57 -03:00
Carlos A. da Silva
91a87eed2c
Use signed_in instead of logged_in, and setup current_user to pass a scope.
2009-10-11 13:00:44 -03:00
Carlos A. da Silva
1226c3d8de
Adding separated tests for admins and users to enforce modularization. Rewrite of several tests.
2009-10-11 10:49:25 -03:00
Carlos A. da Silva
62bef5605a
Adding filters generation based on devise mappings.
2009-10-11 08:15:48 -03:00
Carlos A. da Silva
198167d978
Removing default mapping and Updating tests at all
2009-10-10 18:07:25 -03:00
Carlos A. da Silva
561833e060
Adding warden scopes to helper methods.
2009-10-10 16:47:11 -03:00
Carlos A. da Silva
15c5d9e049
Changing authentication method to redirect inside rails and not warden strategy anymore. Updating session to authenticate the user and set it to warden.
2009-10-10 15:59:37 -03:00
Carlos A. da Silva
643a2ef271
Updating sessions create to handle authentication, still based on warden strategy
2009-10-10 14:14:09 -03:00
Carlos A. da Silva
fff46a53eb
Some warden helpers tests taken from rails_warden
2009-10-10 14:03:18 -03:00
Carlos A. da Silva
23bb351d0e
Tests with resource and resource_class
2009-10-10 09:32:51 -03:00
Carlos A. da Silva
d181975555
Moving resource_name and resource_class to Devise, rewriting route tests, using resource_class in controllers.
2009-10-10 08:37:22 -03:00
Carlos A. da Silva
f4de0f6c5a
Creating Devise.map to generate and recognize urls based on scope.
2009-10-09 21:11:58 -03:00