Top "Warden" questions

Warden is a Rack-based middleware, designed to provide a mechanism for authentication in Ruby web applications.

Redirect to log in page if user is not authenticated with Devise

I'm using Devise with Ruby on Rails. What is the recommended way to redirect unauthenticated users to the sessions#new …

ruby-on-rails ruby-on-rails-4 devise warden
How do I login a user with devise?

I have my rails application and I am running into a major issue with devise. I have a controller: class …

ruby-on-rails ruby ruby-on-rails-3 devise warden
rails devise 401 unauthorized for a specific page

I'm having trouble discerning why my app is returning a 401 Unauthorized. Other actions in my Institutions controller are working just …

ruby-on-rails-3 devise http-status-code-401 warden
Ruby on Rails Devise code after login

I have an RoR app using Devise for logins. There is some code that is executed when a new User …

ruby-on-rails devise warden
Why is my RSpec not loading Devise::Test::ControllerHelpers?

I'm using Rails 5, and Devise 3.5.1. Going through a nice (older) book about creating/testing an API, which uses Devise authentication. …

ruby-on-rails devise rspec-rails warden
Configuring Warden for use in RSpec controller specs

I was able to use Devise's sign_in method to log in a user in my controller specs. But now …

ruby-on-rails ruby-on-rails-3 rspec warden
How to authenticate using warden.authenticate!

I would like to do a 'sign-in or register' on the fly when posting a comment to my forum. I …

ruby-on-rails devise warden
Devise - Sign In with Ajax

Is here any possibility to modify devise SessionsController for ajax communication? Edit I found the solution, and posted it into …

ruby ajax ruby-on-rails-4 devise warden
RSpec, authenticating Devise user in request specs

I'm trying to write RSpec request specs in order to test my service API and for that I need the …

ruby-on-rails rspec devise warden
uncaught throw :warden in Devise Testing

I have just begun with testing Devise. I am unable to understand of why i am getting this error :: Failure/…

ruby-on-rails testing rspec devise warden