Proxy to the authenticate method on warden :api: public
# File lib/rails_warden/controller_mixin.rb, line 40 def authenticate(*args) warden.authenticate(*args) end
Proxy to the authenticate method on warden :api: public
# File lib/rails_warden/controller_mixin.rb, line 46 def authenticate!(*args) defaults = {:action => RailsWarden.unauthenticated_action} if args.last.is_a? Hash args[-1] = defaults.merge(args.last) else args << defaults end warden.authenticate!(*args) end
Logout the current user :api: public
# File lib/rails_warden/controller_mixin.rb, line 33 def logout(*args) warden.raw_session.inspect # Without this inspect here. The session does not clear :| warden.logout(*args) end