diff --git a/roles/openshift-apps/testdays/templates/client_secrets.json b/roles/openshift-apps/testdays/templates/client_secrets.json index e4af088763..83d5a186ab 100644 --- a/roles/openshift-apps/testdays/templates/client_secrets.json +++ b/roles/openshift-apps/testdays/templates/client_secrets.json @@ -1,13 +1,13 @@ { "web": { - "client_id": "75775323078-ohc0tlk93skeun0kcm7uqc2mrffm2god.apps.googleusercontent.com", - "project_id": "wmpair-dev", - "auth_uri": "https://accounts.google.com/o/oauth2/auth", - "token_uri": "https://oauth2.googleapis.com/token", - "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", - "client_secret": "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", - "redirect_uris": ["http://localhost:5050/flask_oidc/authorize","https://testdays.stg.fedoraproject.org/flask_oidc/authorize"], - "userinfo_uri": "https://www.googleapis.com/oauth2/v3/userinfo", - "issuer": "https://accounts.google.com/" + "auth_uri": "https://id{{env_suffix}}.fedoraproject.org/openidc/Authorization", + "client_id": "{{ (env == 'production')|ternary(testdays_oidc_client_id, testdays_oidc_client_id_stg) }}", + "client_secret": "{{ (env == 'production')|ternary(testdays_oidc_secret, testdays_oidc_secret_stg) }}", + "issuer": "https://id{{env_suffix}}.fedoraproject.org/openidc/", + "redirect_uris": [ + "https://testdays{{env_suffix}}.fedoraproject.org/flask_oidc/authorize" + ], + "token_uri": "https://id{{env_suffix}}.fedoraproject.org/openidc/Token", + "userinfo_uri": "https://id{{env_suffix}}.fedoraproject.org/openidc/UserInfo" } }