As per the documentation https://doc.sitecore.com/xmc/en/developers/xm-cloud/managing-xm-cloud-authentication-clients.html, I created a Authentication Client
in XM Cloud Deploy App
at the Organization
level and i got the Client ID
and Client Secret
.
As a next step, i tried to get JWT token
by following this document https://doc.sitecore.com/xmc/en/developers/xm-cloud/request-a-jwt-for-the-cm-instance-using-oauth.html, and run curl
command like below.
curl --request POST --url "https://auth.sitecorecloud.io" --header "content-type: application/x-www-form-urlencoded" --data grant_type=client_credentials --data client_id=<clientid> --data client_secret=<clientsecret> --data audience=https://api.sitecorecloud.io
But i always get 404 Not Found response back.
Am i doing something wrong here?
Is there any other way to generate JWT
token to trigger XM Cloud
APIs?