Skip to content

Oversized ID tokens break oauth authentication #694

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

Open
cccs-nik opened this issue Jun 3, 2025 · 0 comments
Open

Oversized ID tokens break oauth authentication #694

cccs-nik opened this issue Jun 3, 2025 · 0 comments

Comments

@cccs-nik
Copy link
Member

cccs-nik commented Jun 3, 2025

Big ID tokens (eg. ID tokens with a big groups claim) will go over the 4KB cookie size limit and silently fail logging users in. I made a quick workaround that splits oversized tokens into chunks: main...cccs-nik:trino-gateway:token-chunks but maybe a more complex and appropriate solution would be to store tokens server-side. Perhaps ID tokens should also not be stored at all, but access tokens instead once authentication is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant