-
Notifications
You must be signed in to change notification settings - Fork 21
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: send user-agent header with auth token requests #222
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.
LGTM!
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.
Looks good! I noticed the copyright string was updated in some files but not others - I left a comment on each so you don't have to re-track them down 🙂
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceAuthenticator.java
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/VpcInstanceAuthenticator.java
Show resolved
Hide resolved
src/test/java/com/ibm/cloud/sdk/core/test/security/Cp4dServiceAuthenticatorTest.java
Show resolved
Hide resolved
src/test/java/com/ibm/cloud/sdk/core/test/security/Cp4dServiceInstanceAuthenticatorTest.java
Show resolved
Hide resolved
src/test/java/com/ibm/cloud/sdk/core/test/security/MCSPAuthenticatorTest.java
Show resolved
Hide resolved
@pyrooka You are slipping, my friend. I would have expected this to not make it through the Norbert pre-processor 😂 |
This commit updates our various request-based authenticators so that the User-Agent header is included with each outbound token request. The value of the User-Agent header will be of the form "ibm-java-sdk-core/<authenticator-type>-<core-version> <os-info>". Signed-off-by: Phil Adams <phil_adams@us.ibm.com>
b51362e
to
78fa4cc
Compare
# [9.21.0](9.20.1...9.21.0) (2024-04-17) ### Features * send user-agent header with auth token requests ([#222](#222)) ([26824f9](26824f9))
🎉 This PR is included in version 9.21.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This commit updates our various request-based authenticators so that the User-Agent header is included with each outbound token request. The value of the User-Agent header will be of the form "ibm-java-sdk-core/- ".