Skip to content
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

fix(amplify-category-auth): update attr mapping... #8135

Merged
merged 2 commits into from Oct 26, 2021
Merged

fix(amplify-category-auth): update attr mapping... #8135

merged 2 commits into from Oct 26, 2021

Conversation

letsbelopez
Copy link
Contributor

…and update siwa w/ out needing to pass private key

Cognito SDK takes null for the private key if users want to update everything but the private key (for headless use)
and updating to reflect the correct attribute mapping for siwa.

fix #7793

Description of changes

Updating string-maps to reflect the new SIWA attr mapping. Updating the cfn template for the custom resource that updates SIWA identity provider. Cognito SDK can take a null value as the private key on an update. If null is passed all other values are updated but the private key. Makes it easier for users to update SIWA because the private key value may not be easy to reproduce. This matches what Cognito is doing in their console app.

Issue #, if available

#7793

Description of how you validated changes

Ran cli commands:

amplify add auth and verified attribute mappings output.
amplify push
verified SIWA attributes in Cognito Console
amplify remove auth
amplify push
Ran tagged release for this fix with Amplify Console builds.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

David Lopez added 2 commits August 17, 2021 18:51
…ivate key and attr mapping

Cognito SDK takes null for the private key if users want to update everything but the private key
and updating to reflect the correct attribute mapping for siwa

fix #7793
@letsbelopez letsbelopez marked this pull request as ready for review September 9, 2021 16:18
@letsbelopez letsbelopez requested a review from a team as a code owner September 9, 2021 16:18
@ammarkarachi ammarkarachi merged commit a35352d into aws-amplify:master Oct 26, 2021
@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Nov 11, 2021
@github-actions
Copy link

👋 Hi, this pull request was referenced in the v6.4.0 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v6.4.0.

@github-actions
Copy link

👋 Hi, this pull request was referenced in the v7.3.0 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v7.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Social sign in with apple scope, mapping and environment variables
2 participants