How to generate auth tokens to access local dev graphQL endpoints?
the wnkd package comes with graphql endpoints configured at: http://localhost:4502/content/graphql/global/endpoint.json
However, If you try to access them, you get:
{
"servlet": "org.apache.felix.http.base.internal.dispatch.DispatcherServlet-313d2b89",
"message": "Forbidden",
"url": "/content/graphql/global/endpoint.json",
"status": "403"
}
There is very little information on how to authenticate. In the example React app, you put the username admin/admin in the env file, which implies its using basic authentication. But if you try to use the corresponding header:
Authorization: Basic YWRtaW46YWRtaW4=
It still gives 403
Only shows how to get tokens from the cloud env control panel, not your local install, which doesnt have a control panel.
we have been going round in circles trying to get graphql working for many days, anyone who can help it would be greatly appreciated.
Ideally, we want to remove the authentication requirements from our local author instances, but this is undocumented. In theory, the publish instance has this authentication removed, but getting local replication from author to publish has been equally difficult, and is a poor workaround.