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

disallowed_useragent for Google on Android 9 #364

Closed
perry-mitchell opened this issue Aug 1, 2019 · 5 comments
Closed

disallowed_useragent for Google on Android 9 #364

perry-mitchell opened this issue Aug 1, 2019 · 5 comments

Comments

@perry-mitchell
Copy link

Issue

I've gotten everything working on iOS - Google OAuth2 authentication - but I'm getting Google's disallowed_useragent error on Android:

image

I'm using Android 9.0 in an emulator to test - If I test the same code on Android 8 the browser loads and I can authenticate, but the redirection is never captured or acknowledged.

It seems like the browser that is being launched is somehow broken/incorrect on Android 9?


Environment

  • Your Identity Provider: Google
  • Platform that you're experiencing the issue on: Android
  • Are you using Expo? No
@perry-mitchell
Copy link
Author

I'm wondering if this has something to do with the base OS? For Android 8 I'm using the "Google APIs" emulator, and 9 I'm not.. the UI looks much more simplistic on 9 (I'm not usually an android user), so I'm wondering if it would work differently if a different browser was installed?

@perry-mitchell perry-mitchell changed the title disallowed_useragent for Google on Android disallowed_useragent for Google on Android 9 Aug 2, 2019
@juanriglos
Copy link

any solution?

@perry-mitchell
Copy link
Author

@juanriglos I used react-native-google-signin instead, which seems to work for me. I think the general requirement is also that the OS has Google Play software installed.

@juanriglos
Copy link

Thank you perry so you ejected from expo. There is any other solution?

codynguyen pushed a commit to codynguyen/react-native-app-auth that referenced this issue Nov 22, 2019
From https://github.com/openid/AppAuth-Android/releases

Minor bug fixes:
- Synchronizes multiple actions when requiring token refresh (FormidableLabs#332)
- Make handling of non-standard expires_at more tolerant (FormidableLabs#336)
- Changes related to Android tool changes between v25 and v27 (FormidableLabs#341, FormidableLabs#363)
- Fix encoding of client ids and secrets for auth (FormidableLabs#345)
- Handle CustomTabsSession.newSession failures (FormidableLabs#362)
- Do not automatically pass scope on token exchange request (FormidableLabs#364)
- Do not override tab title setting (FormidableLabs#365)
- Respect default browser of the user correctly (FormidableLabs#379)
- Updated custom tab definitions, including Firefox (FormidableLabs#378, FormidableLabs#383)
@kadikraman
Copy link
Contributor

kadikraman commented Jan 10, 2020

Hi 👋 - sorry for the late reply. I'm glad you managed to solve your issue.

As for Expo - in order to use this library, you'll have to eject because it includes native code.

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

3 participants