-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
GoogleCredentials Deprecated but is still used as an example for authentication #3314
Comments
Why is it closed? What are we supposed to use instead? |
See googleapis/google-api-java-client@45825c4, check out the link after deprecated annotation: https://github.com/googleapis/google-auth-library-java |
add to your pom
and change GoogleCredential to GoogleCredentials (end with s) |
@adelbenhamadi Actually, replacing this:
With this:
I don't see it can easily be replaced. My current code is very similar to this one: Meaning:
How could I change it? Even replacing |
When |
@cyrilfr I don't understand. Is it a reply to what I wrote? Did you solve the issue that I can't find how to use it? |
I don't remember, this comment is almost exactly 1 year old... I use |
@cyrilfr Is it now suitable even for the code snippet I wrote? Can you please share the code you've used? How did you find "getTokenValue" for GoogleTokenResponse instance, for example? I don't see it... |
Hi Admin,
GoogleCredentials has already been deprecated but is still being used as an example in the Authentication using OAuth2. Would like to use the more updated version. Hope there will be some update. Thanks! :)
If you already have an OAuth2 access token, you can use it to authenticate (notice that in this case, the access token will not be automatically refreshed):
The text was updated successfully, but these errors were encountered: