authlogic

authlogic shared session

Hi, all. I have shared between 2 sites ActiveRecord Session Store. On the first i've created UserSession object. Is there any way to restore UserSession on the second if i know session_id? ...

using authlogic to auto create users bypassing explicit user registeration

Hello, I'm wondering how to go about using Authlogic to auto register a user who chooses to use open id. Right now they have to register first before being able to login in, even if they choose open id, but I'd prefer if they could just login directly provided I get all the necessary details from the open id provider. But I'm not sure ...

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 throws the same error. Thank you for your time. Processing UserSessionsController#new (...

Authlogic Password is not valid error

I'm getting a similar error to this post http://stackoverflow.com/questions/1475128/ruby-on-rails-authlogic-password-not-valid "Password is not valid" which never seemed to be resolved in the script/console if I create a new user: myval = "[email protected]" u = User.create(:email => myval, :password => myval, :password_confirmation => m...

Ruby on Rails User Setup

Currently, I have a 6-model ruby on rails application, that I added authlogic to. The overall setup is User :has_many categories, topics,messages Categories has_many topics, Topics has_many messages (With and the corresponding opposite belongs_to links). When I try to access current_user.categories.find(2), no results are returned i...

Rails Authorization Plugin Error

I'm trying to get the permit method to work using the rails-authorization-plugin and authlogic, and I keep running into this error: When I try: class ApplicationController < ActionController::Base ... before_filter permit 'admin' ... I get this: Authorization::CannotObtainUserObject in HomeController#index Couldn't find #curre...

The Authlogic record method. What does this do

I came across this method called record that Ryan bates uses in his authlogic Railscast and can't seem to understand what it does. I have been through the documentation but I can't seem to follow how that helper is useful. def current_user return @current_user if defined?(@current_user) current_user_session && current_user_session....

authlogic crashes with infinite recursion

Hello, I have some trouble with using authlogic in my rails app, so I began using the blank example from github.com/binarylogic/authlogic_example which doesn't work either. I spent a day installing ruby 1.9.1 and 1.8 and jruby1.8, neither did work. The fun thing is that another rails app worked on my server. That said, I just cannot se...

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 logged in user, but of course, when I clear the DB I can't create a user, so I have to prepopul...

Rails: Create Default root user through migration? Rake task?

I'm testing my app out on Heroku (which is f***ing amazing!) and I realized that I have no way of creating my root user. I'm using Authlogic and rails_authorization_plugin. Is there someway I can add a section to one of my migration files to add this user and assign it the role of root? Or can I do this through a rake task? Any insigh...

authlogic openid + recaptcha + confirmed?

Hi all. Could you show me live code examples of integration authlogic-openid and recaptcha? I want to prevent users from registering using they own openid-servers to create multiple accounts and use it for spam. Also could you help me plz to understand - how to check confirmed? field on creation UserSession for openid registered users?...

getting comatose working with authlogic

I started using comatose to handle content on my site but am having problems using it with my existing authentication using a generic Authlogic config. In the readme he sites an example for configuring it with Restful Authentication and I'm wondering how I would do the same within a general Authlogic setup? #environment.rb Com...

Authlogic - Authentication via basic HTTP authentication

Hello everyone, 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 have a iPhone SDK app and now I need to fetch some products from my webapp a...

Generate an new user programatically (Auth Logic)

Hi, I'm quite new to Ruby on Rails so please bear with me :) I'm processing an imported .csv file in Rails and I want to programatically create new users (I'm using the AuthLogic Gem along with Role Requirement), So Far I'm using: Example Line: [email protected], Steve, Jobs, 555-APPLE Code: def new_user(line) params = ...

Authlogic and HTTP digest auth

I'm trying to find a solution to add HTTP digest auth to a site that uses Authlogic. Authlogic itself only supports HTTP simple auth. I'm googling and googling and can't find any ready solution or even an outline. ...

Multiple applications using Authlogic, authenticating users in one database?

I've seen the question asked a few times on the Google groups but no one seems to follow-up with an answer or solution.. Is it possible to use a central database for User creation and authentication from multiple Rails applications using Authlogic? It isn't an option for me to use OpenID right now, I'd love to but my client does not su...

Authlogic Facebook Connect/Twitter oAuth helper issues

I am a complete newbie to the world of Ruby & Rails moving from the land of PHP & Symfony. I'm currently attempting to setup the Facebook Connect plugin & Twitter oAuth for authlogic. Authlogic works no problem but both of the others fail when I attempt to call their buttons- can someone tell me where I'm going wrong? I've put the stack ...

Integration Testing Authlogic before_filter :require_admin_user Problem

I'm not able to access urls in my integration test that require an admin user despite creating an admin user session. My test fails on a 302 error. class NewsItemsController < ApplicationController before_filter :require_admin_user, :except => [:show, :index, :feed] etc... end --test/inetgration/admin_stories.rb -- require '...

Authlogic changing users password does not update the crypted_password. (Not Reset Password)

When I try to change password I see that authologic ignores the values in the password and password_confirmation fields (which store the values for the new password and its confirmation) and simply saves the form. However it updates my crypted_password with the new password value when i work on the console. The API has a method called v...

How can I spec out an authlogic sessions controller using using a stub?

I want to test my User Session Controller testing that a user session is first built then saved. My UserSession class looks like this: class UserSession < Authlogic::Session::Base end The create method of my UserSessionsController looks like this: def create @user_session = UserSession.new(params[:user_session]) if @user_sess...