Open Birowsky opened 6 years ago
@powerful23 , @yuntuowang I'm looking to hear from you soon.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Need this to track progress
any updates on this ?
Looking for this exact capability. Has anything been added on this since 2018?
Hi @Birowsky, @Lokiejim1
I've been working on another issue similar to this but using the cordova-plugin-customurlscheme to accomplish Google Auth flows and get redirected back to the app. I am still trying options to make this seamless, but currently I have been able to return the code/state from either Hosted UI with Auth.federatedSignIn()
or directly from Google with Auth.federatedSignIn({ provider: 'Google' })
and log the user in to Amplify.
Just want to verify, from what I read in that article and from what you said, Google only banned the use of an in-app browser for logging in.
Can you confirm if you would just like to see some way to use Google federated signIn with Amplify or if you were looking for something else?
Just commenting to link the 2 issues, but I did a really deep dive into this problem for #10301 and have a pretty detailed README on where we get caught up . The part of the README I linked has a workaround that is sort of hacky but gets the login to work.
Basic Cognito feature request
In a Cordova app, currently there is no way to use Google to authenticate user into a Cognito user pool.
In web-apps, the hosted ui approach works nicely, but Google has banned the use of in-app browser for mobile apps. Now, altho there are AWS libraries that solve auth in mobile apps, there is no solution for Cordova apps.
Let's talk about a workaround:
If we use the cordova-plugin-googleplus, we can retrieve a sufficient set of data to authenticate the user:
I just need some guidance to accomplish the whole thing. Is there maybe a combination of
adminCreateUser
andadminInitiateAuth
that I can do to end up with Cognito user pool session consisting of access , id, and refresh tokens?