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 oauth #11459

Conversation

erinleigh90
Copy link
Contributor

@erinleigh90 erinleigh90 commented Jun 5, 2023

Description of changes

Adds custom user agent details header to OAuth call to /oauth2/token endpoint with category, action, and framework.

Description of how you validated changes

Validated using a sample app with linked packages and checking that x-amz-user-agent header was sent with the expected string: aws-amplify/5.2.4 auth/25 framework/0

Checklist

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

…ain' into feat/user-agent-enhancements/auth-oauth
@erinleigh90 erinleigh90 marked this pull request as ready for review June 5, 2023 19:18
@erinleigh90 erinleigh90 requested review from a team as code owners June 5, 2023 19:18
Copy link
Contributor

@elorzafe elorzafe left a comment

Choose a reason for hiding this comment

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

Looks good!

Thanks @erinleigh90 🎶

@codecov-commenter
Copy link

Codecov Report

Merging #11459 (49c1e8b) into feat/user-agent-enhancements/main (e5115ef) will increase coverage by 0.00%.
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   #11459   +/-   ##
==================================================================
  Coverage                              83.15%   83.15%           
==================================================================
  Files                                    260      260           
  Lines                                  20437    20438    +1     
  Branches                                4402     4402           
==================================================================
+ Hits                                   16995    16996    +1     
  Misses                                  3156     3156           
  Partials                                 286      286           
Impacted Files Coverage Δ
packages/auth/src/OAuth/OAuth.ts 87.89% <100.00%> (+0.07%) ⬆️
packages/core/src/Platform/types.ts 100.00% <100.00%> (ø)

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

@erinleigh90 erinleigh90 merged commit 0b053b3 into aws-amplify:feat/user-agent-enhancements/main Jun 5, 2023
5 checks passed
@erinleigh90 erinleigh90 deleted the feat/user-agent-enhancements/auth-oauth branch June 5, 2023 22:44
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.

None yet

3 participants