From cca6d8b54c065d3e0cc7f351c584215c2c9c84e7 Mon Sep 17 00:00:00 2001 From: polyccon Date: Thu, 1 Jun 2023 13:33:43 +0100 Subject: [PATCH 1/2] Adds OIDC_USERNAME_ALGO to the documentation --- docs/settings.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/settings.rst b/docs/settings.rst index fbbc54f2..8e2a9faa 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -101,6 +101,13 @@ of ``mozilla-django-oidc``. Enables or disables automatic user creation during authentication + .. py:attribute:: OIDC_USERNAME_ALGO + + :default: ``None`` + + It enables using a custom method to generate the django username from the user's + email and OIDC claims. + .. py:attribute:: OIDC_STATE_SIZE :default: ``32`` From c8bee0c0856a6dffbe1bde270bb65283a7714987 Mon Sep 17 00:00:00 2001 From: erosert <47104514+EduardRosert@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:40:02 +0100 Subject: [PATCH 2/2] fixed formatting for OIDC_TIMEOUT docs --- docs/settings.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index 8e2a9faa..b0aa7e09 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -71,11 +71,11 @@ of ``mozilla-django-oidc``. :default: ``None`` - Defines a timeout for all requests to the OpenID Connect provider (fetch JWS, - retrieve JWT tokens, Userinfo Endpoint). The default is set to `None` which means - the library will wait indefinitely. The time can be defined as seconds (integer). - More information about possible configuration values, see Python `requests`: - https://requests.readthedocs.io/en/master/user/quickstart/#timeouts + Defines a timeout for all requests to the OpenID Connect provider (fetch JWS, + retrieve JWT tokens, Userinfo Endpoint). The default is set to `None` which means + the library will wait indefinitely. The time can be defined as seconds (integer). + More information about possible configuration values, see Python `requests`: + https://requests.readthedocs.io/en/master/user/quickstart/#timeouts .. py:attribute:: OIDC_PROXY