authlogic

Different Access token every time - using Google OAuth and Authlogic

Greetings! I have some troubles enabling OAuth authentication for my web application running on Ruby on Rails. I am using authlogic and authlogic_oauth and that is, in the end, using OAuth gem and therefore I decided to ask here. So shortly: I succesfully "register" (i.e. obtain the first Access Token for the user) but then, whenever I...

Saving User Registering with Authlogic and OpenID

I'm using Authlogic to for my user authentication and want to offer our users the option of registering with a traditional user name/password or OpenID and/or Facebook Connect. The problem I'm running into is that I need to save some additional user attributes that are not part of my User model. All that information is lost when the us...

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 authlogic/sinatra example? Thanks in advance. ...

Using custom authlogic error messages

I am using the authlogic gem for user validation on one of my sites. All is going well, but I am wondering if it's possible to change the error message that gets returned when the user types in an invalid email address. Thanks! ...

Approach to limit the visibility of data

Ok, suppose to have this db schema (relation): |User | (1-->n) |Customer | (1-->n) |Car | (1-->n) |Support | |--------| |---------| |-----| |-----------| |id | | user_id | |Brand| |Description| |username| |lastname | |PS | |Cost | |password| ...

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 device. How can I skip email validation with Authlogic in Rails? ...

Authlogic/OpenID Authentication Fails Using Warp Drive

Warp Drive is a nice way to package an entire Rails application into a Gem for use in other Rails applications. I've gotten Warp Drive to work for a blogging engine I'm creating. There's just one problem - Authlogic OpenID authentication fails. I created a bare-bones OpenID example application. I can compile to a gem with no problems: ...

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 I do that? ...

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 suggestions? ...

Authlogic throwing errors on Heroku

Yes, I've read this. This is what I'm getting in my production.log: ActionView::TemplateError (undefined method `password' for #<User:0x2b0ddb58cdc0>) on line #11 of app/views/users/new.html.erb: 8: </p> 9: <p> 10: <%= f.label :password, "Password:" %><br /> 11: <%= f.password_field :password %> 12: ...

Authenticate users by Customer, Login and Password with Authlogic

I've got a typical Authlogic setup that I need to enhance to require Customer ID in addition to Login and Password. I've read a bit about using a custom find method and another about using a global variable for accessing the additional parameter and a third referring to documentation about using scopes that doesn't seem to exist. Seems...

Authlogic:facebook connect - error undefined local variable or method

Hi, I'm trying to integrate facebook connect to authlogic which is working fine with OAuth twitter. I get this error right after putting the button to the login form. undefined local variable or method `authlogic_facebook_login_button' Does anyone here know what the issue is? I already restarted the server after installing the plugin...

How secure are Authlogic passwords?

I'm planning to make the database of a Rails project available for download publicly. This database contains an Authlogic users table, with crypted_password and password_salt fields. How securely are these passwords stored... is it safe to make them available publicly this way? Or should I look at implementing another authentication syst...

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 user in. Current controller: def create @account = Account.new(params[:account]) if ...

authlogic - cause for unsuccessful session creation and no error messages (with formtastic)

Hi, I have 2 questions about authlogic: 1 - how to get cause of unsuccessful session creation (for example - not confirmed, blocked, wrong pass etc) to use it in app logic (route to another page for confimation, or re-enter pass etc)? 2 - question about integration formtastic and authlogic. How to show error messages on session creatio...

Using Authlogic with a User model that isn't called "User"

I have an application that tracks people, but all those people are, possibly, users of the product. I'd rather have the model called Person (rather than User), but can't seem to figure out how to indicate to Authlogic that I'm using Person instead of User. I'm sure it's somewhere obvious that I'm just not seeing, but I've been pouring o...

Add Profile Information to Authlogic in in Ruby on Rails

Hey guys, I'm new to Ruby and I've been playing around with making some webapps with it and I find it totally awesome. I just recently configured Authlogic to perform authentication within my app and next I would like to create a table that stores user profile information such as address, zip, phone, etc. and then later display some of...

Rails: Limiting daily user login count by IP address?

Is there any way to limit a user's login access to only, say, 5 IP addresses daily? Such that if a user account tried to login in the same day from a 6th different IP address, they would be denied. I would like this restriction to reset at the end of the day, however. If Authlogic doesn't provide a way to track this out of the box, what...

Rails, page does not be rendered(just empty page) even though view and controller exist.

I'm following this article.(http://asciicasts.com/episodes/160-authlogic), I'm not using nifty generator tho. I've done with User model and 'localhost:3000/users/new' page works find. But 'localhost:3000/user_sessions/new' page does not work as I expected. I've just copied the source from the site. routes.rb map.login 'login', :contr...

Are there any authentication plugins that work with DataMapper?

I'm in need of an authentication method that works with DataMapper. I can see that the authlogic plugin requires the fields crypted_password, password_salt, persistence_token in the User model. Is it enough to just add these fields to the User model definition using DataMapper? ...