authlogic

Rails authlogic disable_perishable_token_maintenance

I set disable_perishable_token_maintenance(true) in my User model. If I want to create a user, I have to set perishable_token column default value to '' in my users database table. My question is: Is it safe to have empty perishable_token columns? What would you do to make things more secure? ...

Authlogic LDAP : encrypt communication

Hi, 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 ...

Rails Authlogic authentication method

Within Authlogic, is there a way that I can add conditions to the authentication method? I know by using the find_by_login_method I can specify another method to use, but when I use this I need to pass another parameter since the find_by_login_method method only passes the parameter that is deemed the 'login_field'. What I need to do i...

HTTP Basic authentication using Authlogic or authenticate_or_request_with_http_basic for API call?

I have a Rails 2.3.x app that implements the act_as_authentic in User model and a UserSession model as per Authlogic Github example. I am implementing an API to allow access from iPhone. Will be using HTTP Basic authentication via https (will not implement single access token). Each API call requires a username/password for the access. ...

User permission check steps in CakePHP

I want to understand the sequence of steps how it is verified that a user has permission to particular application page ('Acl', 'Auth', 'Security' components are used). For example, a visitor clicks a link on another site that directs him to my application. What is the sequence of steps that my application does to verify that this user h...

Rails 3 authetication with OpenID, Twitter or Facebook

Can you suggest some working example of it? I tried Authlogic and Devise withous success. ...

Authlogic - current_user or @current_user?

Hey, please help me to understand something. In Authlogic example in UsersController it's always used @current_user, so for instance: def show @user = @current_user end (taken from http://github.com/binarylogic/authlogic_example/blob/master/app/controllers/users_controller.rb) Why is that? In my controllers I use just current_user...

Modifying records in my migration throws an authlogic error

I'm adding some columns to one of my database tables, and then populating those columns: def self.up add_column :contacts, :business_id, :integer add_column :contacts, :business_type, :string Contact.reset_column_information Contact.all.each do |contact| contact.update_attributes(:business_id => contact.client_id, :business...

Any working tutorials for Authlogic?

I've been trying to build my first rails app and have gotten stuck on the issue of user authentication. I've found a number of tutorials for using various plug-ins to do this, but so far every single one of them is out-dated, and as a result, broken! From what I've read, I think Authlogic may be the best fit for me, and I've tried two ...

How to build an easy Rails authentication with OpenID and OAuth1.0a-2.0?

Hi, I'am looking for an easy authentication for my users mostly via facebook, but keeping OpenID and other OAuth alternatives as well. For the case if something will go very bad, I will ask my users to optionally provide their email address, which should be obtained via OpenID or OAuth if possible. The same thing is about their name. I ...

Hobo with authlogic user session problem

Just a day into hobo now I think it's great but got a small problem. User session are running with hobo, can't get current_user. I can login in to my site as normal without adding the line session[:user] = user.typed_id def create @user_session = UserSession.new(params[:user_session]) session[:user] = user.typed_id if...

What are people's opinions vis-a-vis my choice of authorization plugins?

I'm slowly but surely putting together my first rails app (first web-app of any kind in fact - I'm not really a programmer) and it's time to set up a user registration/login system. The nature of my app is such that each user will be completely separated from each other user (except for admin roles). When users log in they will have thei...

Rails - ACL9 caching in session

Hey, I implemented authentication with Authlogic and authorization with Acl9. Now I'm trying to avoid multiple hits to database to check if user is admin by keeping this in the session. What I thought is that this code should work: class ApplicationController < ActionController::Base ... helper_method :current_user_session, :curre...

Trouble with authlogic_rpx

Hi, I'm trying to run http://github.com/tardate/rails-authlogic-rpx-sample (only rails version was changed) but get error message http://gist.github.com/385696, when RPX returns information after successful authentication via Google Account. What is wrong here? And how I can fix it? The code was successfully tested with rails 2.3.3 by i...

Authlogic admin subsite

Following this tutorial getting the following errors: NameError in Admin/dashboardsController#show uninitialized constant Admin::DashboardsController NameError in Admin sessionController#new uninitialized constant Admin::AdminHelper not sure how to correct this! ...

Problem with user login validation by authlogic

Hi, I want to use email for signing in, and to allow users to have similar names. One way to do this is to rename login/username field to something different. However, I would prefer to do it just by authlogic settings. I tried the following acts_as_authentic do |c| c.login_field :email c.validate_login_field false c.valida...

Rails authlogic : How to make Levels?

Hello, i followed this tutorial fo setting Autlogic up properly. So, my site needs a form of level, like "Admin", "Moderator", "User", "Guest". So Admins can do everything, where Moderators may not can make site changes. And Users can't destroy, Update or Create. I've have googled a bit.. But nothing found, so i thought you guys might ...

Authlogic Facebook Connect and cucumber

I added the authlogic_facebook_connect plugin to my project and I'm now having problem running my cucumber test because of a NoMethodError. undefined method `set_facebook_session' for nil:NilClass (NoMethodError) In authlogic_facebook_connect/Session.rb the method "authenticating_with_facebook_connect?" is called as some sort of callb...

declarative_authorization and /authorization_rules access problem

Hi, i have configured to use authlogic and declarative_authorization and configured authorization_rules.rb. All is fine but on attemp to access localhost/authorization_rules i see "You are not allowed to access this action.". I've added has_permission_on :authorization_rules, :to => [:index, :show] but nothing changed :( In logs i se...

Ruby on Rails: How can I authenticate different user types from one place?

Hi everyone! This is my first post on Stack Overflow. I am trying to build a system that authenticates three types of user with completely different site experiences: Customers, Employers, and Vendors. I'm thinking of using a polymorphic 'User' table (using AuthLogic) with username, password, and user_type (+ AuthLogic's other required...