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

Request reauthentication by default if OIDC state state query param is missing #35755

Merged

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Sep 5, 2023

Fixes #35754

Instead of getting the users puzzled with 401, let them re-authenticate again if the previous authentication attempt did not complete with the redirect to Quarkusand thus leaving some state cookie in the browser cache - failing with 401 when the user retries to access Quarkus is only causing confusion with the users likely finding fail-on-missing-state-param and disabling it.

Tests have been added/fixed to check that when this parameter is disabled, default now, then 302 is returned, with the re-authentication redirect. 401 is enabled only if this property is enforced

@quarkus-bot
Copy link

quarkus-bot bot commented Sep 5, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@sberyozkin
Copy link
Member Author

Thanks @gastaldi, just checked today with this PR, the experience is good

@sberyozkin sberyozkin merged commit 15445c9 into quarkusio:main Sep 6, 2023
21 checks passed
@sberyozkin sberyozkin deleted the oidc_302_if_state_cookie_missing branch September 6, 2023 09:36
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Sep 6, 2023
@quarkus-bot quarkus-bot bot added this to the 3.5 - main milestone Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oidc kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request reauthentication instead of 401 if OIDC state query param is missing
2 participants