capless / warrant

Python library for using AWS Cognito. With support for SRP.
Apache License 2.0
468 stars 192 forks source link

Add support for custom validation in pre-sign up trigger #111

Closed takeahsiaor closed 6 years ago

takeahsiaor commented 6 years ago

This PR adds an optional kwarg to Cognito.register to support passing custom validation data to Cognito for use in a pre-sign up lambda trigger.

Boto3 sign_up documentation: http://boto3.readthedocs.io/en/latest/reference/services/cognito-idp.html#CognitoIdentityProvider.Client.sign_up

AWS pre sign-up documentation: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-lambda-trigger-syntax-pre-signup.html