aws-cdk custom resource to allow setting details for user pool client and integrations.
npm install @smither/aws-user-pool-client-settingsI have simply converted an already existing lambda/cloudformation solution into an easier to use format for aws-cdk users.
The actual lambda code is taken from https://github.com/rosberglinhares/CloudFormationCognitoCustomResources
If you want any additional features just open an issue, or better yet a merge request.
let userPoolClientSettings = new UserPoolClientSettings(
this,
userPoolClientSettings,
{
domain: domain.example.com,
userPool: userPool,
userPoolClient: userPoolClient,
supportedIdentityProviders: [IdentityProviders.COGNITO],
callbackURLs: [https://${cloudFront.domainName}],
logoutURLs: [https://${cloudFront.domainName}],
allowedOAuthFlowsUserPoolClient: true,
allowedOAuthFlows: ["code", "implicit"],
allowedOAuthScopes: ["openid", "email", "aws.cognito.signin.user.admin"]
}
);
``