aws-sdk

AWS cognitos - User Pools with Federated Identity providers

六眼飞鱼酱① 提交于 2019-12-11 16:16:06
问题 I am new to AWS and learning about Cognito Pools. I am planning to use Cognito userpools connected with Cognito Federated Identity pool. I do not want to use Login with hosted UI feature or any other login UI to log in. Is the following true/possible :- From back end on calling some Cognito API with username and password it can automatically call the configured User pool Federated Identity provider to authenticate the user and then generate the JWT token. If yes can you please refer/guide me

Attributes mapping in cognito user pool from fb/Google.

喜欢而已 提交于 2019-12-11 15:59:07
问题 There's new feature in aws cognito to allow user to sign in through external federation identity providers in user pool. I followed the steps given the aws Doc. 1) select identity providers 2) attributes mapping But when I sign up, fb/ Google account ID don't get map in user pool. Can someone give me a proper code to do this. I mean how should I map fb/ Google user sign in programmatically in cognito user pool. 回答1: Currently, only the Facebook id, Google sub, and Login with Amazon user_id

Why do I need to hardcode credentials to connect to AWS using the javascript SDK?

女生的网名这么多〃 提交于 2019-12-11 15:54:07
问题 I've asked this other question here that leads me to believe, by default, the JavaScript AWS SDK looks for credentials in a number of places in your environment without you having to do anything. The order of places it checks is listed here: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html I've got some working code that connects to AWS Athena. I can only get it to work if I hardcode the credentials manually, which seems to contradict the

AWS IoT SDK - main L#206 Error subscribing : -28 (C code)

谁说胖子不能爱 提交于 2019-12-11 15:50:14
问题 I am trying to run the example in this tutorial from AWS IoT (AWS IoT Embedded C SDK). My aws_iot_config.h file has the following configuration: #define AWS_IOT_MQTT_HOST "XXXXXXX.iot.us-east-2.amazonaws.com" ///< Customer specific MQTT HOST. The same will be used for Thing Shadow #define AWS_IOT_MQTT_PORT 8883 ///< default port for MQTT/S #define AWS_IOT_MQTT_CLIENT_ID "c-sdk-client-id" ///< MQTT client ID should be unique for every device #define AWS_IOT_MY_THING_NAME "SM1" ///< Thing Name

aws-sdk (v 2.395.0) and react-native

老子叫甜甜 提交于 2019-12-11 15:35:39
问题 Am in the throes of upgrading a react native application that I've inherited responsibilities for, and am coming across some build issues after upgrading react native. I have decided to nuke the old project (based on RN 0.53.3) and created a new project with RN 0.58.2. After shoe horning the source in, my builds to simulator were getting hung up in the metro bundler at ~99%, with the application eventually timing out telling me that it Could not connect to development server. Unable to

AWS IAM Python script - Add new User to existing Group

让人想犯罪 __ 提交于 2019-12-11 15:31:17
问题 Context: I have a Python script that can create a User, decide on programmatic access or not, list the current Groups for Users. My issue is that I wish to add the new User to one of the existing, shown Groups. I have tried the code below but get the following error: python ec2-play.py Please enter your e-mail address: 1@1.com Do you require programmatic access?(y/n): n Console access only [...list of Groups...] 1: admin-short-term 2: aws-admin 3: aws-admin-mfa 4: aws-training Please pick a

InvalidAction: The action or operation requested is invalid. Verify that the action is typed correctly

好久不见. 提交于 2019-12-11 15:28:22
问题 I am using AWS Cognito Service Provider to create and list User Pool Clients. I have a locally installed DynamoDB to store the additional data. But I am getting the above error in the callback. I looked a lot for the error context but couldn't fine one. const cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider(); cognitoidentityserviceprovider.listUserPoolClients(params, function(clientListError, clientListData) { console.log(clientListError) if(clientListError){ return

Mocking aws-sdk promises with aws-sdk-mock using jest

爱⌒轻易说出口 提交于 2019-12-11 14:57:23
问题 can you please see below code and tell me what is wrong with it? The code times out after 5 seconds, but I would expect it to run just fine, as per official description. Does anyone see what is fundamentally wrong? import * as AWS from "aws-sdk-mock"; import * as _AWS from "aws-sdk"; beforeAll(async (done) => { //get requires env vars }); describe("the module", () => { it("should read from the database", async () => { AWS.mock('DynamoDB.DocumentClient', 'get', (error, callback) => { callback

AWS Image getBytes returning null

我的未来我决定 提交于 2019-12-11 14:55:02
问题 I am trying to convert and AWS Rekognition Image to java BufferedImage . In order to do this I need the byte array from the AWS Image. However, when I call the getBytes method it returns null instead of returning ByteBuffer . My code is as below: //Load an Rekognition Image object from S3 Image inputImage = new Image() .withS3Object(new com.amazonaws.services.rekognition.model.S3Object().withName(key).withBucket(bucket)); DetectFacesRequest request = new DetectFacesRequest().withImage