| 1 |
OAuth 2.0 |
| 2 |
--------- |
| 3 |
|
| 4 |
This section documents OAuth 2.0 specifics that are shared across all OAuth 2.0 |
| 5 |
based providers, including (but not limited to): |
| 6 |
|
| 7 |
- :doc:`google` |
| 8 |
- :doc:`tumblr_oauth2` |
| 9 |
- :doc:`twitter_oauth2` |
| 10 |
- :doc:`vimeo_oauth2` |
| 11 |
- :doc:`openid_connect` |
| 12 |
- :doc:`keycloak` |
| 13 |
|
| 14 |
.. _oauth2-authorization-request-parameters: |
| 15 |
|
| 16 |
Authorization Request Parameters |
| 17 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 18 |
|
| 19 |
Optional parameters can be provided as a dictionary under the key ``auth_params``. |
| 20 |
|
| 21 |
.. attention:: |
| 22 |
|
| 23 |
Some providers might not support each of these parameters. |
| 24 |
|
| 25 |
.. code-block:: python |
| 26 |
|
| 27 |
SOCIALACCOUNT_PROVIDERS = { |
| 28 |
"<oauth2 based provider>": { |
| 29 |
"APPS": [ |
| 30 |
{ |
| 31 |
"provider_id": "my-server", |
| 32 |
"name": "My Login Server", |
| 33 |
"client_id": "your.service.id", |
| 34 |
"secret": "your.service.secret", |
| 35 |
"settings": { |
| 36 |
"server_url": "https://my.server.example.com", |
| 37 |
"auth_params": { |
| 38 |
"prompt": "login", |
| 39 |
} |
| 40 |
}, |
| 41 |
}, |
| 42 |
] |
| 43 |
} |
| 44 |
} |
| 45 |
|
| 46 |
This configuration example will tell the provider instance, ``My Login Server``, |
| 47 |
to prompt the user for reauthentication. |