From 932322a75c001fd9fef87d9c89a1643e2abdcccf Mon Sep 17 00:00:00 2001 From: Daniel Mursa Date: Fri, 13 Dec 2024 16:21:09 +0100 Subject: [PATCH] [maykinmedia/objects-api#480] Setup configuration mozilla django OIDC db --- bin/setup_configuration.sh | 2 +- docker/setup_configuration/data.yaml | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/bin/setup_configuration.sh b/bin/setup_configuration.sh index 844ba43..93ab4db 100755 --- a/bin/setup_configuration.sh +++ b/bin/setup_configuration.sh @@ -1,6 +1,6 @@ #!/bin/bash -# setup initial configuration using environment variables +# setup initial configuration using a yaml file # Run this script from the root of the repository set -e diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml index 7d27246..6c6024d 100644 --- a/docker/setup_configuration/data.yaml +++ b/docker/setup_configuration/data.yaml @@ -18,10 +18,13 @@ sites_config: oidc_db_config_enable: true oidc_db_config_admin_auth: items: - - identifier: admin-oidc - oidc_rp_client_id: client-id - oidc_rp_client_secret: secret - endpoint_config: - 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 + - identifier: admin-oidc + oidc_rp_client_id: client-id + oidc_rp_client_secret: secret + endpoint_config: + 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