Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 458107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:38:18+00:00 2026-05-12T22:38:18+00:00

I have auto registration working with authlogic using gaizka’s version of authlogic_openid which I

  • 0

I have auto registration working with authlogic using gaizka’s version of authlogic_openid which I found on Github since pelle’s original addition of the feature seemed to cause issues.

http://github.com/gaizka/authlogic_openid

using authlogic to auto create users bypassing explicit user registeration

This one works fine however when using the auto_register feature it ignores my options for authlogic such as retrieving the email from the openid provider… any ideas what I’m doing wrong?

Hhere’s the example:

http://big-glow-mama.heroku.com/

http://github.com/holden/authlogic_openid_selector_example/tree/with-facebook/

You can see the difference if you register vs. login…

#user.rb
class User < ActiveRecord::Base
  acts_as_authentic do |c| 
    c.validate_login_field = false
    # optional, but if a user registers by openid, he should at least share his email-address with the app
    c.validate_email_field = false
    # fetch email by ax
    c.openid_required_fields = [:email,"http://axschema.org/contact/email"]
    #c.required_fields = ["http://axschema.org/contact/email"]
    # fetch email by sreg
    #c.optional_fields = ["email"]
  end

  #private method to deal with emails goes here

end


#UserSession.rb
class UserSession < Authlogic::Session::Base
  auto_register
  logout_on_timeout true
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:38:18+00:00Added an answer on May 12, 2026 at 10:38 pm

    This one works fine however when using the auto_register feature it ignores my options for authlogic such as retrieving the email from the openid provider… any ideas what I’m doing wrong?

    The code that handles auto-registration lives in the authlogic_openid’s Session module. The code that handles registration (retrieving email form provider, etc), lives in ActsAsAuthentic module.

    The first is handling a UserSession object, the latter is handling a User object.

    I’ll take a look in a couple of days, to see what can be done to merge both behaviours.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some auto-instantiation code which I would like to apply to about 15
I am using gridView. I have 4 auto generated columns and 1 generated by
I'm working on databases that have moving tables auto-generated by some obscure tools. By
I have a custom user registration form at: somepath/register using hook form alter. I
I have a 3-part registration form using PHP: page 1 : collects info -
I have auto indentation turned on in my .vimrc file set autoindent which moves
I want to have auto-generated version number in format of 'x.x.x' or something similar
I have been using the auto generated facebook app-id for some time in my
I have auto complete for a JCombobox working by following this article: http://today.java.net/pub/a/today/2007/07/19/adding-auto-completion-to-swing-comboboxes.html I
We have an auto-complete list that's populated when an you send an email to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.