All Questions

260
votes
36answers
224930 views

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I am using Authlogic-Connect for third party logins. After running appropriate migrations, Twitter/Google/yahoo logins seem to work fine but the facebook login throws exception: SSL_connect returned=...
5
votes
2answers
9949 views

Ruby on Rails - request.env['HTTP_REFERER'] returns nil

I am trying to save the http_referer so I can send the user back to that url after he has logged in. Right now I have a before_filter in my controllers that sends them to a log in page if a session ha...
40
votes
3answers
48296 views

How to manually create a new user and user session in Devise?

I have a form where I collect a lot of information in Rails. Part of this form is fields for a new user to register. Since Devise has controllers/actions specifically to create a new user, I don't kno...
10
votes
9answers
5187 views

Integration testing with Authlogic?

For the life of me I don't understand why Authlogic isn't logging me in in this integration test. I haven't had any problems w/ Authlogic logging me in in functional tests using this code. According ...
7
votes
1answers
3435 views

Authlogic and multiple sessions for the same user

I'm using Authlogic to manage the sessions in my application. However, by default, authlogic allows a user to be logged in many times from different computers. I don't want that (the user pays to get ...
3
votes
2answers
4683 views

Rails: Basic Authentication with Authlogic

I'm using Authlogic and I would like to implement Basic HTTP Authentication in my controller so I could define which action requires authentication. I know how to do Basic HTTP Authentication authen...
38
votes
4answers
8778 views

Migrating from Authlogic to Devise

I've previously implemented Authlogic for authorization on my site. Now however I wish to switch over to using Devise instead, and I'm wondering if anyone has any experience with this. Perhaps anyone'...
10
votes
4answers
10429 views

Ruby on Rails: Best way to add Facebook login, Twitter login, OpenID login, etc

I'm currently running on a Ruby on Rails app with Authlogic handling my authentication and user management. I'm struggling to find up to date information on the best way to add 3rd party login metho...
5
votes
1answers
3621 views

AuthLogic perishable_token resets on every request

In my User model I have: acts_as_authentic do |c| c.perishable_token_valid_for = 30.minutes end In my Application Controller I have the standard boilerplate code: def current_user_session retu...
5
votes
2answers
3665 views

Ruby on rails - Authlogic : periodically check if user session is valid

I'm looking for a solution allowing me to check periodically if the user session has expired and if so redirect him to the login page. I'm using Authlogic gem, so what I'm doing is call a function tha...

Previous Next