amazon-cognito

Google Authentication fails with AWS Cognito Identity Pool on Android

牧云@^-^@ 提交于 2019-12-13 17:51:31
问题 I get an NotAuthorizedException:Token is not from a supported provider of this identity pool when I call Amazon.CognitoIdentity.AmazonCognitoIdentityClient.GetIdAsync() I do not understand why, the token was obtained by authenticating with GoogleSignInApi , and the AWS Identity Pool is configured to federate to the Google authentication provider with the same "Google WebApp Client ID" used to authenticate on the Android device. Also I've tried to obtain the Google token using 2 different ways

AWS Cognito - reset user MFA

走远了吗. 提交于 2019-12-13 13:03:14
问题 I have a Cognito user pool which has MFA set to Required with TOTP only (i.e. no SMS). My question is how do I reset the MFA for a user? For example what if the user loses his phone so he doesn't have anyway to login. I have tried reset password but that only resets the password, it doesn't remove the MFA. At the bottom of this AWS documentation, it says NOTE A delete TOTP software token operation is not currently available in the API. This functionality is planned for a future release. Use

Cognito user pool authorizer With Serverless Framework

廉价感情. 提交于 2019-12-13 11:36:15
问题 I need to authorize my API end point using aws cognito userpool. I can do it manually, but I need to automate the authorization part with the serverless framework. Does the Serverless framework have support for aws cognito? If so, how do we setup an aws-userpool with serverless? 回答1: Yes . Serverless ( v1.5 ) support to Cognito user pool authorizer. If you use previous version of serverless you have to update v1.5 or later. For the user-pool authorization of api end point you have to specify

Creating a private Amazon API Gateway

三世轮回 提交于 2019-12-13 03:37:20
问题 I want to create an api for my app that is only accessible by my app. I have added the AWS Cognito identity to my appDelegate like so: AWSCognitoCredentialsProvider *credentialsProvider = [[DeveloperAuthenticationProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"poolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; AWSServiceManager.defaultServiceManager

Retrieve data from AWS Cognito using Boto3

与世无争的帅哥 提交于 2019-12-13 03:19:01
问题 I am using AWS Cognito to authenticate user, been successfully in storing user details like username, lastname, address etc. But unable to find any relevant methods to retrieve data stored in Cognito using Boto3 . Is it possible to retrieve user data in AWS Cognito or I should store them in RDS? 回答1: Yes, you can do this by using the get_user method. UserAttributes ( list ) -- An array of name-value pairs representing user attributes. For custom attributes, you must prepend the custom: prefix

How to get and pass deviceKey in social login using Cognito and AWS Amplify?

人盡茶涼 提交于 2019-12-13 03:12:20
问题 I am trying to use the function setDeviceStatusRemembered from Cognito in the social login, but it needs a deviceKey, which is not available in the user object returned. The project is made using React. I already tried some responses from StackOverflow and docs, but no success. The user is handled and created by Amazon via OAuth in social login, and after login, I am getting the user data with this: const cognitoUser = await Auth.currentAuthenticatedUser() After, the object cognitoUser shows

Amazon cognito: identity not found

家住魔仙堡 提交于 2019-12-13 02:38:43
问题 I am working on developer authenticated project.And I am trying to get credentials using this below code.But it is giving me following error. I have pasted IdentityId and Token manually into this code from server code: Caused by: com.amazonaws.services.cognitoidentity.model.ResourceNotFoundException: Identity 'ap-northeast-1:fe81cd76-e9d4-4416-99ea-b684b78743c8' not found. (Service: AmazonCognitoIdentity; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: 2ac65fe8-d41a-11e5

Integrating Congnito User Pools with Amazon Cognito Identity

℡╲_俬逩灬. 提交于 2019-12-13 02:31:45
问题 I am using Xcode(Swift). I tried writing code that will sign up, confirm user and sign in user to the user pool. Then on successful sign in, I want it to be linked with Amazon Cognito Identity. Basically, I want to have a as many Identity Id as many users in User Pool. So far I am able to sign up, confirm user and sign in (using explicit login). On Success of Sign In, I am trying to link this user to Cognito Identity Pool so that a unique Id can be generated for this user. Currently, If I

CognitoCachingCredentialsProvider getCachedIdentityId is null after app close and re-open

时光总嘲笑我的痴心妄想 提交于 2019-12-13 02:21:52
问题 I might be misunderstanding the intended behavior of this method, but this is what I am trying to use it for: -User logs in successfully -User closes app completely (closes in background as well) -User opens app again and doesn't have to log in again because CognitoCachingCredentialsProvider can check locally on the device to see she's still logged in The way I tried to accomplish this is to check, before being prompted to log in, what getCachedIdentityId() returns. If it returns not null,

Configuring Amazon Mobile Analytics and AWS Cognito in my iOS app raise some exception linked with IAM

╄→гoц情女王★ 提交于 2019-12-13 01:32:04
问题 Here is the error I get: AWSiOSSDKv2 [Error] AWSMobileAnalyticsDefaultDeliveryClient.m line:282 | -[AWSMobileAnalyticsDefaultDeliveryClient submitEvents:andUpdatePolicies:] | Unable to successfully deliver events to server. Response code: 0. Error Message: Error Domain=com.amazonaws.AWSCognitoIdentityErrorDomain Code=6 The operation couldn’t be completed. I have AuthRole in IAM with the following policy: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [