warden Questions
5
I have my rails application and I am running into a major issue with devise. I have a controller:
class Users::SessionsController < Devise::SessionsController
prepend_before_filter :require_no...
Cookie asked 18/2, 2012 at 16:21
4
I have an RoR app using Devise for logins. There is some code that is executed when a new User record is created, by being put in the user.rb file as an after_create call/macro/whatever. I need to ...
Verminous asked 21/1, 2014 at 20:35
2
I am working on a Sinatra Project and have set some variables in the session for later usage.
The scenario for which I need help for is that I want to access the session object in a middleware cla...
2
I've set up a Rails 5 (5.0.0.rc1) app with the --api flag. It's using Warden for authentication.
It all works, except that when Warden authentication fails, the response isn't being logged properl...
Convoy asked 14/6, 2016 at 9:46
3
Solved
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. It was written before Rails 5, so I chose not to use the new...
Mcclellan asked 17/7, 2016 at 13:40
2
Solved
I use the Rails Stack with
devise
warden
confirmable
Now I have a certain requirement related to email confirmation and access provision to unverified users. Let's say there are 3 categories of...
Invar asked 7/8, 2018 at 10:31
2
Solved
I am trying to use devise from a Rails app to grant access to a Sinatra application within the Rack middleware.
My config/routes.rb has:
authenticate "admin" do
mount Admins::Dashboard, :at =>...
5
Solved
I have being using Devise, and relying on last_sign_in_at of the user model to work out if my customers have not returned within X days. However, I recently discovered that last_sign_in_at is only ...
Geometry asked 9/1, 2012 at 13:6
2
Solved
I'm trying to write RSpec request specs in order to test my service API and for that I need the user to be authenticated.
I found some examples on the net but nothing works, for the moment I'm stuc...
Vierno asked 4/3, 2013 at 21:34
2
I want to make my app in real time
This is my error
ActionView::Template::Error (Devise could not find the Warden::Proxy instance on your request environment.
Make sure that your application i...
Peculiar asked 24/8, 2016 at 16:40
1
Solved
warden.authenticate!(auth_options)
working fine for these params:
{"utf8"=>"✓",
"authenticity_token"=>"5BMAUoZLUEgPZBVOAcQ8lFD4+pumP9kEvvXyelbnjeO36AZJQt2oRlraicQ6quvh/dccS0ELUkxjACgFcWFYAg=="...
Toplevel asked 10/4, 2017 at 5:28
2
Solved
A standard User column in Devise is last_sign_in_at, which holds the previous value of current_sign_in_at when current_sign_in_at is updated.
Does last_sign_in_at have any utility for Devise's cor...
Reticule asked 6/7, 2015 at 21:3
3
This is a spec for a very typical controller with a before_filter which redirects to login page when a not-logged-in user (a.k.a. a guest) tries to access /projects/new.
describe ProjectsControlle...
No asked 28/10, 2013 at 1:3
1
I am trying to test that someone is able to login to my site by making a POST request to my SessionsController. I've seen this way recommended in a few places:
it 'must be able to sign in a user' ...
Diogenes asked 24/8, 2016 at 11:16
4
Solved
I'm trying to access the current session from Warden's after_authenticate callback (running underneath Devise) in Rails 3.
At the top of my application controller I want to do something like:
War...
Shurlocke asked 6/10, 2011 at 20:6
4
I have a resource where the new action requires a user to be logged in to view. If a user tries to create a new resource without being logged in, they are redirected (302'd) to the login page. My f...
Monotint asked 22/6, 2012 at 8:26
2
Solved
I have an application using rails 3.2 and Devise. I have a request test suite using rspec and Capybara.
I have attempted to shift to using the Warden test helpers in my sign in helper rather than ...
Dopey asked 11/6, 2012 at 20:58
2
Solved
I have just begun with testing Devise. I am unable to understand of why i am getting this error ::
Failure/Error: subject.current_user.should_not be_nil
ArgumentError:
uncaught throw :warden
...
Scissile asked 28/2, 2012 at 13:24
3
I'm building an API with Sinatra (using Angular for the client side and want others to have access to API) and have it also be an OAuth provider. I am wondering what the best route to take (work of...
Psychro asked 19/8, 2013 at 13:40
3
Solved
When using the timeoutable module for Devise, how can one determine how long it will be before the current user's session expires? The goal is to include this value in all responses so client side ...
Martinmas asked 22/5, 2013 at 0:54
0
After the user has logged in (ENV['warden'].authenticate!'d) once, how does warden know this? I can not find anything in the cookie except for the rack.session value - I couldn't figure this out fr...
1
I am wondering how to implement a custom authentication strategy with devise using devise :token_authenticable.
I already found instructions on how to do it with a model using devise :database_aut...
Jewry asked 2/5, 2013 at 10:20
1
Solved
Is here any possibility to modify devise SessionsController for ajax communication?
Edit
I found the solution, and posted it into answers, thanks
Orthorhombic asked 14/6, 2015 at 12:15
3
We have a rails 4 app in production environment, on a webrick server, that crashes regularly and returns a 500 error.
The crash seems to come from the following error :
Error during failsafe respo...
Weissberg asked 7/11, 2014 at 14:38
5
Solved
I'm using Devise with Ruby on Rails.
What is the recommended way to redirect unauthenticated users to the sessions#new page if they attempt to access a page that requires authentication?
Right no...
Godliman asked 9/5, 2014 at 2:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.