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

feat: user agent enhancements - auth reduction #11465

Conversation

erinleigh90
Copy link
Contributor

@erinleigh90 erinleigh90 commented Jun 7, 2023

Description of changes

Reduces auth user agent enhancements to send auth without the action number in amazon-cognito-identity-js per adjusted auth requirements.

Description of how you validated changes

Tested with sample app linking and unit test.

Checklist

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

@codecov-commenter
Copy link

Codecov Report

Merging #11465 (8f643a4) into feat/user-agent-enhancements/main (4315ba0) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@                          Coverage Diff                          @@
##           feat/user-agent-enhancements/main   #11465      +/-   ##
=====================================================================
- Coverage                              83.37%   83.37%   -0.01%     
=====================================================================
  Files                                    294      294              
  Lines                                  20804    20803       -1     
  Branches                                4480     4480              
=====================================================================
- Hits                                   17346    17345       -1     
  Misses                                  3171     3171              
  Partials                                 287      287              
Impacted Files Coverage Δ
packages/amazon-cognito-identity-js/src/Client.js 50.48% <ø> (-1.44%) ⬇️
packages/auth/src/OAuth/OAuth.ts 87.89% <ø> (ø)
...ckages/amazon-cognito-identity-js/src/UserAgent.js 100.00% <100.00%> (ø)
packages/core/src/Platform/types.ts 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@erinleigh90 erinleigh90 marked this pull request as ready for review June 7, 2023 15:08
@erinleigh90 erinleigh90 requested review from a team as code owners June 7, 2023 15:08
Comment on lines +57 to +90
// SignUp = '1',
// ConfirmSignUp = '2',
// ResendSignUp = '3',
// SignIn = '4',
// GetMFAOptions = '5',
// GetPreferredMFA = '6',
// SetPreferredMFA = '7',
// DisableSMS = '8',
// EnableSMS = '9',
// SetupTOTP = '10',
// VerifyTotpToken = '11',
// ConfirmSignIn = '12',
// CompleteNewPassword = '13',
// SendCustomChallengeAnswer = '14',
// DeleteUserAttributes = '15',
// DeleteUser = '16',
// UpdateUserAttributes = '17',
// UserAttributes = '18',
// CurrentUserPoolUser = '19',
// CurrentAuthenticatedUser = '20',
// CurrentSession = '21',
// VerifyUserAttribute = '22',
// VerifyUserAttributeSubmit = '23',
// VerifyCurrentUserAttribute = '24',
// VerifyCurrentUserAttributeSubmit = '25',
// SignOut = '26',
// ChangePassword = '27',
// ForgotPassword = '28',
// ForgotPasswordSubmit = '29',
FederatedSignIn = '30',
// CurrentUserInfo = '31',
// RememberDevice = '32',
// ForgetDevice = '33',
// FetchDevices = '34',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these commented codes?

@erinleigh90 erinleigh90 merged commit f73abd2 into aws-amplify:feat/user-agent-enhancements/main Jun 7, 2023
@erinleigh90 erinleigh90 deleted the feat/user-agent-enhancements/auth-reduction branch June 7, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants