-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cognito: Passwordless authentication support #32265
Comments
I might be missing something in the chain that goes from Cognito API requests to CDK. It looks like the AWS JavaScript SDK method for createUserPool doesn't have the passwordless fields either I can create things in the console but this negates the benefits of Infrastructure as Code |
Thank you for your feature request. To support that, we'll first need CloudFormation support. Just checked https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-policies.html but unfortunately I can't find relevant support. Please help the CFN team prioritize by create a feature request at cloudformation-coverage-roadmap, as soon as CFN rolls out the support, CDK should be ready to get it supported as well. |
I opened #2200 there but I would request that AWS collaborate on support across teams internally. The burden for starting the process of updating CloudFormation and CDK after Cognito API changes shouldn't fall to users. If anything, AWS can improve internal collaboration so support is launched along side new features, not lagging behind |
+1. Adding a link to https://github.com/aws-samples/amazon-cognito-passwordless-auth/blob/main/cdk/lib/cognito-passwordless.ts for more context. |
CloudFormation support seems to be shipped. L1 construct will be updated in a few days. |
Once L1 is merged, any ETA on L2 release? |
Here is an escape hatch until the PR for the L2 construct is merged written for TS:
|
Describe the feature
Support Cognito managed passwordless login as described in this doc
Use Case
I would like to configure Cognito to manage passwordless authentication in my AWS CDK project.
I am stuck on the PoliciesProperty not supporting SignInPolicy
This type is generated from the CloudFormation user pools policy type which is in turn generated from the create user pool request
The create user pool request type is updated but the generated CloudFormation and CDK types stemming from it are not updated.
This seems to be a new feature released on November 22nd, 2024.
I expect auto generated types to be updated 24 hours later.
Proposed Solution
Update Cognito CDK to support the new Congito passwordless authentication features.
Other Information
No response
Acknowledgements
CDK version used
NodeJS aws-cdk-lib 2.170.0
Environment details (OS name and version, etc.)
Node 22
The text was updated successfully, but these errors were encountered: