[openstreetmap-website] Add support for "login with Facebook" and MS live (#153)

apmon notifications at github.com
Fri Nov 2 15:05:01 GMT 2012


Annoyingly Facebook and MS Live accounts do not implement OpenID which is the correct way to do authentication. Therefore they are not covered by the existing implementation of third party authentication. Imho they are, however, important enough to (reluctantly) warrant some special casing to support them and make it easier for new users to create an OpenStreetMap account.

This implementation uses the OAuth2 standard to retrieve user information from either Facebook or a Windows Live account that can then be used for authentication. It reuses a lot of the openID infrastructure to simplify the code and minimize the special casing.

As it uses OAuth2 and OAuth requires applications to register with the provider, the website needs to be
registered with Facebook and MS Live to use this feature. The oauth app id and app secret are stored
in application.yml

You can merge this Pull Request by running:

  git pull https://github.com/apmon/openstreetmap-website facebook-login

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/153

-- Commit Summary --

  * Add login with facebook and MS live

-- File Changes --

A app/assets/images/facebook.png (0)
A app/assets/images/live.png (0)
M app/controllers/user_controller.rb (171)
M app/views/user/account.html.erb (2)
M app/views/user/login.html.erb (4)
M app/views/user/new.html.erb (2)
M config/example.application.yml (7)
M config/initializers/oauth.rb (1)
M config/locales/en.yml (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/153.patch
https://github.com/openstreetmap/openstreetmap-website/pull/153.diff


---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20121102/0325de46/attachment.html>


More information about the rails-dev mailing list