agentejo / CockpitQL

GraphQL addon for Cockpit CMS - https://github.com/agentejo/cockpit
70 stars 7 forks source link

Mutation with token #30

Closed ronaldaug closed 4 years ago

ronaldaug commented 4 years ago

Firstly, thanks for the updates of this addon.

I can use mutation in playground from cockpit dashboard.

But I can't use it from frontend apps or tools. It only shows me "Unauthorized".

This is example from Altair GraphQL Client

Screen Shot 2019-11-04 at 9 02 47 AM

I set the API key's rule to * and open for public including (edit, delete) but still it always return "Unauthorized"

I guess there is something wrong with mutation with authentication.

ronaldaug commented 4 years ago

Solution from Discourse Forum