GeezerVison is showing github.com — Plans to harmonize authentication? · Issue #1345 · googleapis/google-cloud-java
Plans to harmonize authentication? #1345
Description
@Horneth reports:
The class used for authentication in the google.cloud library (com.google.cloud.AuthCredentials) is different from the one in google.api.client (com.google.api.client.auth.oauth2.Credential). We need to maintain 2 different sets of authentication classes for the same authentication mode. I was wondering if there are any plans to harmonize those in the future.
Do we have some guidance we can share, or plans to harmonize across these projects?
Activity
mziccard commented on Oct 27, 2016
We are in the process of dropping our AuthCredentials classes in favor of classes in google-auth-library-java (we are adding there all the functionality that we need from AuthCredentials).
We will not be using the com.google.api.client.auth.oauth2.Credential class. I suggest you look at classes in google-auth-library-java which support a wide range of authentications. Have a look at HttpCredentialsAdapter which extends HttpRequestInitializer and allows you to authenticate API client requests.
mziccard commented on Nov 9, 2016
With #1375 we dropped our AuthCredentials classes and moved to using google-auth-library-java for authentication (this library also works with the REST client), this will be available in the next release.
Metadata
Metadata
Development
No branches or pull requestsIssue actions