amazon-cognito

AWS Cognito adminCreateUser from Lambda

筅森魡賤 提交于 2020-01-13 10:13:43
问题 I'm trying to create a user in a AWS User Pool from an AWS Lambda I tried with this script took from what seems to be the official JavascriptSDK for the AWS but can't get it working. http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html#adminCreateUser-property I keep getting this error: TypeError: cognitoidentityserviceprovider.adminCreateUser is not a function 'use strict' const AWS= require('aws-sdk'); exports.handler = (event, context, callback) => {

How to use Amazon Cognito Logout endpoint?

那年仲夏 提交于 2020-01-12 18:49:50
问题 I am using AWS Cognito in my application. While doing logout i am calling the Logout Endpoint. But after doing logout, I am still able to generate the id-tokens using the old refresh token. It means my logout endpoint is not working any more. I am saving the tokens in my local storage, And while doing the logout i am clearing the store manually. My Question is: How to properly use the logout mechanism of AWS Cognito? 回答1: I'm not sure which framework you are using, but I'm using Angular.

How to use Amazon Cognito Logout endpoint?

被刻印的时光 ゝ 提交于 2020-01-12 18:49:12
问题 I am using AWS Cognito in my application. While doing logout i am calling the Logout Endpoint. But after doing logout, I am still able to generate the id-tokens using the old refresh token. It means my logout endpoint is not working any more. I am saving the tokens in my local storage, And while doing the logout i am clearing the store manually. My Question is: How to properly use the logout mechanism of AWS Cognito? 回答1: I'm not sure which framework you are using, but I'm using Angular.

How to allow my user to reset their password on Cognito User Pools?

核能气质少年 提交于 2020-01-12 04:03:27
问题 So in my app I obviously want to provide the means for users to reset their passwords. The issue I'm having though is that the new documentation for User Pools is pretty ambiguous on this topic. Here is what they tell you to do for a Forgot Password flow, and the link you may find it at: cognitoUser.forgotPassword({ onSuccess: function (result) { console.log('call result: ' + result); }, onFailure: function(err) { alert(err); }, inputVerificationCode() { var verificationCode = prompt('Please

Should I use AWS Cognito “username” or “sub” (uid) for storing in database?

对着背影说爱祢 提交于 2020-01-11 15:51:27
问题 I have an authenticated user in AWS Cognito service and want to store his unique identifier in the database. Should I store user's username (it's his phone number) or his "sub" (it's his uid)? All Amazon API functions like AdminGetUser are using "username" parameter, but not sub/uid. But I also read that article and the author said "Always generate the policy on value of 'sub' claim and not for 'username' because username is reassignable. Sub is UUID for a user which is never reassigned to

AWS Cognito / Getting user information from the sub

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 13:16:07
问题 I have a working iOS app using AWS Cognito AWSMobileClient where users can sign in and log in/out with AWSAuthUI. What I want to do next is: having a sub from another user (e.g. 7y873ff7-.....u9h4k) I would like to get the information from that other user. After searching the net it seems that I need to use something called ListUsers, but I am not 100% confident. Can anyone confirm this and give me some tip about how I need to go to get done what I want? Knowing that I am working in Swift. ..

AWS Cognito for API token authentication

百般思念 提交于 2020-01-07 08:59:10
问题 I am building an HTTP API in java that uses AWS cognito, and developer authenticated identities to provide tokens to secure the API. I have configured the login system to issue a cognito token when a user logs in and the cognito identity pool contains each user and a developer identity associated with my backend, but I am having a very difficult time finding a straightforward way to retrieve a users specific developer identifier from the cognito token. I have attempted to use the

Integrating User Pools with Amazon Cognito Identity with authentication provider

假装没事ソ 提交于 2020-01-07 08:24:49
问题 I follow the steps described in the link: http://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-integrating-user-pools-with-identity-pools.html to integrate my user pool with cognito identity. But every time I am trying to access amazone S3 using the Authentication providers I get the following error: E/CognitoCachingCredentialsProvider: Failure to get credentials com.amazonaws.services.cognitoidentity.model.NotAuthorizedException: Logins don't match. Please include at least

creating user using AWS cognito identity

强颜欢笑 提交于 2020-01-07 05:41:34
问题 I am learning to create a serverless API server using AWS lambda, dynamodb, cogito sync. It was going well until I got confused with users table. So basically, I am trying to make twitter clone API. So as user I should be able to create post, follow another users etc. Signup and Signin are successfully handled by Cognito Identity, the problem is how do I access the Users data on the cognito? A user can have following and followers attributes which contains other users ID. What I did currently

Is this auth flow possible with Amazon Cognito Identity and User Pool

允我心安 提交于 2020-01-06 18:02:28
问题 i'd like to explain an auth flow and hope you can answer if amazon cognito the correct solution for this. Requirements: For every Login (Username/Password, Facebook, Google etcpp), there should be a valid User Pool account. Flow Facebook (no identity or user pool account exists). Customer clicks "Login with Facebook": 1) calling GetOpenIdToken -> with the FB AccessToken 1a) at the same time, use the FB AccessToken to fetch the email address from Facebook 2) calling AdminCreateUser with a