-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore(cognito-identitypool): refactor and remove Digits authentication provider #31482
Conversation
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Exemption Request - this is a refactor; seeing no changes to the integ tests is expected |
There are so many proper nouns that are not proper nouns...
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
packages/@aws-cdk/aws-cognito-identitypool-alpha/lib/identitypool.ts
Outdated
Show resolved
Hide resolved
…ool.ts Co-authored-by: Shikha Aggarwal <[email protected]>
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.
I don't think merging is worth it...we should ask customers to specify the name of the thing that they need to, not some arbitrary value that makes our lives easier, but not theirs.
packages/@aws-cdk/aws-cognito-identitypool-alpha/test/integ.identitypool.ts
Outdated
Show resolved
Hide resolved
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Will update the integ test, since trying to
|
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
@Mergifyio update |
❌ Mergify doesn't have permission to updateFor security reasons, Mergify can't update this pull request. Try updating locally. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
N/A
Reason for this change
The authentication providers and their logic in this module have bad code smells, and thus, we have refactored them to bring the module more in line with CDK standards and best practices. In addition, the Digits authentication provider has been deprecated since September 2017, so it has been removed.
Description of changes
IdentityPoolProviders
andIdentityPoolAuthenticationProviders
interfaces have been merged, as there did not seem to be a reason to keep them separate, aside from differentiating third-party and internal providers.Description of how you validated changes
Unit tests and integration tests have been tweaked only as necessary to confirm these changes. Since they all still pass or show no need to be updated, we can confirm that this refactor does not affect them. The integration test has also been updated to reflect that the previous Google prop for
clientSecret
is deprecated, and useclientSecretValue
instead.BREAKING CHANGE: The
IdentityPoolProviderType.DIGITS
andIdentityPoolProviderUrl.DIGITS
enum values, andIdentityPoolDigitsLoginProvider
interface have been removed, as well as thedigits
attribute of theIdentityPoolAuthenticationProviders
interface.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license