aws-amplify / aws-amplify/amplify-android
Way to login with google directly in the app instead of throwing to sign in with web UI
- Dominant language
- Java
- Stars
- 287
- Forks
- 132
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 45
Description
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-android/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-android/discussions).
### Language and Async Model
Kotlin, Kotlin - Coroutines
### Amplify Categories
Authentication
### Gradle script dependencies
```groovy
// Put output below this line
// Not applicable because new feature request
```
### Environment information
```
# Put output below this line
```
### Please include any relevant guides or documentation you're referencing
https://adrianhall.github.io/android/2018/09/18/auth-with-aws-amplify-1/
### Describe the feature request
There is no direct way to do federated login in Android, there is only 1 API i.e signInWithWebUi which throws user to a web page or custom web view.
As mentioned here : https://developers.google.com/identity/sign-in/android/backend-auth
We need a way to directly login in user with "sign-in with google" button, which talks to google OAuth server and login directly with Cognito. Please provide a direct API like Amplify.fedratedSignIn{provider : google} which handles all of those backend redirects and give the result as user.
### Initialization steps (if applicable)
_No response_
### Code Snippet
```java
// Put your code below this line.
```
### amplifyconfiguration.json
_No response_
### GraphQL Schema
```graphql
// Put your schema below this line
```
### Additional information and screenshots
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.