amazon-cognito

AWS Cognito Error: 'identityPoolId' failed to satisfy constraint

时光毁灭记忆、已成空白 提交于 2019-11-27 14:20:35
问题 I am new Cognito. I am trying to implement AWS Cognito using Lambda. This is the tutorial I am following. AmazonCognitoIdentityClient client = new AmazonCognitoIdentityClient(); GetOpenIdTokenForDeveloperIdentityRequest tokenRequest = new GetOpenIdTokenForDeveloperIdentityRequest(); tokenRequest.setIdentityPoolId("us-east-1_XXXXXXX"); This is the pool Id that I am using in the setIdentityPoolId This is the JUnit test public class AuthenticateUser implements RequestHandler<Object, Object> {

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

AWS Cognito User Pool without a password

余生颓废 提交于 2019-11-27 12:59:05
问题 I want to use a phone number as the username for my app and i want to be able to make it simple to sign up by just having to verify the phone number each time they want to login - no messy password remembering business. How to do this with AWS Cognito User Pool as its asking me to mandatorily configure a password for each user. I thought of using a dummy password for each user and configure mandatory user verification. Everytime the user sign out i can "Unverify" the user so that next time

API Gateway authentication with Cognito Federated Identities

杀马特。学长 韩版系。学妹 提交于 2019-11-27 12:33:34
问题 I want to use Cognito Federated Entity (allowing signin through Google etc), to allow access to API Gateway for a web javascript application. I managed to get the Cognito's sessionToken through signing-in with Google but I'm stuck on the API Gateway configuration for enabling the session token. Is there a good tutorial for this entire Federated Entity authentication workflow? Thanks! 回答1: Since you want to invoke APIs via authenticated Cognito identity, first Amend the auth role of the

AMAZON AWS How do i subscribe an endpoint to SNS topic?

天大地大妈咪最大 提交于 2019-11-27 11:59:55
问题 I'm implementing push notifications in an iOS app using Amazon SNS and Amazon Cognito services. Cognito saves tokens successfully, my app gets notified, everything's working well, but there is a thing. Now, when still in development, I need to manually add endpoints to an SNS topic, so all subscribers can get notifications. When i'll push an update to the App Store, there will be thousands of tokens to add. I was studying Amazon AWS documentation, but there was no clue whether it's possible

Cognito hosted UI

风格不统一 提交于 2019-11-27 10:09:25
问题 I have been looking into setting up a login for a web app that lets clients view data hosted in S3 and found that AWS Cognito has a hosted web UI [link] that handles most of the authentication flow for me, the issue I am facing is I cannot find out how to integrate the output of the web UI into my app. Most of the existing documentation in Cognito just references how to use the various APIs in creating your own UI which is leaving me with confusing answers to my issue. Is there any

Unable to verify secret hash for client in Amazon Cognito Userpools

六眼飞鱼酱① 提交于 2019-11-27 09:23:15
问题 I am stuck at "Amazon Cognito Identity user pools" process. I tried all possible codes for authenticating user in cognito userpools. But I always get error saying "Error: Unable to verify secret hash for client 4b*******fd". Here is code: AWS.config.region = 'us-east-1'; // Region AWS.config.credentials = new AWS.CognitoIdentityCredentials({ IdentityPoolId: 'us-east-1:b64bb629-ec73-4569-91eb-0d950f854f4f' }); AWSCognito.config.region = 'us-east-1'; AWSCognito.config.credentials = new AWS

Cognito User Pools - Is it possible to create a custom sign up/in form for Facebook login?

眉间皱痕 提交于 2019-11-27 09:17:36
I would like to use a Cognito User Pool for Facebook logins only, which may be possible using the built in login form, but I need to use my own. Theoretically, when it comes to a custom form, it shouldn't be hard: after I receive a user object from FB, I bind the user and email attributes to the ones in my User Pool and I save it. But what to do about the password field and future authentication? And here I have failed during my journey... ... userPool.signUp('FoobarUser', '**password?**', attributeList, null, function(err, result){ ... While digging deeper into the docs, I tried to implement

Verifying user is authenticated using AWS IOS SDK

给你一囗甜甜゛ 提交于 2019-11-27 08:04:02
问题 I created a lamdba function which does the following: var param = { IdentityPoolId: "us-east-1:the-full-identity-id", Logins: {} // To have provider name in a variable }; param.Logins["com.test.website.login"] = userIdICreatedAndStoredInDynamoDB; cognitoidentity.getOpenIdTokenForDeveloperIdentity(param, function(err, data) { if (err) return fn(err); // an error occurred else fn(null, data.IdentityId, data.Token); // successful response }); It returns the identityId and token for that user.

Cognito User Pools - Is it possible to create a custom sign up/in form for Facebook login?

风格不统一 提交于 2019-11-27 04:06:54
问题 I would like to use a Cognito User Pool for Facebook logins only, which may be possible using the built in login form, but I need to use my own. Theoretically, when it comes to a custom form, it shouldn't be hard: after I receive a user object from FB, I bind the user and email attributes to the ones in my User Pool and I save it. But what to do about the password field and future authentication? And here I have failed during my journey... ... userPool.signUp('FoobarUser', '**password?**',