Join Slack
Powered by
Is there a way I can enable this upon creation usi...
# help
f
Francis Menguito
06/02/2022, 8:18 AM
Is there a way I can enable this upon creation using the
Auth
class?
g
Gabriel
06/02/2022, 9:35 AM
you can set this when creating user pool with CDK
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.AuthFlow.html
and then create the auth const auth = new Auth(this, "Auth", { cdk: { userPool: userPool, userPoolClient: userPoolClient, }, });
f
Francis Menguito
06/02/2022, 9:58 AM
Thanks
@Gabriel
Francis Menguito
06/02/2022, 9:59 AM
@Gabriel
how about this client secret generation?
g
Gabriel
06/02/2022, 10:40 AM
@Francis Menguito
I think when it creates web app user pool client then there is no secret. (secrets are for native clients or if its federated login) But you can specify a secret when creating the user pool client:
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClient.html
f
Francis Menguito
06/02/2022, 10:41 AM
Ayt. Thank you!
f
Frank
06/03/2022, 6:36 PM
Thanks
@Gabriel
Open in Slack
Previous
Next