-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth 2 support #2401
Comments
See also openstreetmap/operations#867 |
Candidate OAuth 2 implementations https://github.com/openid/AppAuth-Android https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/master/ https://github.com/dmfs/oauth2-essentials https://github.com/scribejava/scribejava The later two seem the most likely candidates as they seem to provide at least some http client independence. |
For StreetComplete, I implemented it myself. Half of it is the fragment that shows the web view etc. anyway, and it is really not that much (perhaps 300 source lines of code). The full OAuth 2 spec is quite large and offers quite some different authorization flows plus a ton of optional extra-features but OSM just uses the (recommended) authorization-code grant type and almost no extra-features. Here is some info in case you decide to implement it yourself, too: Authorize requestsAdd the request header Get the access tokenBasic steps in a nutshell
Details (OAuth 2 Specification)
Implementations(For me it is easier to read code than to read specification to understand...) StreetComplete
(Pull request that replaced OAuth 1.0a with OAuth 2.0: streetcomplete/StreetComplete#5383) JOSM
|
This adds a minimal implementation of OAuth 2 as that works (likely only) with the current OpenStreetMap API. Fixes #2401
This adds a minimal implementation of OAuth 2 as that works (likely only) with the current OpenStreetMap API. Fixes #2401
This adds a minimal implementation of OAuth 2 that works (likely only) with the current OpenStreetMap API. Fixes #2401
This adds a minimal implementation of OAuth 2 that works (likely only) with the current OpenStreetMap API. Fixes #2401
No description provided.
The text was updated successfully, but these errors were encountered: