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

fix: add axios option withCredentials to acceptOAuth2LoginRequest #3400

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

bodymindarts
Copy link
Member

@bodymindarts bodymindarts commented Oct 20, 2023

This is the equivalent to what we had to do in the web wallet here: https://github.com/GaloyMoney/web-wallet/blob/5bb016a1adbe556ae4d09070daa3c18fb9599ce9/src/components/pages/login-email.tsx#L75 (ie pass options down to axios to forward cross site cookies)

@bodymindarts bodymindarts force-pushed the send-cookies-on-accept-login branch from 7b34fe7 to 3f3517f Compare October 20, 2023 10:09
@nicolasburtey
Copy link
Member

it should probably have to be done in the consent/page.ts also, because this is where the redirect to hydra happens

@nicolasburtey
Copy link
Member

it should probably have to be done in the consent/page.ts also, because this is where the redirect to hydra happens

even though the final redirect is done as a server side component so I don't think would have much effect

@bodymindarts bodymindarts force-pushed the send-cookies-on-accept-login branch from 3f3517f to 187c7d1 Compare October 20, 2023 10:13
@bodymindarts
Copy link
Member Author

bodymindarts commented Oct 20, 2023

Let's see what happened with this rolled out - domain is being set correctly already. This is how we got it working in Kratos. If it doesn't work we'll have to turn off SSR for consent app I guess.

EDIT: added withCredentials to all login and consent page requests.

@bodymindarts bodymindarts merged commit 4f0e3a9 into main Oct 20, 2023
16 checks passed
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.

2 participants