[openstreetmap/openstreetmap-website] Sign in to OSM with Google account for mobile (#1256)

Tommy Buonomo notifications at github.com
Mon Jul 25 09:31:37 UTC 2016


Hello,

I'm a developer for the [OSM Contributor](https://wiki.openstreetmap.org/wiki/OSM_Contributor) App.

I try to log the users to OpenStreetMap using OpenID, and more particulary using their google account. I've already done the half of the work using this request: 
```
https://accounts.google.com/o/oauth2/v2/auth?
response_type=code&
client_id=651529786092-6c5ahcu0tpp95emiec8uibg11asmk34t.apps.googleusercontent.com&
redirect_uri=https://www.openstreetmap.org/auth/google/callback&
scope=openid email&
login_hint=tommy.buonomo at gmail.com&
state=f6fb251c967d4563abee68751ea973c44f5a7d5672fce452
```

After that, i'm logged and I get the `OSM.oauth_token`, 
`OSM.oauth_token_secret`, 
`OSM.oauth_consumer_key`, 
`OSM.oauth_consumer_secret`,
 but I can't ask for the access token without the `oauth_verifier` parameter, which is not in the callback response.

Therefore, there is no API currently for this kind of authentification.

Thank you,

Tommy Buonomo.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1256
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160725/537d22be/attachment.html>


More information about the rails-dev mailing list