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

Safari and all browsers on ios block Google Drive Picker auth popup #925

Open
sskinner-quizlet opened this issue Aug 16, 2023 · 0 comments

Comments

@sskinner-quizlet
Copy link

Important gapi.auth2 notice: gapi.auth2 has been deprecated and replaced with Google Identity Services. Please see https://developers.google.com/identity/sign-in/web/deprecation-and-sunset for more information. If you have questions related to authentication/authorization please look at the associated documentation or post questions on Stack Overflow with the google-oauth tag.

Summary
Safari, as well as all browsers on ios, default to blocking all popups. Unfortunately, this includes the auth popup that first is required for the drive picker to authenticate and then select a google drive file. Are there workarounds available to ensure browsers do not block this auth popup? On safari specifically, the first click attempt to launch the auth login modal is blocked, but subsequent clicks are not.

Browser(s)/Version(s)
Safari 15.6.1

Expected Behavior
The authentication popup should display when requestAccessToken is called (using tokenClient generated from google.accounts.oauth2.initTokenClient).

Actual Behavior
On calling requestAccesToken, safari blocks the auth popup from launching on the first attempt:
Screen Shot 2023-08-16 at 2 42 51 PM

On subsequent attempts, the popup is not blocked and the authentication popup launches

Steps to Reproduce
Please include steps and code samples to aid in issue reproduction(html/javascript).

@sskinner-quizlet sskinner-quizlet changed the title Safari and all browsers on iod block Google Drive Picker auth popup Safari and all browsers on ios block Google Drive Picker auth popup Aug 21, 2023
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

No branches or pull requests

1 participant