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

OAuth doesn't work for Google accounts in MakeCode on some version of Android #60

Open
jaustin opened this issue Apr 15, 2024 · 12 comments

Comments

@jaustin
Copy link

jaustin commented Apr 15, 2024

Describe the bug

microsoft/pxt-microbit#5590

image

@microbit-matt-hillsdon can reproduce this.

@martinwork
Copy link
Collaborator

Seems to be Google policy to disallow in webviews. I don't understand why it works in the iOS app.
https://developers.googleblog.com/2021/06/upcoming-security-changes-to-googles-oauth-2.0-authorization-endpoint.html

@jaustin
Copy link
Author

jaustin commented Apr 16, 2024

I can also reproduce this for me on my Android 8.1 device even though it lets me get through the whole entering password flow etc. 403: disallowed_useragent

@martinwork
Copy link
Collaborator

Reported in support ticket https://support.microbit.org/helpdesk/tickets/74336 (private)

@martinwork
Copy link
Collaborator

Reported in support ticket https://support.microbit.org/helpdesk/tickets/74736 (private)

@microbit-carlos
Copy link

microbit-carlos commented Jul 17, 2024

Reported from an iOS device via support on the 3rd of May, and in an in-person workshop on the 16th of July.

@abchatra
Copy link

What is the plan here? Are you using native webview in android?
May be this link helps? https://developers.google.com/identity/android-credential-manager

@martinwork
Copy link
Collaborator

Reported in support ticket https://support.microbit.org/helpdesk/tickets/83590

@abchatra
Copy link

@eanders-ms can you pitch in here?

@eanders-ms
Copy link

On the device where it's failing for MakeCode, does Google auth work for other 3rd party (non-Google) apps?

@martinwork
Copy link
Collaborator

@eanders-ms
Copy link

We may need to leverage the native Android app to manage the authentication process, which would pass the final redirect URL back to the WebView. From there we can get the auth token and cookie. Custom Tabs might be a suitable API for handling the oauth flow from the native side.

@martinwork
Copy link
Collaborator

Reported in support ticket https://support.microbit.org/helpdesk/tickets/83933 (private)

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

5 participants