Skip to content

Commit

Permalink
Disable public Cognito registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bradley committed Sep 14, 2020
1 parent a58f938 commit 1b501b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Re-enable API write access.
- Use newly migrated DB (using officeId).
- Require officeId to be specified in config (to avoid renaming issues).
- Disable public Cognito registrations.

## [1.2.0] - 2020-09-14

Expand Down
7 changes: 3 additions & 4 deletions infrastructure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,9 @@ const userPool = new aws.cognito.UserPool(`${serviceName}-users`, {
preSignUp: preSignUp.arn,
verifyAuthChallengeResponse: verifyAuthChallengeResponse.arn,
},
// TODO: Block public sign-ups to the user pool.
// adminCreateUserConfig: {
// allowAdminCreateUserOnly: true,
// },
adminCreateUserConfig: {
allowAdminCreateUserOnly: true,
},
tags,
});

Expand Down

0 comments on commit 1b501b9

Please sign in to comment.