Authlogic is a clean, simple, and unobtrusive ruby authentication solution.
Questions tagged [authlogic]
718 questions
3
votes
1 answer
Authlogic, rails3_acts_as_paranoid and validates_uniqueness_of :login + default_scope(:conditions => {:active => true})
I want to be able to create multiple user accounts with the same login (because of the case a user deletes his account... and then sign up with the same login). I am using authlogic and rails3_acts_as_paranoid.
But there is a problem: Authlogic…

BvuRVKyUVlViVIc7
- 11,641
- 9
- 59
- 111
3
votes
2 answers
Rails ActionMailer methods confusion
I implemented an authentication system using authlogic, and have added password reset functionality as per this tutorial http://github.com/rejeep/authlogic-password-reset-tutorial
It all works, but I am confused as to why it does..
There is this…

pingu
- 8,719
- 12
- 50
- 84
3
votes
1 answer
devise routing error
I can't seem to get past this error when setting up devise.
Routing Error
wrong constant name Devise/registrationsController
or
Routing Error
wrong constant name Devise/sessionsController
I'm using Ruby 1.8.7, Rails 3.0 and Devise…

holden
- 13,471
- 22
- 98
- 160
3
votes
1 answer
undefined method 'password_confirmation' for User: Testing Authlogic with Cucumber and Factory Girl
My tests work fine when I'm testing them individually,
rake cucumber FEATURE = 'path/to/feature'
but when I try to run
rake cucumber
They fail with the following error
undefined method `password_confirmation=' for #…

Mark Swardstrom
- 17,217
- 6
- 62
- 70
3
votes
4 answers
Getting started with Authlogic -- is this what I am looking for?
I'm looking to build an application that handles authentication and authorization for a variety of smaller apps that may or may not be rails applications (e.g. some with sinatra, some with non-ruby frameworks, etc). These applications will be on…

anastazja
- 31
- 1
3
votes
2 answers
rails 5 authlogic cryptic user_session error
I'm trying to set up Authlogic with Rails 5 (hence the user_session_params.to_h), and when I try to create a new session, I get the following error message with which I don't know what to do. Any suggestions will be much appreciated.
puts…

Maciej Szlosarczyk
- 789
- 2
- 7
- 21
3
votes
3 answers
How to stub an users_controller | authlogic, rspec2, rails3, factory_girl
My users_controller.rb
# GET /users/1/edit
def edit
@user = current_user
#@user = User.find(params[:id])
end
my sweet looking users_controller_spec.rb ( notice all my commented out attempts )
describe "Authenticated examples" do
before(:each)…

Trip
- 26,756
- 46
- 158
- 277
3
votes
4 answers
How to authenticate a user on a domain (with ssl) and redirect and create the session in a different domain?
I have a multi tenant rails app that let accounts use their own custom domain. The app is hosted on Heroku and the parent domain has a ssl certificate. I want my custom domain users to be able to sign in using the parent domain (www.foo.com) and be…

user177468
- 225
- 5
- 18
3
votes
1 answer
Authlogic, multiple user types and multiple relations between the same models
Good morning,
I'm trying to figure out the best way to manage this user situation I've got.
I have users and affiliates. There is already a HABTM relationship between the two of them, because users can sign up for affiliates, and affiliates can…

Kevin Whitaker
- 457
- 1
- 6
- 12
3
votes
1 answer
caching with memcached
I have a section in my main layout like the following. I am starting to use memcached and wondering if this portion can be cached somehow becasue the current_user call makes a hit to the database for every page load and by nature of the plugin…

badnaam
- 1,876
- 4
- 29
- 53
3
votes
1 answer
Controller tests with authlogic expecting user_sessions table
I'm using Authlogic (along with Authlogic RPX) in a new Rails 3 application (beta4 , just upgraded to RC).
I cannot get any of my functional tests to pass. Anytime I try to run even the most rudimentary test, I end up with this error:
4) Error:
…

Bryan M.
- 17,142
- 8
- 46
- 60
3
votes
3 answers
How to make Authlogic sessions work for all subdomains
When a user logs into my site at example.com, I want him to be logged in when he visits something.example.com. How can I accomplish this? (I'm using subdomain-fu if relevant)

Tom Lehman
- 85,973
- 71
- 200
- 272
3
votes
2 answers
Migrating from clear password storage to authlogic
I'm currently working on a Rails app which stores plain clear passwords (...). So I'm migrating to Authlogic authentication with a 'standard' SHA512 encryption.
I did that which works fine :
#file /models/user.rb
class User < ActiveRecord::Base
…

Clément
- 1,399
- 13
- 19
3
votes
1 answer
How can I force the user to fill out a captcha after a specific number of failed login attempts with authlogic?
I'm trying to secure my rails 3 app against brute force login guessing. I'm using authlogic. What's the best way to force a user (or bot) to fill out a captcha after a specific number of failed login attempts? Does authlogic have a built in…

James
- 5,273
- 10
- 51
- 76
3
votes
2 answers
Ruby on rails authlogic config (get rid of capitalization check)
The authlogic rails gem is doing a LOWER in the sql query.
SELECT * FROM `users` WHERE (LOWER(`users`.email) = 'test@example.com') LIMIT 1
I want to get rid of the LOWER part since it seems to be slowing down the query by quite a bit.
I'd prefer to…

djburdick
- 11,762
- 9
- 46
- 64