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... #7979

Merged
merged 2 commits into from
Sep 7, 2021
Merged

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

merged 2 commits into from
Sep 7, 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:

  1. amplify add auth and verified attribute mappings output.
  2. amplify push
  3. verified SIWA attributes in Cognito Console
  4. amplify remove auth
  5. 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.

…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 requested a review from a team as a code owner August 17, 2021 19:04
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2021

Codecov Report

Merging #7979 (c6d9678) into master (e34bfbe) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7979   +/-   ##
=======================================
  Coverage   53.70%   53.70%           
=======================================
  Files         563      563           
  Lines       28554    28554           
  Branches     5541     5541           
=======================================
  Hits        15336    15336           
  Misses      12221    12221           
  Partials      997      997           
Impacted Files Coverage Δ
...ider-utils/awscloudformation/assets/string-maps.js 86.20% <ø> (ø)
...udformation/service-walkthroughs/auth-questions.js 3.03% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e34bfbe...c6d9678. Read the comment docs.

@pananapread pananapread merged commit 94d2491 into aws-amplify:master Sep 7, 2021
@jhockett
Copy link
Contributor

jhockett commented Sep 7, 2021

Reverting this change as it was merged by accident. @letsbelopez could you please open another PR with your changes?

jhockett added a commit that referenced this pull request Sep 7, 2021
jhockett added a commit that referenced this pull request Sep 7, 2021
@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Sep 9, 2021
@github-actions
Copy link

github-actions bot commented Sep 9, 2021

👋 Hi, this pull request was referenced in the v5.5.0 release!

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

marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
* fix(amplify-category-auth): fixes being able to update siwa w/ out private 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 aws-amplify#7793

* fix(amplify-category-auth): enable update siwa w/ out private key

Co-authored-by: David Lopez <[email protected]>
marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
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
5 participants