Skip to content
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

#31019: Fixing CubeJSClient expired access token renewal. #31079

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

victoralfaro-dotcms
Copy link
Contributor

@victoralfaro-dotcms victoralfaro-dotcms commented Jan 8, 2025

Several fixes to several causes:

  • Using JWT expiresIn field to determine if token is expired and adding fallback to dotCMS ANALYTICS_ACCESSTOKEN_TTL config value
  • Removing Bearer prefix from Authorization header since CubeJS does not like it (or end up ignoring it)
  • Finally setting CUBEJS_JWT_ISSUER env-var at analytics infrastructure docker-compose to 'http://host.docker.internal:61111/realms/dotcms' since most of the times this is run inside a Docker container.

This PR fixes: #31019

@victoralfaro-dotcms victoralfaro-dotcms marked this pull request as ready for review January 8, 2025 13:03
…and adding fallback to dotCMS 'ANALYTICS_ACCESSTOKEN_TTL' config value, removing 'Bearer' prefix from Authorization header since CubeJS does not like it and finally setting 'CUBEJS_JWT_ISSUER' env-var at analytics infrastructure docker-compose to 'http://host.docker.internal:61111/realms/dotcms' since most of the times this is run inside a Dcoker container
@victoralfaro-dotcms victoralfaro-dotcms force-pushed the 31019-fix-cubejs-client-token-renew branch from 5d1da28 to 6247712 Compare January 8, 2025 13:04
@victoralfaro-dotcms victoralfaro-dotcms added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 1f2c750 Jan 8, 2025
36 checks passed
@victoralfaro-dotcms victoralfaro-dotcms deleted the 31019-fix-cubejs-client-token-renew branch January 8, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Token Invalid in CubeJS Server after token renew
3 participants