amazon-cognito-facebook

Login Issue in Amazon Mobile Hub with Cognito

Deadly 提交于 2019-12-12 04:15:21
问题 I am using Mobile Hub (amazon) in my android project and for sign-in providers i am using cognito and I have their sample code which they provide and I modify the code and the Login with Facebook is working but the issue which I am facing is onSuccess method when user login successfully called twice and I debugg it but I can not Figure it out how to fix that issue. SplashActivity.java public class SplashActivity extends AppCompatActivity implements SignInResultHandler { IdentityManager

AWS Cognito Authentication via Facebook succeeds but getCurrentUser returns null

帅比萌擦擦* 提交于 2019-12-10 16:35:46
问题 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 that? Thanks. function statusChangeCallback(response) { if(response.status == 'connected' && response.authResponse) { testAPI() console.log("FB statusChangeCallback", JSON.stringify(response)) AWSCognito.config.credentials = new AWSCognito

Cognito auth flow fails with “Already found an entry for username Facebook_10155611263153532”

痴心易碎 提交于 2019-12-03 06:00:39
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 calling adminLinkProviderForUser within the PreSignUp_ExternalProvider cognito lambda trigger. So with this, everything works. The new social provided user is being registered and linked with the already existing Cognito (user+pass) user. However, the authentication flow, from user's perspective doesn't complete. It fails at the last step where the

How setup header in Postman for Api Gateway authenticated with Cognito?

被刻印的时光 ゝ 提交于 2019-11-30 21:27:57
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 should I setup header request to invoke my Lambda? Api Gateway setup (test calls my lambda) I try to call my api, it returns "The security token included in the request is invalid." Thank you! You have to manually set ' x-amz-security-token ' in Postman and pass the token in that header. Please try this for postman: http://docs.aws.amazon.com

How setup header in Postman for Api Gateway authenticated with Cognito?

拈花ヽ惹草 提交于 2019-11-30 03:48:13
问题 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 should I setup header request to invoke my Lambda? Api Gateway setup (test calls my lambda) I try to call my api, it returns "The security token included in the request is invalid." Thank you! 回答1: You have to manually set ' x-amz-security-token ' in

How to authenticate API Gateway calls with Facebook?

南笙酒味 提交于 2019-11-28 21:37:39
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 with Amazon Cognito Your User Pool , which authenticates for Cognito User Pool. I also found Use Amazon API Gateway Custom Authorizers , to use from custom authorization. But, I did not find to link API Gateway to authenticate using Cognito Federated Identities (i.e. Facebook here). Can we use same procedure as User Pool for Federated Identities as

AWS cognito: sign in with usernam/password OR facebook

回眸只為那壹抹淺笑 提交于 2019-11-28 09:19:19
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, creators, etc). Here is basically what I want from sign in: I went through a number of AWS tutorials and other materials. I got some grasp on how to implement it, but I still don't have a full picture. Hope someone can help me here. Here is my current understanding (please correct me where I'm wrong). 1) For the email/password signup/signin I use a User

How to authenticate API Gateway calls with Facebook?

孤人 提交于 2019-11-27 14:03:04
问题 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 with Amazon Cognito Your User Pool, which authenticates for Cognito User Pool. I also found Use Amazon API Gateway Custom Authorizers, to use from custom authorization. But, I did not find to link API Gateway to authenticate using Cognito Federated