-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(cognito): refresh modeling of import APIs, sign in & autoverified attrs #6422
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
Conversation
…d attrs * Switch to import UserPool based on ARN and Id. * IUserPool no longer defines provider information as members. * Rename `SignInType` to `SignInAlias`. Adjust its members so it's clearer on the options available. The CDK automatically figures out which ones are primary sign in attributes, and which ones are aliases. * `autoVerifiedAttributes` has a new type - `AutoVerifiedAttrs` - instead of the overall UserPoolAttribute. The attributes to auto-verify are computed automatically based on the value specified in `SignInAlias` unless explicitly specified. BREAKING CHANGES: * `UserPool.fromUserPoolAttributes()` has been replaced by `fromUserPoolId()` and `fromUserPoolArn()`. * `IUserPool` no longer contains `userPoolProviderName` and `userPoolProviderUrl`. * `SignInType` has been removed and replaced by `SignInAlias`. While most of the attributes are retained as is, the attribute `EMAIL_OR_PHONE` has been dropped and `PREFERRED_USERNAME` has been added. * The property `signInType` has been removed and replaced by `signInAliases`. This is now a list of type `SignInAlias`. * The property `usernameAliasAttributes` has been dropped and its functionality merged with the `signInAliases` property. * default has changed for the `autoVerifiedAttributes` property for a UserPool.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
eladb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the instructions here for the syntax for writing multi-line BREAKING CHANGES. Otherwise our CHANGELOG is going to be corrupted
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
eladb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please fix the breaking changes section per my previous comment
|
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request is now being automatically merged. |
The awslint rule exclusion
no-unused-type:@aws-cdk/aws-cognito.UserPoolAttributeis temporary and will be removed in a subsequent PR.Commit Message
feat(cognito): refresh modeling of import APIs, sign in & autoverified attrs (#6422)
Switch to import UserPool based on ARN and Id.
IUserPool no longer defines provider information as members.
Rename
SignInTypetoSignInAliases. Switch from an enum to aninterface for better modeling. The CDK automatically figures out
which ones are primary sign in attributes, and which ones are
aliases.
autoVerifiedAttributesproperty is now renamed toautoVerifywitha modified type -
AutoVerifiedAttrs. The attributes to auto-verifyare computed automatically based on the value specified in
SignInAliasesunless explicitly specified.BREAKING CHANGE:
UserPool.fromUserPoolAttributes()has been replacedby
fromUserPoolId()andfromUserPoolArn().IUserPoolno longer containsuserPoolProviderNameand
userPoolProviderUrl.signInTypeofUserPoolhas beenrenamed to
signInAliasesand given a new typeSignInAliases. Thelist of sign in types are now specified via boolean properties.
usernameAliasAttributesofUserPoolhasbeen dropped and its functionality merged with the
signInAliasesproperty.
autoVerifiedAttributesforUserPoolisnow renamed to
autoVerifyand its default has now changed. The newdefault is now determined by the value of
signInAliases.