Skip to content

Conversation

@ignacionistal
Copy link
Contributor

Added Pre-Signup lambda function to prevent default behavior from Cognito to register users from google sign in.

Type of Change*

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

Default behavior for Cognito with Google SSO enables is to register users not in user pool yet. I've added a new lambda to prevent the user creation and return an error in cases where the user is not registered in the platform.

Testing*

Manual testing in dev environment.

Impact

No impact for application without google credentials set up.

Checklist*

  • No new errors or warnings have been introduced.
  • All tests pass successfully and new tests added as necessary.
  • Documentation has been updated accordingly.
  • Code adheres to the coding and style guidelines of the project.
  • Code has been commented in particularly hard-to-understand areas.

Copy link
Contributor

@juanarroqui juanarroqui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please take a look at the comments

* @param event
*/
export const handler: Handler = async (event: PreSignUpTriggerEvent): Promise<PreSignUpTriggerEvent> => {
console.log('PRE_SIGNUP EVENT: \n' + JSON.stringify(event, null, 2));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this log still here intentionally?

@ignacionistal ignacionistal merged commit 3ea9421 into development Feb 9, 2026
1 check passed
@ignacionistal ignacionistal deleted the feat/add-pre-signup-lambda branch February 9, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants