amazon-cognito

How to change User Status FORCE_CHANGE_PASSWORD?

我只是一个虾纸丫 提交于 2019-11-26 23:54:19
问题 Using AWS Cognito, I want to create dummy users for testing purposes. I then use the AWS Console to create such user, but the user has its status set to FORCE_CHANGE_PASSWORD . With that value, this user cannot be authenticated. Is there a way to change this status? UPDATE Same behavior when creating user from CLI 回答1: Sorry you are having difficulties. We do not have a one step process where you can just create users and authenticate them directly. We might change this in the future such as

AWS Cognito iOS Developer Authenticated Identities

[亡魂溺海] 提交于 2019-11-26 23:18:03
问题 I am trying to use amazon cognito with developer authenticated identities. My API is successfully returning an id and token. However, when I use these tokens to upload content to S3 I receive the following error: Not authorized to perform sts:AssumeRoleWithWebIdentity Below is my code for setting up the credentials provider. ZGAWSIdentityProvider *identityProvider = [ZGAWSIdentityProvider new]; [identityProvider setIdentityPoolId:AWS_IDENTITY_POOL_ID]; AWSCognitoCredentialsProvider

connect to AWS IoT using web socket with Cognito authenticated users

亡梦爱人 提交于 2019-11-26 22:44:08
问题 I'm trying to connect to AWS IoT using web socket from the browser. I've tried this example: https://github.com/awslabs/aws-iot-examples/tree/master/mqttSample And another one a little bit modfied so it can be used with Cognito Identity pool logged users. https://github.com/dwyl/learn-aws-iot/blob/master/src/js/utils/request.js#L27 I can successfully connect if I use a IAM user with a valid IoT policy, but if I use the user credentials, I receive a "101 Switching Protocols" response but then