Skip to content

Commit

Permalink
Add openstreetmap2
Browse files Browse the repository at this point in the history
  • Loading branch information
simov committed Nov 4, 2023
1 parent 70e89a5 commit c220e9e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
6 changes: 6 additions & 0 deletions config/oauth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion config/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
Expand Down

0 comments on commit c220e9e

Please sign in to comment.