question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWS cognito social login throwing NotAuthorizedException:does not have identity providers configured React Native

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rahulje9commented, Dec 11, 2020

@rahulje9 Did you figure out the issue about the splash screen? This seems more related to React Native than Amplify specifically, but I can give some recommendations on where to look if you’re still having a problem.

@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.

1reaction
elorzafecommented, Apr 20, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found