AWS cognito documentation change
Summary
Restructured content, added trigger sources table, setup steps, and decryption/redirect examples. Removed duplicate trigger sources section.
Security assessment
Changes focus on improving documentation structure and adding implementation examples for SMS code handling. While related to authentication flows, there's no evidence of addressing a specific security vulnerability.
Diff
diff --git a/cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.md b/cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.md index ea0acce4e..1eb91bd1f 100644 --- a//cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.md +++ b//cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.md @@ -5 +5 @@ -Custom SMS sender Lambda trigger parametersActivating the custom SMS sender Lambda triggerCode exampleEvaluate SMS message capabilities with a custom SMS sender functionCustom SMS sender trigger sources +Trigger sourcesParametersSet upExample: decrypt codeExample: Redirect to email @@ -42,0 +43,14 @@ To set up this trigger, perform the following steps: +## Custom SMS sender Lambda trigger sources + +The following table shows the triggering event for custom SMS trigger sources in your Lambda code. + +`TriggerSource value` | Event +---|--- +`CustomSMSSender_SignUp` | A user signs up and Amazon Cognito sends a welcome message. +`CustomSMSSender_ForgotPassword` | A user requests a code to reset their password. +`CustomSMSSender_ResendCode` | A user requests a new code to confirm their registration. +`CustomSMSSender_VerifyUserAttribute` | A user creates a new email address or phone number attribute and Amazon Cognito sends a code to verify the attribute. +`CustomSMSSender_UpdateUserAttribute` | A user updates an email address or phone number attribute and Amazon Cognito sends a code to verify the attribute. +`CustomSMSSender_Authentication` | A user configured with SMS multi-factor authentication (MFA) signs in. +`CustomSMSSender_AdminCreateUser` | You create a new user in your user pool and Amazon Cognito sends them a temporary password. + @@ -219,2 +232,0 @@ The Amazon Resource Name (ARN) of the KMS key that you want to use to encrypt an - * Custom SMS sender Lambda trigger sources - @@ -236,14 +247,0 @@ Don't use the templates in [amazon-cognito-user-pool-development-and-testing-wit -## Custom SMS sender Lambda trigger sources - -The following table shows the triggering event for custom SMS trigger sources in your Lambda code. - -`TriggerSource value` | Event ----|--- -`CustomSMSSender_SignUp` | A user signs up and Amazon Cognito sends a welcome message. -`CustomSMSSender_ForgotPassword` | A user requests a code to reset their password. -`CustomSMSSender_ResendCode` | A user requests a new code to confirm their registration. -`CustomSMSSender_VerifyUserAttribute` | A user creates a new email address or phone number attribute and Amazon Cognito sends a code to verify the attribute. -`CustomSMSSender_UpdateUserAttribute` | A user updates an email address or phone number attribute and Amazon Cognito sends a code to verify the attribute. -`CustomSMSSender_Authentication` | A user configured with SMS multi-factor authentication (MFA) signs in. -`CustomSMSSender_AdminCreateUser` | You create a new user in your user pool and Amazon Cognito sends them a temporary password. - @@ -256 +254 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please -Custom email sender Lambda trigger +Custom email sender