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

Federated SignIn with Google Sign In, returns no errors, but can't see user in user pool #26

Open
robert-stevens opened this issue Mar 24, 2020 · 3 comments
Labels

Comments

@robert-stevens
Copy link

robert-stevens commented Mar 24, 2020

Hi,

I have cloned the example app and I have added awsconfiguration.json file with my cognito info.

I then tried using sign up (i.e. email + password) and this worked, and my user was shown in my user pool.

I then added in google_sign_in package:

google_sign_in: ^4.2.0

And did the necessary config.

I ended up using the code below:

signInGoogle() async { final dynamic result = await signInWithGoogle(); Cognito .federatedSignIn('accounts.google.com', result.idToken) .then((res) { print(res); }).catchError((dynamic error) { print(error); }); }

I get a "flutter: UserState.SIGNED_IN" back and the state shows that I'm signed in.

I then go under my groups, e.g.

Groups => eu-west-xxx_Google

But I don't see the user.

I don't have any errors in the app, and so was wondering if you could point me in the right direction to get this working.

Thanks, Robert

Update:

From what I see the user is not logged in, although the federatedSignIn simply returns "UserState.SIGNED_IN" as a response.

@subhendukundu
Copy link

Did you get a solution to this?

@devxpy
Copy link
Member

devxpy commented Apr 16, 2020

Hello, this is a bug in upstream - aws-amplify/aws-sdk-android#685 (comment)

@devxpy
Copy link
Member

devxpy commented Jun 1, 2020

@robert-stevens Using Hosted UI should fix this.

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

3 participants