Questions tagged [authlogic]

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

718 questions
290
votes
37 answers

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I am using Authlogic-Connect for third party logins. After running appropriate migrations, Twitter/Google/yahoo logins seem to work fine but the facebook login throws exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:…
Vikash
  • 2,919
  • 4
  • 17
  • 7
57
votes
3 answers

How to manually create a new user and user session in Devise?

I have a form where I collect a lot of information in Rails. Part of this form is fields for a new user to register. Since Devise has controllers/actions specifically to create a new user, I don't know how to programmatically create a user in an…
Sean Coleman
  • 1,287
  • 2
  • 10
  • 10
42
votes
6 answers

Rails 3 Authentication: Authlogic vs Devise

I have always used Authlogic in Rails 2.3 but now that I am using Rails 3 I think I might try out a new authentication solution. How does Devise compare with Authlogic? What are their differences?
amaseuk
  • 2,147
  • 4
  • 24
  • 43
38
votes
4 answers

Migrating from Authlogic to Devise

I've previously implemented Authlogic for authorization on my site. Now however I wish to switch over to using Devise instead, and I'm wondering if anyone has any experience with this. Perhaps anyone's seen a blog post on the subject? Thank you.
Erik
  • 473
  • 5
  • 6
23
votes
6 answers

Rails 3 authentication with OpenID, Twitter or Facebook

Can you suggest some working example of it? I tried Authlogic and Devise withous success.
user142913
  • 883
  • 1
  • 7
  • 14
17
votes
1 answer

Implicit user creation with Authlogic and Authlogic OAuth plugin

I'm trying to write a simple OAuth consumer app in Rails. I'm using Authlogic for handling authentication and the Authlogic OAuth plugin to do the oauth thing. The oauth plugin provides a couple of helpers to render the sign in button:…
eploko
  • 5,347
  • 2
  • 28
  • 23
16
votes
3 answers

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!
bloudermilk
  • 17,820
  • 15
  • 68
  • 98
14
votes
7 answers

Can't put email address field on login form (Authlogic)

So I have Authlogic working fine with this user_sessions/new view: <% form_for @user_session, :url => user_session_path do |f| %> <% if @user_session.errors.present? %> Invalid username or password <% end %> <%= f.label :login %>
Tom Lehman
  • 85,973
  • 71
  • 200
  • 272
12
votes
4 answers

Application Controller helper methods not available for Views Specs

I have a helper method called current_user in my Application Controller (used with Authlogic). Spec for views using that helper fail (but the view is working when i use the browser) ActionView::Template::Error: undefined local variable or method…
Dorian
  • 2,571
  • 23
  • 33
12
votes
3 answers

authlogic email as username

How do i override/set authlogic to use the email field instead of the username field for both signup and authentication, having a username + an email is occasionally too intense for some some registration scenarios
ADAM
  • 3,903
  • 4
  • 29
  • 45
10
votes
5 answers

Ruby-OpenID: Requiring email-address from OpenID provider

I'm playing with the authlogic-example-app and I'm failing to get the email address from the OpenID provider (in my case: Google and Yahoo) when I register a user, resp. I get an empty response instead of an email address (check the comments in code…
Javier
  • 2,491
  • 4
  • 36
  • 57
10
votes
4 answers

Ruby on Rails: Best way to add Facebook login, Twitter login, OpenID login, etc

I'm currently running on a Ruby on Rails app with Authlogic handling my authentication and user management. I'm struggling to find up to date information on the best way to add 3rd party login methods to my site, supplementing the standard sign up…
William Jones
  • 18,089
  • 17
  • 63
  • 98
10
votes
4 answers

Rails, OpenID and Authlogic

I've been following ryan baytes screencast #170 and adding ruby-openid, authlogic and authlogic-oid to an existing authlogic authentication system. However, I keep getting the following stack of errors: NameError (uninitialized constant…
cnikolaou
  • 3,782
  • 4
  • 25
  • 32
10
votes
2 answers

Authlogic openid with multiple openid identifiers per account

How would you go about allowing a user to log in with multiple openid accounts and optionally a password, using authlogic?
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
10
votes
9 answers

Integration testing with Authlogic?

For the life of me I don't understand why Authlogic isn't logging me in in this integration test. I haven't had any problems w/ Authlogic logging me in in functional tests using this code. According to the authlogic rdocs…
kareem
  • 690
  • 1
  • 9
  • 20
1
2 3
47 48