oa-google-openid
This is an Omniauth’s open_id stretegy with the identifier name setted to ‘www.google.com/accounts/o8/id’
You can use it as:
provider :google_open_id
Why?
Why don’t just use ‘open_id’ strategy with the specified name and the identifier?
Because Devise, that I like to use, saves providers into the hash with the strategie’s name as a key and you can’t use two strategies with the same name in the application. Devise remember the last one only.
Example:
config.omniauth :open_id, OpenID::Store::Filesystem.new('/tmp')
config.omniauth :open_id, nil, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
Devise forgets about first :open_id and remember the last one with google’s identifier only.
Now it’s easy to fix:
config.omniauth :open_id, OpenID::Store::Filesystem.new('/tmp')
config.omniauth :google_open_id
There is now such problem when use Omniauth directly without Devise.
Note on Patches/Pull Requests
-
Fork the project.
-
Make your feature addition or bug fix.
-
Add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
-
Send me a pull request. Bonus points for topic branches.
Copyright
Copyright © 2010 Danil Pismenny. See LICENSE for details.