amazon-cognito

AWS Cognito sign in not working (Swift-iOS)

夙愿已清 提交于 2019-12-09 14:03:44
问题 I've integrated cognito into my xcode project. The sign up/password update features are working correctly. However I can't seem to get the sign in process to work. I turned on the logs and I get the following error {"__type":"NotAuthorizedException","message":"Access Token has expired"} Domain=com.amazonaws.AWSCognitoIdentityProviderErrorDomain Code=-1000 "Authentication delegate not set" UserInfo={NSLocalizedDescription=Authentication delegate not set}] I have also implemented the

Can I authenticate with AWS Cognito from plain Java?

前提是你 提交于 2019-12-09 12:59:27
问题 I want to test custom user authorization with Cognito and do it from a simple java code. The problem is, the CognitoCachingCredentialsProvider requires an Android ApplicationContext and won't accept a null. The whole flow is supposed to go like this: User logs in using an email and password Backend (a Lambda function) gets an IdentityToken from Cognito and returns it to the user User can now retrieve credentials from Cognito and initialize an ApiClientFactory to authorize calls to other API

how to use AWS cognito with custom authentication to create temporary s3 upload security token

佐手、 提交于 2019-12-09 07:03:36
问题 So I'm a bit confused by the Amazon documentation on Cognito concerning one of their stated use cases: "use your own identity system... allowing your apps to save data to the AWS cloud". In my case I want to give them aws tokens to upload directly to s3 from the mobile client without putting my aws keys on the client device. In order to implement this on the server side - how do I generate the proper credentials so that the client can use this identity on the client app to upload to s3? Do I

AWS cognito userpools JavaScript SDK get user's policy documents

丶灬走出姿态 提交于 2019-12-08 18:26:03
问题 For a registered user in AWS Cognito Userpools, is it possible to retrieve the policy documents attached to the user through IAM roles through JavaScript SDK? The user case is to write a custom authorizer which authorize cognito id token and return the policy document with the IAM permission, user is capable of assuming through Cognito User Groups. 回答1: After carrying out further research, following approach is used to retrieve 'inline policies' attached to the user through IAM roles. From

AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity

*爱你&永不变心* 提交于 2019-12-08 17:45:20
问题 I've looked around similar problems, but couldn't resolve my problem. I'm developing an web application where the user will authenticate using AWS Cognito's authentication. The sign up part is ok, but when I try to sign in, I'm getting the "not authorized" exception. I've already tried to attach custom policies to my IAM Role (authorizing sts:AssumeRoleWithWebIdentity), but didn't work.. Here is how the code is written right now: var cognitoUser = new AWSCognito.CognitoIdentityServiceProvider

Amazon AWS SNS: How do i subscribe to SNS topic from iOS?

自作多情 提交于 2019-12-08 13:43:42
First of all I found the same question here , but it doesn't work... Maybe AWS SDK changes or something else, I don't know why... I want to subscribe to SNS topic from my iOS app. I am trying to do it with code from that answer, which I tried to change to get rid of errors: AWSSNS *sns = [AWSSNS defaultSNS]; AWSSNSCreatePlatformEndpointInput *endpointRequest = [AWSSNSCreatePlatformEndpointInput new]; endpointRequest.platformApplicationArn = @"arn:aws:sns:us-east-1:753780999999:app/APNS_SANDBOX/MyAppDevelopment"; endpointRequest.token = [self deviceTokenAsString:deviceToken]; [[[sns

Using Cognito Federated Identities from Xamarin

大憨熊 提交于 2019-12-08 12:13:37
问题 I guess my question, Understanding Cognito Identities, wasn't specific enough. I still can't figure out how to use a federated identity from a Xamarin app. Here's what I'm trying, but it's really quite random because I can't find any sample code for this task out there. I tried putting a breakpoint on the AddLogin line, and it never gets hit, even though breakpoint two lines up does get hit. There are too many new-to-me technologies in this code for me to know where to begin on tracking down

Not getting cognito Access token after login with amzon cognito domain UI (generated from userpool)?

你离开我真会死。 提交于 2019-12-08 09:23:14
问题 I'm not getting the access token from aws cognito user pool after authentication, I'm getting code in web url instead of token. The step I have done are following :- Step 1: Created an User pool and setup all the requirements. Step 2: Added Identity providers credential in userpool left navigation bar -> Federation -> Identity Providers(Facebook, google plus). Step 3: Done Attribute mapping(User pool left Navigation bar -> Federation -> Attribute Mapping). Step 4: Enabled Identity Providers

Cognito & DynamoDB: “not authorized to perform: dynamodb:UpdateItem on resource”

纵然是瞬间 提交于 2019-12-08 07:33:59
问题 After following exactly the "Getting started" guide for Amazon DynamoDB on Android, I end up with all the right tables created, role policies, etc. and that code: CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider( getApplicationContext(), "eu-west-1:01234567-abcd-8901-efab-234567890123", // Identity Pool ID Regions.EU_WEST_1 // Region ); AmazonDynamoDBClient ddbClient = new AmazonDynamoDBClient(credentialsProvider); final DynamoDBMapper mapper = new

Amazon AWS SNS: How do i subscribe to SNS topic from iOS?

邮差的信 提交于 2019-12-08 04:53:18
问题 First of all I found the same question here, but it doesn't work... Maybe AWS SDK changes or something else, I don't know why... I want to subscribe to SNS topic from my iOS app. I am trying to do it with code from that answer, which I tried to change to get rid of errors: AWSSNS *sns = [AWSSNS defaultSNS]; AWSSNSCreatePlatformEndpointInput *endpointRequest = [AWSSNSCreatePlatformEndpointInput new]; endpointRequest.platformApplicationArn = @"arn:aws:sns:us-east-1:753780999999:app/APNS_SANDBOX