cognito pre-signup

0

Hello

I try to put a condition to only allow email addresses from my own domain to sign up for the cognito user pool. I tried the pre-signup trigger and a lambda function to check the information passed;however I was able to automatically confirm users with email addresses from my own domain but other domain email addresses were still accepted as unconfirmed.
Is there a way to stop the processes if the email provided is from a different domain?

thanks
RT

rtt
posta 4 anni fa377 visualizzazioni
1 Risposta
0

I found out what i needed.
On the else section of my code when the domain does not match, I needed to return the callback with the error.

rtt
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande