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.

Federated SignIn, configuration without AWS

See original GitHub issue

Describe the bug I am trying to connect React app to existing Cognito pool with usage of aws-amplify. The configuration works fine in terms of new Cognito users. But I am unable to have federated SignIn works with both Facebook and Google.

To Reproduce

  1. Configure AWS-amplify manually:
Amplify.configure({
  Auth: {
    identityPoolId: IDENTITY_POOL_ID,
    region: COGNITO_REGION,
    userPoolId: COGNITO_POOL_ID,
    userPoolWebClientId: COGNITO_USER_POOL_WEB_CLIENT_ID,
    // oauth: {. <--- Multiple different attempts.
    //   domain: COGNITO_DOMAIN,
    //   scope: ['email'],
    //   redirectSignIn: 'http://localhost:3000/',
    //   redirectSignOut: 'http://localhost:3000/',
    //   responseType: 'code',
    //   options: {
    //     AdvancedSecurityDataCollectionFlag: false
    //   }
    // }
  },

  API: {
    endpoints: [
      ...
    ],
  },
});
  1. Both registering and Login works fine:
await Auth.signUp({...
.
.
.
await Auth.signIn(values.username, values.password);
  1. Try to SignIn with federated SignIn
Auth.federatedSignIn({ provider: "Google" });
  1. See error. Depending on different configuration different errors occurred.

Expected behavior I got redirected to Google.

  1. Google federated SignIn is configured on Cognito and all App Ids are added.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mskalbacommented, Dec 3, 2020

@harrysolovay @sammartinez More detail information about server side configuration will be provided by our BE and Devops. Hope it will happen today. Looking forward to hearing from you soon.

0reactions
github-actions[bot]commented, Jan 11, 2022

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Web Federated Identity to Authenticate Users
You can directly configure individual identity providers to access AWS resources using web identity federation. AWS currently supports authenticating users ...
Read more >
Identity providers and federation - AWS Documentation
Create identity providers, which are entities in IAM to describe trust between a SAML 2.0 or OpenID Connect (OIDC) identity provider and AWS....
Read more >
Federation – Amazon Web Services (AWS)
Learn how to setup federation for your AWS Cloud resources. Federation enables you to manage access to your AWS Cloud resources centrally.
Read more >
Adding user pool sign-in through a third party - Amazon Cognito
Your app users can sign in either directly through a user pool, or federate through a third-party identity provider (IdP). The user pool...
Read more >
Configuring Federated Identity with the AWS Tools for ...
This section describes how AWS Tools for PowerShell cmdlets enable configuration of SAML-based identity federation for users. ... The user now has valid ......
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