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

Logging in with Google doesn't work without third party cookies #52652

Open
lsl opened this issue May 7, 2021 · 1 comment
Open

Logging in with Google doesn't work without third party cookies #52652

lsl opened this issue May 7, 2021 · 1 comment
Labels
[Feature] 3rd Party Cookies Management Handling third-party cookies (or the lack thereof) on WordPress.com. [Type] Bug

Comments

@lsl
Copy link
Contributor

lsl commented May 7, 2021

We use a google library to handle google sign in and it doesn't support third-party-cookie-free operation. It seems like this is a won't fix issue.

I'm creating this issue to track further investigation and hopefully find a workaround / alternative approach.

Secondary issue: need to confirm that a user can login using a password reset if they've only ever logged in with google auth. Confirmed, password reset is an available workaround if required.

We load the google-api-javascript-client with a loadScript call, and catch this specific error gracefully. With 3rd party cookies going away this will be the default mode of operation. I think we'll either need to change to oauth or remove the feature as continuing to suggest users disable 3pc is not really an option for mass use.

It would be good if someone can confirm they can repro this as I couldn't see this error in the e2e test logs for #52407 but the error does show up for me locally.

Steps to reproduce the behavior

Disable third party cookies for your browser (e.g. chrome incognito) and attempt to login with a Google account.

https://wordpress.com/log-in

What I expected to happen

Being able to login

What actually happened

The login option is disabled with some info text explaining you need to enable third party cookies.

There is a console error:

{error: "idpiframe_initialization_failed", details: "sessionStorage is not available in the current environment."}

Screenshot

3pcdisablesgoogleauth

@lsl lsl added [Type] Bug [Feature] 3rd Party Cookies Management Handling third-party cookies (or the lack thereof) on WordPress.com. labels May 7, 2021
@niranjan-uma-shankar
Copy link
Contributor

niranjan-uma-shankar commented Jul 27, 2021

Props @aneeshd16 for finding this but the Google sign-in works on Safari even with 3rd party cookies blocked.
This issue is however seen on Chrome and Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] 3rd Party Cookies Management Handling third-party cookies (or the lack thereof) on WordPress.com. [Type] Bug
Projects
None yet
Development

No branches or pull requests

2 participants