templates/packer: use RH SSO for the default token endpoint

MAS SSO (identity.api.openshift.com) was deprecated, RH SSO should be
the default.
This commit is contained in:
Sanne Raymaekers 2023-06-28 15:42:32 +02:00 committed by Ondřej Budai
parent 38093100e3
commit 170feba87b

View file

@ -20,7 +20,7 @@ rm -f /tmp/client-credentials.json
sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF
[authentication]
oauth_url = "${TOKEN_URL:-https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/token}"
oauth_url = "${TOKEN_URL:-https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token}"
client_id = "${CLIENT_ID}"
client_secret = "/etc/osbuild-worker/client-secret"
EOF