Federated SignIn, configuration without AWS
See original GitHub issueDescribe 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
- 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: [
...
],
},
});
- Both registering and Login works fine:
await Auth.signUp({...
.
.
.
await Auth.signIn(values.username, values.password);
- Try to SignIn with federated SignIn
Auth.federatedSignIn({ provider: "Google" });
- See error. Depending on different configuration different errors occurred.
Expected behavior I got redirected to Google.
- Google federated SignIn is configured on Cognito and all App Ids are added.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >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
@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.
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.