Skip to content

Commit

Permalink
ユーザプールクライアントを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
AsukaNamiki committed Mar 18, 2024
1 parent 57b7972 commit dcd3a25
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/backend/lib/backend-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class BackendStack extends cdk.Stack {
removalPolicy: cdk.RemovalPolicy.DESTROY,
});

const userpool = new cognito.UserPool(this, `diary-user-pool`, {
const userPool = new cognito.UserPool(this, `diary-user-pool`, {
userPoolName: `diary-user-pool`,
signInAliases: {
email: true,
Expand Down Expand Up @@ -72,5 +72,19 @@ export class BackendStack extends cdk.Stack {
accountRecovery: cognito.AccountRecovery.EMAIL_ONLY,
removalPolicy: cdk.RemovalPolicy.DESTROY,
});

// User Pool Client
const userPoolClient = new cognito.UserPoolClient(this, "diary-userpool-client", {
userPool,
userPoolClientName:"diary-userpool-client",
authFlows: {
adminUserPassword: true,
custom: true,
userSrp: true,
},
supportedIdentityProviders: [
cognito.UserPoolClientIdentityProvider.COGNITO,
],
});
}
}

0 comments on commit dcd3a25

Please sign in to comment.