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 return error #28

Open
ZLemingli360 opened this issue Jun 3, 2020 · 1 comment
Open

Federated SignIn with Google Sign In return error #28

ZLemingli360 opened this issue Jun 3, 2020 · 1 comment

Comments

@ZLemingli360
Copy link

Hi,

I'm using this code

var res = await Cognito.federatedSignIn('accounts.google.com', token.idToken);

and I receive error "Token is not from a supported provider of this identity pool" but I've checked my user pool>Identity provider and identity pool>authentication provider both are configured.

May I know what might be the reason that I'm getting this error?
Do I need to add google info into the awsconfiguration.json as well?If yes can anyone please show me the sample. Thanks!
Below are the awsconfiguration.json sample I'm using

{
"IdentityManager": {
"Default": {}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
"Region": "XX-XXXX-X"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "XX-XXXX-X_abcd1234",
"AppClientId": "XXXXXXXX",
"AppClientSecret": "XXXXXXXXX",
"Region": "XX-XXXX-X"
}
}
}

@ignaciolopez12
Copy link

same error

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

2 participants