From c220e9ef812978608a4c05551b3f241e3e9da249 Mon Sep 17 00:00:00 2001 From: simov Date: Sat, 4 Nov 2023 10:15:09 +0200 Subject: [PATCH] Add openstreetmap2 --- README.md | 16 ++++++++++++++++ config/oauth.json | 6 ++++++ config/profile.json | 5 ++++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ab3a93..6c76262 100644 --- a/README.md +++ b/README.md @@ -1121,6 +1121,22 @@ Mastodon requires the entire domain of your server to be embedded in the OAuth U ``` +> **Openstreetmap** + + +Openstreetmap OAuth 2.0 applications have to use the `openstreetmap2` provider: + +```json +"openstreetmap2": { + "state": true, + "scope": [ + "openid", + "read_prefs" + ] +} +``` + + > **SurveyMonkey** Set your Mashery user name as `key` and your application key as `api_key`: diff --git a/config/oauth.json b/config/oauth.json index 54afd00..c9504c7 100644 --- a/config/oauth.json +++ b/config/oauth.json @@ -713,6 +713,12 @@ "access_url": "https://www.openstreetmap.org/oauth/access_token", "oauth": 1 }, + "openstreetmap2": { + "authorize_url": "https://www.openstreetmap.org/oauth2/authorize", + "access_url": "https://www.openstreetmap.org/oauth2/token", + "oauth": 2, + "scope_delimiter": " " + }, "optimizely": { "authorize_url": "https://app.optimizely.com/oauth2/authorize", "access_url": "https://app.optimizely.com/oauth2/token", diff --git a/config/profile.json b/config/profile.json index c5956c1..4a7e578 100644 --- a/config/profile.json +++ b/config/profile.json @@ -384,7 +384,10 @@ "profile_url": "" }, "openstreetmap": { - "profile_url": "http://api.openstreetmap.org/api/0.6/user/details" + "profile_url": "https://api.openstreetmap.org/api/0.6/user/details.json" + }, + "openstreetmap2": { + "profile_url": "https://api.openstreetmap.org/api/0.6/user/details.json" }, "optimizely": { "profile_url": ""