-
Notifications
You must be signed in to change notification settings - Fork 20
feat(CloudPakForDataServiceInstanceAuthenticator): add new cp4d service instance authenticator #156
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
Conversation
This commit introduces a new authenticator implementation that supports the "GET /zen-data/v3/service_instances/serviceInstanceId/token" operation which is part of the Cloud Pak For Data authentication service. This allows users to obtain access tokens for service instances using the username, apikey, and service instance id in CP4D.
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.
Outstanding job on this PR! In addition to the things we discussed on webex, I requested a few small changes that are mostly just cosmetic, plus I think you have a handful of duplicated testcases (probably due to the fact that other authenticators need to continue to test the legacy ctor, etc.).
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Outdated
Show resolved
Hide resolved
src/main/java/com/ibm/cloud/sdk/core/security/CloudPakForDataServiceInstanceAuthenticator.java
Outdated
Show resolved
Hide resolved
...test/java/com/ibm/cloud/sdk/core/test/security/Cp4dServiceInstanceAuthenticatorLiveTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/ibm/cloud/sdk/core/test/security/Cp4dServiceInstanceAuthenticatorTest.java
Outdated
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/Cp4dServiceInstanceAuthenticatorTest.java
Show resolved
Hide resolved
src/test/java/com/ibm/cloud/sdk/core/test/security/Cp4dServiceInstanceAuthenticatorTest.java
Outdated
Show resolved
Hide resolved
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.
I've reviewed the recent changes to the PR and it looks like you've addressed all my comments.
Great job on this PR!
# [9.15.0](9.14.1...9.15.0) (2021-11-17) ### Features * **CloudPakForDataServiceInstanceAuthenticator:** add new cp4d service instance authenticator ([#156](#156)) ([9913071](9913071))
🎉 This PR is included in version 9.15.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This commit introduces a new authenticator implementation that supports the "GET /v3/service_instances/serviceInstanceId/token"
operation which is part of the Cloud Pak For Data authentication service. This allows users to obtain
access tokens for service instances using the username, apikey, and service instance id in CP4D.