Use this to group Amazon Cognito-based sub-queries related to Lambda triggers.
Questions tagged [amazon-cognito-triggers]
79 questions
0
votes
1 answer
Passwordless Authentication with Cognito - How to determine if a user signed up with email or phone number
We have implemented the Custom Auth Triggers as described link here. We have the user pool set up to let users log in with either phone number or email.
The provided case is - the user has email & phone both verified in their Cognito account
The…

Tanuj Gupta
- 286
- 5
- 20
0
votes
1 answer
aws amplify: How to add user to a auth group when they signup to my app
I am making a app that requires to scope the users to a specific access level.
For Example there are Three groups
Admin FUll CRUD
Teacher Table Specific permissions
Student Table Specific permissions
While Admin will be created From the…

Parth Hiren Parekh
- 13
- 4
0
votes
1 answer
How can I get ClientMetadata parameter values in Custom Message Lambda trigger?
I am using Cognito's Custom message Lambda trigger to send a dynamic message before validation.I want to get tempPassword and applicationUrl values from ClientMetadata and encrypt them. As this document shows, clientMetadata is one of the Custom…

codinges
- 61
- 6
0
votes
1 answer
How we will send the different email template for reset password and confirm sign up in AWS cognito
I want to change the email template with both apis(signup, forgotPassword) of AWS Cognito. because I need to add a link to the code verify on that pages.

pmali
- 67
- 1
- 6
0
votes
1 answer
I am using AWS Cognito Service i am trying to remove OTP while Login
I am trying to design angular login page for authentication we are using cognito service
I want to remove OTP while Login how can i implement in cognito ?
0
votes
1 answer
How to execute more than one lambda in different microservices listening for the cognito PreSignUp event?
Until recently I had a lambda in a microservice that triggered with the cognito PreSignUp event. Now I need to run another one in another microservice, but since I put it in, only one really runs. What do I have to do to be able to execute both,…

Yoe
- 23
- 5
0
votes
1 answer
Cognito Custom Auth trigger not getting Session from Cognito
I tried to call the InitiateAuth API from AWS CLI. I have set up Define auth, create auth and verify auth lambda triggers correctly. The problem is that, when I ran the below command, it's showing error:
aws cognito-idp initiate-auth --client-id…

Cloudy
- 13
- 4
0
votes
1 answer
AWS Api Gateway Custom Trigger or Interceptor that gets called for every Request while using Cognito Authorizer
I have an AWS API Gateway which has many end points all of which are Authorized through a Cognito based Authorizer. So the Cognito is generating all the JWT tokens for me and I am using this Cognito Authorizer to Authenticate my end points.
I need a…

Dhana
- 505
- 1
- 8
- 27
0
votes
1 answer
Not receiving user details on Cognito Post Confirmation Trigger
I have created user pool on cognito, I want to trigger a lambda function post the user is confirmed his identity. I am using Post Confirmation as trigger from my aws cognito user pool. What i observe is when the user is confirming is identity i am…

saswat satapathy
- 61
- 1
- 7
0
votes
1 answer
Get Email and Password for AWS Post Confirmation Lambda
After a user confirms their email, we want to run a Post Confirmation Lambda in AWS.
This lambda will store the user's email and password to a database that is separate from Cognito, so we need to fetch these credentials from AWS.
We believe it…

Floating Sunfish
- 4,920
- 5
- 29
- 48
0
votes
1 answer
Error adding a user to a group after post confirmation in Cognito
I have created a userpool in Cognito.
What I would like to do is when a new user tries to sign-up using the UI, he gets a verification code. Once the user enters the code, a Post confirmation lambda must be triggered and it must add this newly…

some_programmer
- 3,268
- 4
- 24
- 59
0
votes
1 answer
Disable User in Post Confirmation Trigger
I have a user base with different types (user_type attribute will define the type). I want to disable users of certain type upon confirmation. i.e. flow: user signs up --> user receives confirmation email with code --> user enters code --> post…

Sal B
- 93
- 1
- 8
0
votes
2 answers
Why do I get random errors while executing jest tests that call cognito lambda triggers PostConfirmation and then PreTokenGeneration?
I have one PostConfirmation lambda trigger that adds data to DynamoDB via GraphQL (appsync https call) and then I query for that info in the PreTokenGeneration lambda.
When I test manually via my app UI things work.
But when executing via Jest…

mogarick
- 91
- 1
- 12
0
votes
1 answer
How to use AWS Cognito's adaptive authentication security heuristics in custom auth lambda trigger?
I’m using AWS Cognito Custom Authentication flow. I do not rely on Cognito for MFA. I want to make use of the adaptive authentication security heuristics in Cognito’s advanced security features. Unfortunately, the event in trigger does not include…

JVS
- 521
- 6
- 18
0
votes
1 answer
AWS Cognito use custom auth flow with external identity provider
is it possible to use AWS Cognito that has a custom authentication flow enabled, while also using an external identity provider like Facebook or Google? I've tried this with Facebook and the Cognito Hosted UI, but my DefineAuthChallenge-trigger was…

Sven Möhring
- 770
- 13
- 22