Questions tagged [aws-userpools]

219 questions
1
vote
1 answer

AWS Cognito Identity Pool Login and Persistence

Primary Objective Persist login through the use of Cognito User Pools and Cognito Federated Identities in an Android app. The app should handle refresh of tokens (via the sdk?). Email is used as username. Only allow 1 unique username (email)…
1
vote
1 answer

What is the use of SigningCertificate in AWS Cognito

I am using AWS Cognito for my user authentication. I want to know the actual use of SigningCertificate in AWS cognito? We can get the SigningCertificate of AWS Cognito usign this GetSigningCertificate API. We are passing the UserPoolID in API and it…
Jayesh Dhandha
  • 1,983
  • 28
  • 50
1
vote
0 answers

Specifying username/password for CognitoCachingCredentialsProvider

I am trying to use CognitoCachingCredentialsProvider with a User Pool requiring login through the User Pool with a username and password. I have finally got to the point where I am getting the error Unauthorized access is not supported for this…
Trevortni
  • 688
  • 8
  • 23
1
vote
0 answers

Migration trigger not called on sign in with google

I am trying to migrate user from my current directory to cognito userpool. I was able to migrate user when they enter username and password, but not able to migrate when user sign in with google. I have linked google accounts with existing user in…
1
vote
1 answer

How do a get a specific attribute from AWS Cognito user pools after user?.getDetails call

After signing in successfully I want to get the value of a particular attribute. Is it possible to do this without iterating through each attribute? I know I can't subscript but is there any other way? So in the example below what I want is the…
alionthego
  • 8,508
  • 9
  • 52
  • 125
0
votes
0 answers

Where is the password parameter in an AWS User pool Lambda trigger event?

I want to use an AWS Lambda Pre-SignUp trigger to manually insert a new user into my AWS Cognito User Pool whilst also adding some of their information to a database. I am using the AdminCreateUser function and it is working as intended. However I…
0
votes
0 answers

React - AWS Amplify Auth Federated Sign In Facebook

I develop react sign in page using amplify with cognito user pool. I have setup Federated identity provider sign-in using Facebook and use Facebook graph API version v17.0 I have deploy page to s3 and using cloudfront. The problem is when open on pc…
0
votes
0 answers

How do I programmatically setup a userpool in AWS Cognito using Go APIs?

I have successfully setup a userpool using the standard AWS Cognito wizard. However I do need to use the AWS SDKs and APIs for adding additional functionality to my userpool. I am fairly new to AWS and I cannot find the right documentation to create…
0
votes
0 answers

Update mobile number during login if MFA is required in cognito and only sms mfa is allowed

I have a scenario where the users can only have SMS MFA. I would like to allow the user to add their mobile number during login if they don't have a mobile number already if the user pool has MFA required, currently I don't find a way to do that. I…
king.reflex
  • 313
  • 4
  • 10
0
votes
0 answers

How to add a user to a user group by default in AWS CDK (Python)?

I am creating a AWS Cognito user pool using CDK called user_pool. I also created a user group like this: cfn_user_pool_group_default = cognito.CfnUserPoolGroup( self, "DefaultGroup", user_pool_id=user_pool.user_pool_id, …
0
votes
1 answer

How to set LambdaConfig of a userpool in the AWS Cognito Console

My Cloudformation template.yml correctly instantiates a Cognito userpool like the next one: UserPool: Type: "AWS::Cognito::UserPool" Properties: UserPoolName: auth-template-user-pool UsernameAttributes: - email …
0
votes
1 answer

How to add WAF to my cognito UserPool with cdk

I can't find examples or documentation about how to use cdk to attach a waf to a cognito userpool.
kokito
  • 1,114
  • 1
  • 13
  • 19
0
votes
1 answer

Property validation failure - Cloudformation Template for AWS::Cognito::UserPool

I keep getting a Property validation failure error in cloudformation when I run my AWS::Cognito::UserPool resource template. Here's how the scripts look like Resources: ESRVCognitoUserPool: Type: "AWS::Cognito::UserPool" Properties: …
0
votes
0 answers

Send custom email after creating user on aws cognito

I want to send custom email to users, when I create their account using AdminCreateUser and ForgotPasswordCommand. I am trying to do that using lambda trigger, but I have no knowledge of how to invoke it. I am using NestJS framework for api. Things…
0
votes
0 answers

Cognito federated login - Map userpool email and username both to federated identity email

I am having a Cognito userpool where currently only the Cognito login is supported and no social identity provider is supported. Users sign-up with their email and password where the email is also used as the username. Now we are adding support for…
iammrmehul
  • 730
  • 1
  • 14
  • 35