From 39d6ee3932757a16cf2a3df1b3ef753689fc2a09 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Wed, 4 Dec 2024 13:32:27 +0100 Subject: [PATCH] [release-monitoring] Fix TOML formating This caused the client authlib parameters for Fedora and Google to be wrongly interpreted as kwargs for Github backend. Signed-off-by: Michal Konecny --- .../release-monitoring/templates/anitya.toml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/roles/openshift-apps/release-monitoring/templates/anitya.toml b/roles/openshift-apps/release-monitoring/templates/anitya.toml index 065a66cd30..79f6e6fe51 100644 --- a/roles/openshift-apps/release-monitoring/templates/anitya.toml +++ b/roles/openshift-apps/release-monitoring/templates/anitya.toml @@ -58,8 +58,7 @@ github_authorize_url = "https://github.com/login/oauth/authorize" # Github URL for API github_api_base_url = "https://api.github.com/" # Additional arguments for Github authentication -[github_client_kwargs] -scope = "openid profile email" +github_client_kwargs = { scope = "openid profile email" } # Fedora OAuth backend variables # Fedora OAuth client id @@ -71,9 +70,10 @@ fedora_client_secret = "{{ anitya_stg_fedora_client_secret }}" # Fedora OAuth authentication endpoint fedora_server_metadata_url = "https://id.stg.fedoraproject.org/.well-known/openid-configuration" # Additional arguments for Fedora authentication -[fedora_client_kwargs] -scope = "openid profile email" -token_endpoint_auth_method = "client_secret_post" +fedora_client_kwargs = { + scope = "openid profile email", + token_endpoint_auth_method = "client_secret_post" +} # Google OAuth backend variables # Google OAuth client id @@ -85,8 +85,7 @@ google_client_secret = "{{ anitya_stg_google_client_secret }}" # Google OAuth authentication endpoint google_server_metadata_url = "https://accounts.google.com/.well-known/openid-configuration" # Additional arguments for Google authentication -[google_client_kwargs] -scope = "openid profile email" +google_client_kwargs = { scope = "openid profile email" } {% else %} social_auth_authentication_backends = [ 'social_core.backends.fedora.FedoraOpenId', -- 2.50.0