Questions tagged [amazon-cognito-triggers]

Use this to group Amazon Cognito-based sub-queries related to Lambda triggers.

79 questions
1
vote
1 answer

Aws Cognito Presignup trigger fails with InvalidLambdaResponseException

My pre-signup-trigger lambda fails with the InvalidLambdaResponseException. Using nodejs. The user registration works without the trigger. I tried pretty much all solutions suggested on SO how to handle this trigger. I have tried ending the lambda…
roadster
  • 51
  • 2
  • 8
0
votes
0 answers

Importing users to Database while federating from ADFS

In one of my applications, I am federating users from the client's ADFS into my Cognito user pool. For this, I have imported metadata files from the client's ADFS into the SAML identity provider in my Cognito pool. With this arrangement, the AD…
0
votes
1 answer

serverless deploy fails while creating Cognito PostConfirmation lambda trigger

I have an existing Cognito User Pool. When a user signs up through the web app, I want this user ID to get added into our Postgres DB. For this, I have written a Lambda function which should get triggered after the user confirms their email address.…
0
votes
1 answer

What are you supposed to return from a lambda trigger function of type "Post confirmation trigger" in c#?

I am working on creating a user record in my database that corresponds to a user in my cognito pool. The code works fine, but in the fronted i keep receiving an error saying "Unrecognizable lambda output" I have tried returning the context as I have…
0
votes
1 answer

How do I continue the CUSTOM_AUTH flow for a CUSTOM_CHALLENGE after PASSWORD_VERIFIER runs?

I have been following this guide to implement email OTP in AWS Cognito. I have my user pool and lambdas configured as the guide suggests, and am able to successfully trigger the SRP_A and PASSWORD_VERIFIER steps. However, I never continue to the…
Isaac Askew
  • 1,281
  • 2
  • 17
  • 30
0
votes
1 answer

Cognito passwordless flow with username and email as aliasAttribute

I'm made a cognito passwordless flow and i create userPool with this SAM template: UserPool: Type: "AWS::Cognito::UserPool" Properties: UserPoolName: !Ref UserPoolName Schema: - Name: phone_number …
0
votes
1 answer

View Hosted UI button generating multiple codes for multiple clicks in AWS

I am using AWS cognito to provide the JWT token auth for my apis.And i am using Authorization_code grand type.And when i click on View Hosted UI, it's redirecting me to login and after success giving the code and using that code, i am generating…
venkat
  • 345
  • 8
  • 21
0
votes
1 answer

How can I attach an IoT Core policy to a Cognito Identity Id on a post authentication Lambda trigger for an Amplify deployed web application?

Situation: I have a ReactJS web application that is deployed through AWS Amplify and uses Amplify Studio backend to handle authentication through Cognito services and aws-amplify sdk (sign in, sign up). The web application also implements the use…
0
votes
0 answers

How to pass a parameter to a post confirmation Lambda using Cognito Hosted UI

I want to pass a parameter for a post-confirmation AWS Lambda function in an AWS Cognito Hosted UI sign-up URL. I have the following workflow: A user chooses a plan on a pricing page, then passes authentication, and then I want to save the chosen…
0
votes
1 answer

How can I store aws cognito user after sign up in a mongodb database?

I want to store my users after they sign up in a mongodb database. I am using aws cognito. I found that you can create a lamda function that can run after "post confirmation". can anyone tell me how can I do that? from what I understand: I can…
0
votes
0 answers

Confirmation process for API Users in AWS Cognito

We have AWS Api Gateway with developer portal. At this moment API developers can sign-up themselves to create a new user account to Cognito. AWS Cognito supports self-service sign-up and an invite mode. In self-service user can confirm account via…
0
votes
0 answers

How are the logins in Apps created in Amazon Cognito tracked?

We were analysing Amazon Cognito usage and could find the concept of Monthly Active Users(https://aws.amazon.com/cognito/pricing/) but I am really confused with how the app logins in Cognito may get tracked by Amazon. Can anybody share any…
0
votes
0 answers

An error occurred (UserLambdaValidationException) when calling the SignUp operation:

I have a cognito userpool created and I have set a pre signup trigger in Cogito user pool to a lambda function. Below is the code of Lambda function. def new_user(username, password): try: resp = client.sign_up( …
0
votes
1 answer

Assigning one lambda function to multiple Cognito User Pool triggers

In my CDK I create a lambda function lets call NotifyLambda that can be assigned to a Cognito User Pool CustomMessage trigger. For some reason if I apply this lambda function to one user pool, it works fine. But if I try to assign this lambda…
0
votes
1 answer

AWS Cognito Lambda triggers not created with CDK

I can't understand why the Cognito Lambda triggers are not created. The lambdas are created, but the list of triggers in the AWS console is empty and I have to choose them manually. const postConfirmationLambda = new NodejsFunction( this, …