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

Warn when an OIDC session cookie exceeds 4096 bytes #20431

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Sep 28, 2021

Fixes #20363.

This PR adds a warning when a session cookie size is equal or greater than 4096 and recommends 3 approaches toward fixing it.
It took @artkonr awhile to trace the problem.
We introduced TokenStateManager when the same problem happened awhile back - but from the trace at #20363 I could not see where the problem was. FYI, @artkonr has verified the recommended 1) and 2) were effective, with 1) being the solution which fitted the use case, but it took me awhile to remember it was possible to do 1) :-).
It is all documented, but it would be useful, going forward, to immediately see a warning about the potential problem and try the suggested alternatives

@sberyozkin
Copy link
Member Author

@pedroigor thanks

@sberyozkin sberyozkin merged commit 8078807 into quarkusio:main Sep 28, 2021
@quarkus-bot quarkus-bot bot added this to the 2.4 - main milestone Sep 28, 2021
@sberyozkin sberyozkin deleted the oidc_session_cookie_size branch September 28, 2021 18:19
@artkonr
Copy link

artkonr commented Sep 28, 2021

Nice 👍

@geoand geoand modified the milestones: 2.4 - main, 2.3.0.Final Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recurring redirects in OIDC against Azure AD
4 participants