Skip to content

fix: change oauth convert oidc cookie to SameSite=Lax #9129

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

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Aug 16, 2023

The strict mode was blocking the cookie from being sent on the redirect flow. This worked on localhost because cookies behave differently on localhost

Closes #9057


Testing on localhost never exercised the bug and was confusing the heck out of me. Thanks @ericpaulsen for the debug environment that reproduced it!

I manually tested this, and unfortunately cannot really exercise this in a unit test. It's browser specific behavior.

The error occurs when you click "Login" on the OIDC portal and you get redirected back to coder. This redirect does not send Strict cookies.

The strict mode was blocking the cookie from being sent on the
redirect flow. This worked on localhost because cookies
behave differently on localhost
@github-actions
Copy link

github-actions bot commented Aug 16, 2023


✔️ PR 9129 Created successfully.
🚀 Access the credentials here.

cc: @Emyrk

@Emyrk Emyrk merged commit 7499930 into main Aug 16, 2023
@Emyrk Emyrk deleted the stevenmasley/convert_cookie_fix branch August 16, 2023 17:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing OAuthConvertCookieValue when converting owner accounts to OIDC
2 participants