Questions tagged [authlogic]

Authlogic is a clean, simple, and unobtrusive ruby authentication solution.

718 questions
0
votes
1 answer

HTTP basic authentication - additional date parameter (Rails)

I'm writing a rails web service and i would like to use authlogic for authentication, since this seems to be one of the most used and active authentication gem. Our clients should be abled to authenticate with their user credentials, so i deciced to…
0
votes
2 answers

How can I put a conditional validation on an ActiveModel attribute that has several validations already?

I'm using Authlogic which by default puts a few validations(length, uniqueness, format, etc) on fields like login, email, and password. I'd like to be able to skip all validations attached to one of the attributes if, say, another attribute is…
Peter P.
  • 3,221
  • 2
  • 25
  • 31
0
votes
0 answers

How to make authlog use the cookie rather than the session

We have a site that is using rails 3.0.4, and authlogic. We use ngnix to handle the front end and I am trying to use squid to do caching between nginx and the unicorns. I am trying not to cache pages for logged in users and I am doing this via…
James
  • 114
  • 4
0
votes
2 answers

UserSession.find returns nil after changing password

I recently created a way to change the current user password, however after saving the record, my UserSession.find returns nil, I tried by writing UserSession.new({...}).save with no luck, any suggestion on how to resolve this issue? Here is my…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
0
votes
1 answer

How can AuthLogic be configured to only timeout sessions for certain users (admins)?

We have a business requirement that some users be automatically logged out of our application after a period of inactivity. Other users are allowed to stay logged in and should not timeout. We are using AuthLogic with Rails 3 for session…
John Naegle
  • 8,077
  • 3
  • 38
  • 47
0
votes
1 answer

Why do you not pass a parameter to authlogic's UserSession.find function

To find a user session in authlogic, you call UserSession.find (or whatever you named UserSession). Is the ability to find the correct UserSession without providing a parameter (something like UserSession.find(params['session_id']) a Rails thing or…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
0
votes
1 answer

Support multiple models with Sorcery or Authlogic gems?

I have users and contacts. Users sign into their account and can create address books from which they add contacts to. If they share something with a contact that contact needs to login to view it. Users are unique in the db (stored in users…
Adam O'Connor
  • 2,582
  • 2
  • 16
  • 19
0
votes
2 answers

Authlogic and Namespace in Rails

Does anyone have an example of setting up Authlogic with a namespace in Rails? I have an "admin" namespace, which contains many "admin" related controllers (products, categories, etc.). map.namespace :admin do |admin| admin.resources :products,…
Intelekshual
  • 7,444
  • 1
  • 21
  • 28
0
votes
2 answers

Ruby on Rails - store plain text password using authlogic

I have a ruby app and I am using "Authlogic" for user authentication. Users can register and sign-in no problem. Now I have a csv file into which I have a list of user details which I have to migrate those details to the "users" table. For that I…
RRG
  • 457
  • 5
  • 18
0
votes
1 answer

Bruteforce protection with authlogic, Rails3.0.10

I want to use the Bruteforce feature of authlogic, but haven't a clue how to go about configuring it. My user_session.rb model looks like this: class UserSession < Authlogic::Session::Base #edited code to ensure specific login error isn't…
RoRNovice
  • 23
  • 3
-1
votes
1 answer

Authlogic account activation rails

I have a requirement where the user creates an account through form with name and email. I need to send him an activation link once he clicks on it he must be able to choose a password. I am using authlogic please let me know the best way of…
user315252
  • 179
  • 1
  • 11
-1
votes
2 answers

Passenger, Rails3, Authlogic

I'm having trouble with the Authlogic-gem. Before I write my own auth-scheme I wanted to ask if anyone had the same problem: When logging in it successfully executes the user_session.save and redirects, but the "current_user" is not set. It works…
scrrr
  • 5,135
  • 7
  • 42
  • 52
-1
votes
1 answer

Rails and authlogic, Not able to solve dependencies

This is my Gemfile: gem "rails", "~> 2.3.8" gem "rake", "0.9.2" gem 'mysql', '2.8.1' gem 'aasm', '2.1.5' gem "authlogic", "2.1.6" gem "acl9", "0.12.0" gem "formtastic", "1.2.5" But bundle install reports: Bundler could not find compatible versions…
Mich Dart
  • 2,352
  • 5
  • 26
  • 44
1 2 3
47
48