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

Plans to harmonize authentication? #1345

Closed
jean-philippe-martin opened this issue Oct 27, 2016 · 2 comments
Closed

Plans to harmonize authentication? #1345

jean-philippe-martin opened this issue Oct 27, 2016 · 2 comments
Assignees

Comments

@jean-philippe-martin
Copy link

@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?

@mziccard
Copy link
Contributor

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
Copy link
Contributor

mziccard commented 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.

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

No branches or pull requests

2 participants