Questions about the Amazon Cognito authentication using Facebook
Questions tagged [amazon-cognito-facebook]
66 questions
61
votes
5 answers
AWS Cognito: Best practice to handle same user (with same email address) signing in from different identity providers (Google, Facebook)
When signing in a user with the same email address through the Google and Facebook identity providers, AWS Cognito creates multiple entries in the user pool, one entry per identity provider used:
I have used the example code provided in this…

AlexR
- 5,514
- 9
- 75
- 130
58
votes
9 answers
Cognito auth flow fails with "Already found an entry for username Facebook_10155611263153532"
The goal is to implement a social provider auth flow as described in User Pools App Integration and Federation.
One important thing that I want to satisfy, is to merge user pool accounts that have the same email address.
I am accomplishing that by…

Daniel Birowsky Popeski
- 8,752
- 12
- 60
- 125
11
votes
1 answer
How to authenticate API Gateway calls with Facebook?
Problem: I want to authorize my Amazon API Gateway hosted REST API users using Facebook Authentication.
My Understanding: I know Amazon Cognito can be used to authenticate users, calling as Federated Identities. Then, I saw Authenticate API Clients…

inblueswithu
- 953
- 2
- 18
- 29
9
votes
2 answers
AWS cognito: sign in with usernam/password OR facebook
I want to integrate a pretty standard functionality: give option to user (mobile and web) to either login with email/password or with facebook (google) account with RBAC (different users may have different roles, like users, moderators, admins,…

Victor Kim
- 1,647
- 2
- 16
- 33
8
votes
0 answers
AWS Cognito: Pass custom attributes for social media logins
I would like to implement a referral program for user signups and am looking to store the referee information as custom attributes in Cognito. I am using Amplify SDK for the same.
I am able to store the custom attributes for custom logins (using…

Repakula Srushith
- 444
- 1
- 3
- 10
8
votes
3 answers
How setup header in Postman for Api Gateway authenticated with Cognito?
I use AWS Identity Pool with Facebook provider to authenticate client. I need to invoke AWS Lambda using Api Gateway. From Cognito, using Facebook token, i received credentials: AccessKeyId, SecretKey and SessionToken.
Using this credentials, how…

Alexander Karpov
- 530
- 1
- 7
- 16
7
votes
1 answer
Boto3 for Social Logins using Cognito UserPools
I have a mobile app with signup/signin options. Mobile app makes calls to Rest APIs and the APIs use Python boto3 CognitoIdentityProvider client to create users in AWS Cognito user pools. SignIn using email/password works fine.
For social sign-in,…

suman j
- 6,710
- 11
- 58
- 109
7
votes
3 answers
Using Facebook login with AWS Cognito User Pool
I am implementing Facebook authentication for an Angular2-app that already uses an AWS Cognito User pool.
Using ngx-facebook (https://github.com/zyra/ngx-facebook) I have managed to authenticate myself using Facebook and a Cognito Identity Pool:
…

Karl Eriksson
- 205
- 4
- 12
6
votes
3 answers
Save AWS Cognito Users in DynamoDB
I recently started experimenting with AWS AppSync but I had some questions around AWS Cognito.
I would like for users to be able to authenticate with Facebook but I need their profile picture, name and email as data for my public user profiles in my…

Rein Van Imschoot
- 344
- 3
- 14
5
votes
0 answers
Flutter facebook login with AWS cognito user pool Facebook review rejected
I am trying to build a Flutter application for android and ios. I am using the flutter web sign-in for Facebook and google sign-in. But when I am submitting the application to Facebook for review it says you are providing a website as a review but…

Nikul Kukadiya
- 141
- 7
4
votes
0 answers
Cognito: Facebook attributes not available in UI or ID Token
Yesterday, I setup a user-pool in Cognito w/ the Facebook Provider configured, allowing users of our iOS App to signup with Facebook. This has been implemented and the signup works perfectly.
The issue I am having is that Facebook attributes e.g.…

max_
- 24,076
- 39
- 122
- 211
4
votes
2 answers
AWS Cognito Authentication via Facebook succeeds but getCurrentUser returns null
In the browser, after Facebook Login, statusChangeCallback is called. Everything succeeds. Cognito even returns an Identity Id. However, userPool.getCurrentUser() returns null. Cognito does not think there is an authenticated user. How can I fix…

Pat Cappelaere
- 391
- 1
- 2
- 11
3
votes
0 answers
What is correct approach to refresh id-token via. AWSMobileClient swift?
I am using aws-cognito UserPool (via. AWSMobileClient) for authentication of users to access the AWS Services.
Currently the user may choose to log-in via Phone, Google and Facebook using Hosted UI option, which in return provides the ID-token,…

Abhishek Singh
- 76
- 4
3
votes
1 answer
User not creating in user pool when login with facebook in aws ? - android
i want to know how to create user entry in user pool when user login with facebook. I am able to integrate aws cognito up and the facebook log in just fine but user is not creating in user pool when login with facebook.
identity Id is creating in…

jaspreet singh
- 1
- 9
3
votes
1 answer
Integrate Facebook login with AWS Cognito User Pool
I'm trying to integrate aws user pool in my project. I manage to do a normal login with email and password, but I need to add login in with Facebook.
From what I read in documentation, for this I need to create an Indentity pool in Federated…

user2576008
- 499
- 1
- 6
- 15