From 3101ab1a8ccfc6a3205d99bf9b4b9916ae6945c4 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 13 Dec 2024 10:16:55 +0100 Subject: [PATCH] [#483] add workaround for django-setup-configuration/issues/27 --- docker/setup_configuration/data.yaml | 3 +++ docs/installation/config_cli.rst | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml index cfa4de41..d692ccde 100644 --- a/docker/setup_configuration/data.yaml +++ b/docker/setup_configuration/data.yaml @@ -8,3 +8,6 @@ oidc_db_config_admin_auth: oidc_op_authorization_endpoint: https://example.com/realms/test/protocol/openid-connect/auth oidc_op_token_endpoint: https://example.com/realms/test/protocol/openid-connect/token oidc_op_user_endpoint: https://example.com/realms/test/protocol/openid-connect/userinfo + + # workaround for https://github.com/maykinmedia/django-setup-configuration/issues/27 + userinfo_claims_source: id_token diff --git a/docs/installation/config_cli.rst b/docs/installation/config_cli.rst index 69c3b82e..abb40a45 100644 --- a/docs/installation/config_cli.rst +++ b/docs/installation/config_cli.rst @@ -61,6 +61,9 @@ Create or update the (single) YAML configuration file with your settings: oidc_op_authorization_endpoint: https://example.com/realms/test/protocol/openid-connect/auth oidc_op_token_endpoint: https://example.com/realms/test/protocol/openid-connect/token oidc_op_user_endpoint: https://example.com/realms/test/protocol/openid-connect/userinfo + + # workaround for https://github.com/maykinmedia/django-setup-configuration/issues/27 + userinfo_claims_source: id_token ... More details about configuring mozilla-django-oidc-db through ``setup_configuration``