Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
Questions tagged [authlogic]
718 questions
2
votes
2 answers
Authlogic, Namespace and private methods in ApplicationController
I am troubleshooting why my ApplicationController's methods don't seem to work in my namespaced admin area and it seems like when I'm in a namespace I cannot access my ApplicationController's private methods, is this right?
If it is like that,…

arnekolja
- 1,687
- 5
- 22
- 29
2
votes
2 answers
Authlogic Perishable Token Resetting on Failed Login
I am using the perishable token magic in authlogic to do password resets. However, it seems that the token is getting reset when a user tries to log in and fails. This is because authlogic is incrementing failed login attempts on the user record. …

chrishomer
- 4,900
- 5
- 38
- 52
2
votes
2 answers
Rails 3 with Rspec2 and authlogic: Cannot spec requests & views
I'm having trouble creating specs for my views and requests.
Some of my controllers use named_scope, like this:
#projects_controller.rb
@projects = Project.with_user( current_user)
## project.rb:
scope :with_user, lambda {|u| {:joins =>…

Miguel Ping
- 18,082
- 23
- 88
- 136
2
votes
0 answers
Authlogic performance? - Any request with SELECT *
I have a little performance issue with Authlogic - I dealed with them over days... and i can't figure out!
The Problem is: I use the standard-Authlogic installation with following code in the application_controler to get the current_user (and to…

Mike
- 21
- 1
2
votes
0 answers
Using Cucumber with Authlogic
I recently upgraded cucumber to version 0.8.5, but I'm getting some unexpected errors with Authlogic. As a precursor to many of my user interface tests I have a default 'Given I am logged in' method that logs a user in through the standard login…

ryan
- 175
- 3
- 13
2
votes
1 answer
Can't route to /logout with Authlogic
I've been trying to set up user authentication in my app using Authlogic, and I'm sure the problem is in my code but I can't seem to find it. When I hit the /login link, all works as expected, but my /logout wants to use GET instead of…

Bret
- 1,455
- 2
- 16
- 27
2
votes
2 answers
Set Authlogic validate_login_field to false on user update
We have a current database of users who can have any symbol in their username. We have started using authlogic for authentication. So, any current users updating any of their information fail validations because their login has unaccepted…

Kalyan Maddu
- 4,123
- 2
- 21
- 26
2
votes
1 answer
Authlogic and RSpec, errors only running all examples
I have a Profiles Controller that acts_as_authentic with AuthLogic and I am trying to test this action:
class ProfilesController < ApplicationController
before_filter :require_user, :except => ['new', 'create']
def index
…

trobrock
- 46,549
- 11
- 40
- 46
2
votes
0 answers
facebook_session.user.email = nil?
I'm using authlogic_facebook_connect plugin on my RoR app. Looking to get extended permission from the user to acquire their facebook email address so that I can use this email to store in the database as their "myapp.com" registration email. This…

scott
- 441
- 5
- 11
2
votes
3 answers
Unit test with Authlogic on Rails 3
I would like to write some unit test with a logged user using Authlogic. To start right, I used some code hosted in http://github.com/binarylogic/authlogic_example. But I get an error after rake test, because of "test_helper.rb" and the following…

Puru puru rin..
- 501
- 2
- 5
- 18
2
votes
1 answer
Authlogic. What hash function?
I have a ruby project. It use Authlogic lib. I can't understand how it's implemented hash function. In source coude I found than
crypted_password: Authlogic::CryptoProviders::Sha512.encrypt(password+salt)
In my db where is a row…

user1376723
- 257
- 2
- 6
2
votes
3 answers
How to integrate Facebook the new Graph Api with Authlogic in Ruby on Rails?
Edit: What I recommend now with any Ruby application to use omniauth gem to get access_token, etc. and to use koala gem for Facebook Graph API.
I've began with a new project using Authlogic system for Authorization.
And I'm now wondering how could I…

amrnt
- 1,331
- 13
- 30
2
votes
1 answer
User model declarative authorization 'if_attribute' issue
I am using authlogic (2.1.3) and declarative_authorization (0.4.1) to control access to my application.
All of the authorization works as expected except user's that are assigned the Editor role can't change their (the current_user supplied by…

craig
- 25,664
- 27
- 119
- 205
2
votes
1 answer
last_login_at not working (null) w/ Authlogic Magic Columns
I am using the Authlogicgem for authentication and most of it seems to be working great. Authlogic provides several columns that you can add to your Users table (for example) that it knows to fill in if they are present. i.e. login_count,…

bgadoci
- 6,363
- 17
- 64
- 91
2
votes
1 answer
How do I get AuthLogic to skip Password validation?
I think I'm just missing something obvious. I send a user a perishable token embedded in a link. They click on it, and they come back to the site. I want to log them in automatically --- authenticated by their perishable token, not the password.…

ndp
- 21,546
- 5
- 36
- 52