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

Google Sign-in native support. #367

Closed
5 tasks done
zhukic opened this issue Oct 29, 2020 · 4 comments
Closed
5 tasks done

Google Sign-in native support. #367

zhukic opened this issue Oct 29, 2020 · 4 comments
Labels

Comments

@zhukic
Copy link

zhukic commented Oct 29, 2020

In order to efficiently and accurately address your issue or feature request, please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. Please delete any sections or questions below that do not pertain to this request.

For general support or usage questions, please use the Auth0 Community or Auth0 Support.

Description

Description of the bug or feature request and why it's a problem. Consider including:

  • The use case or overall problem you're trying to solve
  • Information about when the problem started

Prerequisites

Environment

Please provide the following:

  • Version of Auth0.Android used: 1.28.0
  • Version of Android being used: any
  • Additional packages that might be affecting your instance:

Description

Hello!

Currently I'm trying to implement Sign-in with Google in my Android app. The only way I see right now is to use WebAuthProvider with "google-oauth2" connection which works over WebView. But it would be great to have native Google Sign-in for better user experience.

Is there any way to exchange Google token for Auth0 access and id tokens? I tried to implement it through AuthenticationAPIClient.loginWithOAuthAccessToken(googleToken, "google-oauth2") or AuthenticationAPIClient.loginWithNativeSocialToken but Auth0 api internally returns 4xx error codes.

Thanks!

@lbalmaceda
Copy link
Contributor

@zhukic The WebAuthProvider, as its name suggest, makes use of a web-auth flow to authenticate you. To clarify "Webview" (the component) is not recommended and actually will have OAuth requests blocked. See our blogpost about that.

Regarding your inquiry, "native" Google Sign-In (through Google's SDK) is not currently supported. The server side needs to support that provider token type first. Currently, the supported ones are Apple and Facebook. You can check the quickstart for both https://auth0.com/docs/quickstart/native. You can fill a product request here.

@zhukic
Copy link
Author

zhukic commented Oct 30, 2020

@lbalmaceda Thank you the quick reply!

@zhukic zhukic closed this as completed Oct 30, 2020
@agusvazquez
Copy link

Hello people! Hope you are having a great day!

I just wanted to ask if there are plans for implementing this provider like you did with Apple Sign In here
https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/apple-native

Basically the solution would be to send Google Sign In id_token to Auth0 and retrieve the access token.

Is that possible now? If not, are you planning to release it? Is there any estimated time?

Thank you!!!

@qsdigor
Copy link

qsdigor commented Nov 13, 2023

I need as well some option to integrate native google login with auth0 token exchange. I see it works for facebook but it would be nice to have it for google as well with auth0 loginWithNativeSocialToken option and custom token and tokenType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants