Questions tagged [authlogic]

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

718 questions
4
votes
2 answers

Ruby on Rails: how can I store additional data in the session for authlogic

I'm using Authlogic to authenticate users. I understand how to create and use sessions, but want to store an additional id variable in the current_user session created by authlogic. Can I just do something like this: session[:authlogic_sess_name] =…
djburdick
  • 11,762
  • 9
  • 46
  • 64
4
votes
3 answers

Specify Cookie Domain in Authlogic When Session Is Created

Is it possible to set the cookie domain to something other than the current domain when a session is created with Authlogic? When a new account is created from our signup domain, I'd like to redirect the user to their subdomain account and log the…
bensie
  • 5,373
  • 1
  • 31
  • 34
4
votes
2 answers

How can I skip email validation with Authlogic in Rails?

I use Authlogic for authentication in my Rails project. It provide default validation for email and login field. But, I want to allow email to be null for join because my service is for mobile and it is difficult to insert email field in mobile…
Jaehyun
  • 445
  • 7
  • 17
4
votes
2 answers

Authlogic with sinatra?

I couldn't find resources on how to use authlogic with sinatra. Or at least no documentation about a canonical way to do authentication with authlogic ... Anyone has pointers to some tutorials, sample code or can sketch out a minimal…
miku
  • 181,842
  • 47
  • 306
  • 310
4
votes
4 answers

changing password with authlogic - validation not catching blank inputs

I am trying to create a form to allow users to change their password: View: - form_tag change_password_users_path do = error_messages_for :user, :header_message => "Please Try Again", :message => "We had some problems updating your account" …
doctororange
  • 11,670
  • 12
  • 42
  • 58
4
votes
2 answers

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka's version of authlogic_openid which I found on Github since pelle's original addition of the feature seemed to cause issues. http://github.com/gaizka/authlogic_openid using authlogic to…
holden
  • 13,471
  • 22
  • 98
  • 160
4
votes
2 answers

extending email confirmation to Authlogic

I recently implemented Authlogic to my project for authentication. I followed http://railscasts.com/episodes/160-authlogic and had it up and running. Wanting to add email confirmation, I found this and followed it:…
asdfasdfasdfasdf
  • 462
  • 5
  • 17
4
votes
4 answers

prepopulating admin user in database with authlogic rails plugin

I've been using the Authlogic rails plugin. Really all I am using it for is to have one admin user who can edit the site. It's not a site where people sign up accounts. I'm going to end up making the create user method restricted by an already…
V_H
  • 1,793
  • 3
  • 34
  • 59
4
votes
4 answers

Ruby on Rails Authlogic password not valid

I am trying to implement Authlogic. Registering is fine, it enters all the necessary details into my database.. .. but when I try to log in, it gives me the error: 1 error prohibited this user session from being saved There were problems with the…
irl_irl
  • 3,785
  • 9
  • 49
  • 60
4
votes
5 answers

Rails Cucumber Testing With a LDAP Server

I am trying to write some cucumber tests for my application that uses Authlogic for authentication, but actually stores users in a LDAP server. The application seems to work fine, but where I am running into trouble is writing tests for it (I know,…
Dan McNevin
  • 22,278
  • 5
  • 35
  • 28
4
votes
4 answers

Authlogic and Roles

I am developing an application which users authlogic for authentication. I would like some way of giving users roles so that I can authorize certain actions to certain roles. Is there an 'out of the box' gem or plugin that suits this or would I be…
user138095
4
votes
1 answer

Rails - minitest - Testing pages that require login

I am working on tests but running in to a road block on pages that require a current_user. I am using minitest, capybara, factorygirl, and authlogic, in rails 3.2.9 with ruby 1.9.3p327. I installed minitest as a separate gem, and seem to have the…
hellion
  • 4,602
  • 6
  • 38
  • 77
4
votes
5 answers

undefined method 'add_acts_as_authentic_module'

i've added code config.gem "authlogic-oauth", :lib => "authlogic_oauth" to the environment.rb file in my app and got error undefined method 'add_acts_as_authentic_module' for ActiveRecord::Base::Class is there any solution to solve it?
Alexey Poimtsev
  • 2,845
  • 3
  • 35
  • 63
4
votes
4 answers

Protecting Content with AuthLogic

I know this sounds like a really, really simple use case and I'm hoping that it is, but I swear I've looked all over the place and haven't found any mention of any way - not even the best way - of doing this. I'm brand-spanking new to Ruby, Rails…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
4
votes
2 answers

Rails 3 with Authlogic and calling reset_session

The RoR Security Guide states that you should "issue a new session identifier and declare the old one invalid after a successful login" using the reset_session method to counter session fixation. I haven't been able to find any guidance on calling…