Skip to content

Commit 1b501b9

Browse files
author
Daniel Bradley
committed
Disable public Cognito registrations
1 parent a58f938 commit 1b501b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Re-enable API write access.
1313
- Use newly migrated DB (using officeId).
1414
- Require officeId to be specified in config (to avoid renaming issues).
15+
- Disable public Cognito registrations.
1516

1617
## [1.2.0] - 2020-09-14
1718

infrastructure/index.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ const userPool = new aws.cognito.UserPool(`${serviceName}-users`, {
159159
preSignUp: preSignUp.arn,
160160
verifyAuthChallengeResponse: verifyAuthChallengeResponse.arn,
161161
},
162-
// TODO: Block public sign-ups to the user pool.
163-
// adminCreateUserConfig: {
164-
// allowAdminCreateUserOnly: true,
165-
// },
162+
adminCreateUserConfig: {
163+
allowAdminCreateUserOnly: true,
164+
},
166165
tags,
167166
});
168167

0 commit comments

Comments
 (0)