singingwolfboy / flask-dance

Doing the OAuth dance with style using Flask, requests, and oauthlib.
https://pypi.python.org/pypi/Flask-Dance/
MIT License
1k stars 157 forks source link

Add OpenStreetMap (OSM) provider #394

Closed mvexel closed 2 years ago

mvexel commented 2 years ago

This adds OpenStreetMap as an OAuth2 provider.

I accidentally created (and then deleted in a later commit) a test application in the root directory. This application contained a client secret, but I deleted the corresponding OAuth2 application on the OpenStreetMap side, so this should not be a security issue.

The only quirk with OSM is that the base_url has a path suffix. This means that requests need to be composed without a leading slash, which may be confusing to users.

singingwolfboy commented 2 years ago

Hi @mvexel, I'm sorry I missed this pull request! I just released version 6.1.0, and I cleaned up this pull request and included it as https://github.com/singingwolfboy/flask-dance/commit/b8430a50aaccba6c361fc88043b44b2b58bde1de. As a result, I'm closing this pull request, since your code has effectively already been merged! Thanks for your contribution ✨