Open dsam0162 opened 2 weeks ago
@dsam0162 - I used
ApiHubSettings hubSettings = ApiHubSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(credentials))
.build();
and it worked for me
I use it in https://github.com/apigee/apigee-apihub-maven-plugin
Thanks @ssvaidyanathan This fix worked for the following Gradle dependency as well. 🎉🎉🎉
@dsam0162 - Glad it worked
Can this issue be closed then?
I'm using the following libraries to configure the Apihub Java Client to the Gradle project.
However, I'm getting a permission error that is blocking me from invoking any of the ApiHubClient methods. I'm using an access token retrieved from Google Cloud SDK using the command (gcloud auth print-access-token) which has all the necessary permissions to access the APIHub resources. Also, the API Hub Rest APIs are working without issues using the same access token.
Environment details
Java version: 17
Steps to reproduce
(Replace "access-token-here" and put valid values for API name details(project,location,api-id) in the code snippet.)
Code example
Stack trace
External references such as API reference guides
Thanks!