Questions tagged [authlogic]

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

718 questions
3
votes
1 answer

Authlogic LDAP : encrypt communication

I have a rails app with authlogic and LDAP, but my problem is i can see all the users password on the log file, is there something to fix to encrypt those passwords. For ldap i use :encryption simple_TLS Thanks for your help
user146297
  • 57
  • 2
  • 6
3
votes
1 answer

Authlogic and functional tests - Authlogic::Session::Activation::NotActivatedError: You must activate

Im getting the errors below despite following the documentation. In test_helper.rb ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require "authlogic/test_case" require 'test_help' require…
robodisco
  • 4,162
  • 7
  • 34
  • 48
3
votes
1 answer

Facebook Cucumber testing with Authlogic - how test user logged in as facebook user?

I'm having trouble implementing this step: Given "I am logged in as a Facebook user" do end The best suggestions I can find on the web (http://opensoul.org/2009/3/6/testing-facebook-with-cucumber) do not seem to be using Authlogic for…
rhh
  • 1,968
  • 3
  • 15
  • 13
3
votes
1 answer

Using Administration Dashboard with Declarative Authorization and Authlogic?

I use Declarative Authorization and Authlogic and now wants to create a dashboard for the administration. About ActiveScaffold will be an overview of the different controllers are shown. However, I have the problem that I can admin no "admin rights"…
3
votes
3 answers

Problem with sessions, subdomains and authlogic in Rails

I've got a rails app with authlogic authentication and a username.domain.com structure built with subdomain-fu. But my session breaks when going from domain.com to username.domain.com. I've tried to add config.action_controller.session = {:domain =>…
Alfred
  • 7,071
  • 4
  • 27
  • 35
3
votes
0 answers

AuthLogic gem - how to destroy all sessions?

I am using the AuthLogic gem in my ruby app (not rails). this gem can manage multiple sessions for same user, but, if i want to block a user from my app, i want to invalidate all his sessions from backend. currently i can destroy the session only…
Dima
  • 8,586
  • 4
  • 28
  • 57
3
votes
2 answers

Rails: Basic Authentication with Authlogic

I'm using Authlogic and I would like to implement Basic HTTP Authentication in my controller so I could define which action requires authentication. I know how to do Basic HTTP Authentication authenticate_or_request_with_http_basic an…
xpepermint
  • 35,055
  • 30
  • 109
  • 163
3
votes
2 answers

authlogic argument out of range on login

I'm updating from Rails 3.2 to 4. When The user authenticate, that rise an error "argument out of range" on the @user_session.save def create @user_session = UserSession.new(params[:user_session]) if @user_session.save flash[:notice] =…
Rufilix
  • 253
  • 3
  • 22
3
votes
2 answers

Authlogic Help! Registering a new user when currently logged-in as a user not working

Just as a disclaimer I am new to rails and programming in general so apologize for misunderstanding something obvious. I have Authlogic with activation up and running. So for my site I would like my users who are logged in to be able to register…
looloobs
  • 761
  • 2
  • 11
  • 24
3
votes
1 answer

Bizarre authlogic issue only in Production

Context: A rails app with authlogic for sigup and login Setup info: Rails 2.3.2 A controller called posts with an action 'show'. Upon login, I display the posts/index page. and when the user clicks on an item, item's details get displayed. Fairly…
user16455
  • 267
  • 1
  • 5
  • 14
3
votes
1 answer

Custom validation messages for Session model in Authlogic

What's the best way to override validation messages for login/password in the Session model in Authlogic? In the User model Authlogic provides the merge_ methods to override validation options, but Session does not have anything like that. Any…
cotopaxi
  • 897
  • 1
  • 11
  • 19
3
votes
4 answers

How can I make password optional when using authlogic and LDAP authentication?

I am creating an application for which I am trying to use LDAP with authlogic for login authentication. I want to accept just the username and log the user in if he is on the LDAP server. For this, I need to disable the password validation. How can…
chetu
  • 245
  • 3
  • 15
3
votes
2 answers

Authlogic - Authentication via basic HTTP authentication

I want to use "authenticate_ with_ http_ basic" but I just can not get it working. In my RoR app Authlogic is working fine and I'm using User Sessions for that. While keeping that method as it is now i need to use authenticate_with_http_basic.I…
randika
  • 1,519
  • 3
  • 18
  • 39
3
votes
1 answer

Authlogic throws errors on Heroku

I am trying to stage an app on Heroku that uses the Authlogic plugin. The Logs show me this error. I first thought there is a problem with the gem version, but I tried several: 2.1.1, 2.1.2, 2.1.3. But I tried deploying the authlogic example but it…
Silviu Postavaru
  • 1,784
  • 4
  • 15
  • 19
3
votes
2 answers

authlogic openid auto_register feature tries to duplicate registration

I am trying to enable openid authentication on my website as well as use auto_register feature of latest authlogic_openid add-on. Everything works fine until second login. The first time user is created and logged in, but after I logout and try…
Eimantas
  • 48,927
  • 17
  • 132
  • 168