-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openid_connect): Allow non-standard .well-known/ URL
- Loading branch information
Showing
3 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
OpenStreetMap | ||
------------- | ||
|
||
Register your client application under `My Settings`/`oauth settings`: | ||
The builtin OpenStreetMap provider is using the now deprecated OAuth 1.0 | ||
protocol. You can no longer create OAuth 1.0 clients, meaning this provider is | ||
there for legacy reasons only. | ||
|
||
https://www.openstreetmap.org/user/{Display Name}/oauth_clients | ||
In order to make use of the new OSM OAuth 2.0 protocol, you can simply configure an OpenID Connect app. | ||
|
||
In this page you will get your key and secret | ||
First, register your client application here: https://www.openstreetmap.org/oauth2/applications | ||
|
||
For more information: | ||
OpenStreetMap OAuth documentation: https://wiki.openstreetmap.org/wiki/OAuth | ||
Then, configure the settings (or, setup a ``SocialApp``) using the client ID/secret you received while registering the application: | ||
|
||
.. code-block:: python | ||
SOCIALACCOUNT_PROVIDERS = { | ||
"openid_connect": { | ||
"APPS": [ | ||
{ | ||
"provider_id": "openstreetmap", | ||
"name": "OpenStreetMap", | ||
"client_id": "<insert-id>", | ||
"secret": "<insert-secret>", | ||
"settings": { | ||
"server_url": "https://www.openstreetmap.org/.well-known/oauth-authorization-server", | ||
"scope": ["openid", "read_prefs"], | ||
}, | ||
}, | ||
] | ||
}, | ||
}, | ||
For more information, consult the OpenStreetMap OAuth documentation: https://wiki.openstreetmap.org/wiki/OAuth |