-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How to Generate the token for Cube.js authentication using spring boot #2098
Comments
Hello @ImalshaRathnaweera! I can see that the payload you pass in is different. Java version
Node.js version
May it be the issue? |
@vasilev-alex I have fixed this issue. But not working. I updated my issue |
So, just to confirm, you don't receive the If so, could you please share the related data schemas? |
|
@vasilev-alex |
@ImalshaRathnaweera how do you query the Cube.js API? |
const cubejsApi = cubejs(token, { |
@ImalshaRathnaweera Could you please generate 2 fresh tokens and share them here? One using Java and another using Node.js |
@vasilev-alex Spring boot token |
hi @ImalshaRathnaweera! Looks like this should work for you auth0/node-jsonwebtoken#208 (comment) The only thing, make sure to use |
I used the below code to generate the Jwt token in spring boot.
A token was created, but not retrieve the correct data related to the cubejs scheme. how to make a Jwt token using spring boot for the cubejs authentication.
I generate a Jwt token using node backend.. then, it works for cubejs.
I check node token and spring boot token using jwt.io. both results are equal. when applying the node token retrieve the correct data. but when applying spring boot token not retrieve the correct data.
The text was updated successfully, but these errors were encountered: