Questions tagged [amazon-cognito-facebook]

Questions about the Amazon Cognito authentication using 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…
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…
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…
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,…
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…
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…
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,…
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…
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…
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,…
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…
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…
1
2 3 4 5