GithubHelp home page GithubHelp logo

shripadk / authlogic_openid_selector_example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holden/authlogic_openid_selector_example

13.0 13.0 0.0 4.87 MB

Unified login for rails using the Authlogic authentication library, OpenID and the OpenID Javascript Selector (Gmail, Yahoo, etc) and Auto registration (No need to register seperately).

Home Page: http://testingauth.heroku.com/

JavaScript 0.66% Ruby 99.34%

authlogic_openid_selector_example's People

Contributors

binarylogic avatar shripadk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

authlogic_openid_selector_example's Issues

undefined method `email_autoset=' or Column 'email' cannot be null

Hi. Im trying to run your example and have the first error (undefined method `email_autoset=') in my User model. When I changing 'self_email_autoset' to just 'email_autoset' I have another one - 'Column 'email' cannot be null'.

So as I think, In second case my app doesn't get email from OpenID provider (Google in my case) even if provider send it. There is part of the link to which Google redirect me after validating:

&openid.ext1.type.ext0=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.value.ext0=myemail%40gmail.com

As you can see 'openid.ext1.value.ext0' is containing my email.

P.s. Im riding Rails 3.0.3 and Ruby 1.9.2. And Im using both lib files from vendor folder (session.rb and acts_as_authentic.rb).

UPD: I forgot to take your version of "open_id_authentication" (dont know where did you take it, current version of it much differs). So now I have another funny error: "uninitialized constant Rack::OpenID" (Yes, I have "rack-openid" installed)

Question on OAuth & Authlogic

Hi,

Great sample app. It's worked pretty well so far. I noticed one thing though, when I moved from one host (heroku) to another (local machine) and pulled down my DB (all tokens & data in the db) and tried to login, it created a new user (e-mail existed twice now in the users table, different tokens it looked like though). Are the OAuth, via GMail, per-domain? Is OpenID per-domain might be a better question? I'm trying to understand this... It's a bummer that migration lost all my users (fortunately there were only 20-ish).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.