AWS cognito social login throwing NotAuthorizedException:does not have identity providers configured React Native
See original GitHub issueHi,
I’m using user pool. I have completed signup with email now trying to implement social login.
I’m using Auth.federatedSignIn({ provider: 'Google' })
for google and
Auth.federatedSignIn({ provider: 'Facebook' })
for facebook.
Here is my config for OAuth
oauth: {
domain: '__domain__',
clientID: '__client id __',
scope: ['email', 'profile', 'openid'],
redirectSignIn: 'myapp://oauth/',
redirectSignOut: 'myapp://signout/',
responseType: 'code'
}
I have added google, Facebook id and secret in aws.
But in the hub listener, I’m getting the following error.
signIn_failure [NotAuthorizedException: Identity pool - * poolid * does not have identity providers configured.] However, the users who tried login using facebook and google is registered and is showing in the user list. I’m pretty much stuck at this point, any help would be appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
AWS cognito social login throwing NotAuthorizedException ...
I found out the issue, we had Identity pool setup added in the config, so I had to add the social login id's...
Read more >Authenticating AWS Amplify in an Expo React Native App ...
Go to IAM in the AWS console · In the sidebar go to Identity providers, and click Add provider · Configure the identity...
Read more >Authorization and Authentication with AWS Cognito and React ...
This section covers how to set up AWS Cognito User and Identity Pools ... to sign in or federate with a third-party identity...
Read more >The Complete React Native Guide to User Authentication with ...
Default configuration with Social Provider (Federation); How do you want users to be able to sign in when using your Cognito User Pool?...
Read more >amazon-cognito-auth-js-react-native - npm
Configuration · When you click the App settings tab, you can select the identity provider which you want to use on your App....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@amhinson Actually, it got fixed itself, created a new project and tested everything and it was working fine, and then tried running the current project again and it was working. no changes or anything was made in the code.
@rahulje9
Are you using identity pools?
Can you share your the whole config (obscure XXXX the endpoint information) .
Are you able to use Cognito tokens?