Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
Questions tagged [authlogic]
718 questions
10
votes
1 answer
RESTful-Authentication or Authlogic?
I'm having trouble deciding between the two. They both seem like great plugins but I'd like to know which is easier to control.
What are your guy's experiences with these plugins? Which would you recommend?

RyanScottLewis
- 13,396
- 16
- 56
- 84
9
votes
3 answers
Authlogic OpenID integration
I'm having difficulty getting OpenId authentication working with Authlogic. It appears that the problem arose with changes to the open_id_authentication plugin. From what I've read so far, one needs to switch from using gems to using…

craig
- 25,664
- 27
- 119
- 205
9
votes
3 answers
Prepend user ID to all log messages in Rails
In order to help track user actions for debugging purposes, we are considering prepending the session's logged in user ID to every log message (when applicable). Our stack consists of Rails and Authlogic. I've tried a couple of different routes, but…

Ryan LeFevre
- 643
- 4
- 12
8
votes
1 answer
Upgrade to Rails 3.1.1 and Authlogic
Just have upgraded my rails app to Rails 3.1.1 and have get the following error:
Routing Error
undefined method `filter_parameter_logging' for ApplicationController:Class
application_controller.rb:
class ApplicationController <…

Don Tomato
- 3,311
- 3
- 30
- 48
8
votes
3 answers
Authlogic and Single Access Token
I am having a hard time finding a simple tutorial on how to enable single access token authentication using authlogic. There is some documentation but it isn't very helpful.
I added single_access_token to my db, I added this:
…

Danny
- 4,724
- 6
- 42
- 55
8
votes
1 answer
Getting error of undefined method 'valid_password?' with Authlogic
I get suddenly the below error on my server with Authlogic
NoMethodError (undefined method `valid_password?' for #):
authlogic (2.1.3) [v] lib/authlogic/session/password.rb:191:in `send'
authlogic (2.1.3) [v]…

Chirag Shah
- 509
- 1
- 10
- 25
8
votes
2 answers
#""}>
I'm trying to build a "just click on your name to login" system using auth_logic. My user model has an email and name field. To login, I simply do:
UserSession.create(@user, true)
Unfortunately that doesn't result in a session being created. Using…

Sjors Provoost
- 1,921
- 1
- 19
- 34
8
votes
2 answers
Authlogic: generates "Email has already been taken" error twice
I'm using authlogic with my user model, with the login field set to use email, thus:
acts_as_authentic do |c|
c.login_field = :email
end
If i try to make a new user, and the email is already in use, it adds a duplicate email error twice:…

Max Williams
- 32,435
- 31
- 130
- 197
8
votes
3 answers
Authlogic's current_user object in models
I need to know the ID of the current user in a model:
def after_save
desc, points=nil, nil
if answer_index == daily_question.correct_answer_index
desc = I18n.t('daily_question.point_log.description.correct')
…

jriff
- 1,947
- 3
- 23
- 33
8
votes
2 answers
Authlogic Facebook Connect Snafu
I have an application configured with authlogic and authlogic_facebook_connect, but every time I click to "Connect" button, my UserSession fails validation, saying "You did not provide any details for authentication"
Isn't the…

a10s
- 970
- 1
- 9
- 15
8
votes
1 answer
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 access and I want to avoid users sharing their…

Damien MATHIEU
- 31,924
- 13
- 86
- 94
7
votes
1 answer
How can I test authlogic's current_user in Cucumber?
I am trying to use authlogic's test helpers in Cucumber, calling activate_authlogic.
Our application_controller has a current_user_session method.
When we drop into the debugger mid-story, controller returns a…

schwabsauce
- 399
- 5
- 16
7
votes
3 answers
Log-in through authlogic without having to fill in form every time
I have a number of Cucumber scenarios which run with capybara on a project I am working on.
Most of these scenarios start with a "Given I am logged in" step. Currently my implementation of this is:
visit path_to('the login page')
…

AlistairH
- 3,139
- 2
- 21
- 19
7
votes
3 answers
Using authlogic_api for Rails REST API access
I am writing a Rails back-end API for a Steam game that is only accessed via REST calls, so no user-specific authentication is required. I am trying to implement the authlogic_api plug-in for the Authlogic gem, which uses an api_key/signature…

zinndesign
- 188
- 2
- 11
7
votes
2 answers
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 has not been created via a redirect_to. However…

Naujpr
- 155
- 2
- 2
- 5