I want to use the GraphQL playground on my local instance of XM Cloud. The URL is https://xmcloudcm.localhost/sitecore/api/authoring/graphql/ide/
.
My understanding is that in order for this to work, the playground must be enabled, and an access token must be generated.
I added Sitecore_GraphQL_ExposePlayground: "true"
to my docker-compose.override.yml
to enable the playground and I can load the GraphQL Playground in my browser but without the access token, no queries will work.
This guide (Walkthrough: Enabling and authorizing requests to the Authoring and Management API) provides the instructions for how to get a token, but I haven't been successful in getting it to work.
I always get some variation of
{
"error": "access_denied",
"error_description": "Unauthorized"
}
Error while getting client credentials token: Unauthorized
Working through the replacements that the guide mentions:
<authority-url>
:endpoints.xmCloud.authority
value from the.sitecore/user.json
file.- In my case this value is
https://auth.sitecorecloud.io/
- In my case this value is
<your-client-id>
:endpoints.xmCloud.clientId
value from the.sitecore/user.json file
.- In my case this value is
Chixxxxxxxxxxxxxxv7
- In my case this value is
<your-client-secret>
:endpoints.xmCloud.clientSecret
value from the.sitecore/user.json
file.- My
.user.json
file contains no such key or value, so I used a client secret value that I found in the.env
file that was generated for me:SITECORE_FedAuth_dot_Auth0_dot_ClientSecret=xjQlxxxxxxxxxxxxx-3j-vxxxxxxxxxQ
- My
Where am I going wrong here?