Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
Questions tagged [authlogic]
718 questions
3
votes
2 answers
What is the best way to test authlogic-open-id with cucumber and webrat?
I've been having trouble using cucumber and webrat to test authlogic-openid authentication in a rails app. Following Ryan Bates's excellent screencast I was able to install authlogic with the open-id plugin. OpenID works when I login using the…

Michael Barton
- 8,868
- 9
- 35
- 43
3
votes
1 answer
current user is nil, after adding http basic authentication in production environment
I have implemented http basic authentication in my application, after the implementation of basic http authentication, current user is always nil in production mode. Pasted below my code for your reference.
In Application controller:
def…

loganathan
- 5,838
- 8
- 33
- 50
3
votes
5 answers
Crypted_password is null when using Authlogic to save a user
i'm getting a strange error on my production install when i try and
create a new user using AL:
ActiveRecord::StatementInvalid: Mysql::Error: Column
'crypted_password' cannot be null: INSERT INTO users
especially strange b/c it works as expected on…

kareem
- 690
- 1
- 9
- 20
3
votes
2 answers
Authlogic - what's the point of "sessions" table?
I have implemented Authlogic to my app, but I am confused about the sense of the table sessions.
I have UsersController, UserSessionsController, for both controllers models. In the database - the table users and the table sessions.
The table…

user984621
- 46,344
- 73
- 224
- 412
3
votes
1 answer
Using authlogic with iPhone client using ASIHTTPRequest or NSURLConnection
I am currently working on an iPhone front end for a rails service that uses vanilla authlogic for authentication. I am completely stuck on how to login to authlogic from the iPhone using ASIHTTPRequest or possibly NSURLConnection. How do I get the…

sgonzalez
- 1,086
- 9
- 24
3
votes
1 answer
Authlogic with Capybara + Cucumber + Selenium Driver not working
This is the error I get when I run a cucumber test with @javascript with authlogic:
You must activate the Authlogic::Session::Base.controller with a controller object before creating objects
This is my authlogic support code in…

kiba
- 81
- 5
2
votes
1 answer
send errors to "/login/errors" when logging fails instead of going to the path "/user_sessions"
I am building an app with ruby on rails 3.1.
I have a login form correctly displayed at the url "/login". When an error occurs, I would like it to go to "login/errors" instead of "/user_sessions".
For information I am using authlogic
The model used…

lgx
- 590
- 4
- 9
2
votes
2 answers
How to recover a brute-force protected user account?
After a user has tried to login more often than the consecutive_failed_logins_limit and brute-force protection got enabled, what is the expected way to recover the account and reset the password? Does Authlogic expect manual resetting of the…

dokaspar
- 8,186
- 14
- 70
- 98
2
votes
0 answers
Authlogic - Selenium issue
I'm using Cucumber with Capybara. I've got a set of feautures which are running ok when I use the default driver for Capybara. Now I've written a new feature which requires selenium (because it involves an alert() box). I installed the selenium…

sauronnikko
- 4,665
- 5
- 31
- 47
2
votes
2 answers
Rails 3 Routes Issue
I am a beginning developer, and I was able to successfully use this tutorial (I'm in Rails 3): http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/ to allow for users to reset their passwords, however I also have a customer…

yellowreign
- 3,528
- 8
- 43
- 80
2
votes
1 answer
RSpec: undefined local variable or method `activate_authlogic'
My _spec file includes the code below, but my test fails with:
NameError in 'MembershipsController should allow you to save updates to the notes'
undefined local variable or method `activate_authlogic' for…

jefflunt
- 33,527
- 7
- 88
- 126
2
votes
0 answers
Compatibility of Authlogic with http_basic_authenticate_with
my Rails 3.1 application uses authlogic. I just added http_basic_authenticate_with so I can restrict access to the entire site for running a private beta, and it seems to have broken authlogic:
class ApplicationController < ActionController::Base
…

pingu
- 8,719
- 12
- 50
- 84
2
votes
2 answers
authlogic & iOS, should I be saving password or tokens, and how?
I'm very new to writing web apps and writing iPhone apps. I have a simple web app ready to go which uses authlogic to have users sign in / register.
I want to allow users of the iPhone app to sign in and register. In order to do this, I am planning…

Ringo Blancke
- 2,444
- 6
- 30
- 54
2
votes
1 answer
How can I pull the User.role_id through a UserSession Model
I have authlogic running just fine in my app, but I am rolling my own roles (i am newer to rails and wanted to learn...)
So I have a User model, a Role Model, and a User Sessions model. User acts_as_authenticated.
In my…

TJ Sherrill
- 2,465
- 7
- 50
- 88
2
votes
0 answers
Authlogic secure and httponly cookies patch
I've been trying to apply the gist provided in the issue tracker to add the secure and httponly options and methods on Authlogic cookies, but I'm having some difficulty. I applied the patch and have gotten the new attributes to show up in my…

Josh Kovach
- 7,679
- 3
- 45
- 62