-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin tokens doesn't seem to work after migration #3959
Comments
Also; I noticed the value of However, now that they're the same, the token is still not accepted in the new coral talk, but it is accepted for the coral talk v4 version. |
Ok, so found the issue. Turns out that the coral talk v4 tokens, when decode look like this:
But when I create a new token and decode it, it looks like so:
It boiled it down to that the admin-token in the new coral talk needs to have the tenantId value as And now the token works. I'd suggest, for backwards compatibility if the |
@ideallical thanks for updating! We'll take a look at this and determine if this is a bug or something we should call out in the docs. |
Expected behavior:
After migrating data from v4 to v7, I see that the tokens of an ADMIN (role) user have migrated "succesfully" (I see that the user.tokens looks very similair to user.tokens in v4).
I'd expect to be able to do GraphQL requests on v7 with the same admin token.
Actual behavior:
However, I see this error on authenticated requests:
Even on a request that doesn't require authentication (to get a Story by url) I see this:
The requests should be fine, as I use the same code but than on localhost and a different admin token, and then it works.
Related Issues:
Versions:
The text was updated successfully, but these errors were encountered: