Questions tagged [google-oauth-java-client]

For questions about the use of the Google OAuth Client Library for Java.

The Google OAuth Client Library for Java provides Java classes and methods for both OAuth 1.0a and OAuth 2.0.

This library allows a Java application to gain permission from a user to access the personal data they store with an OAuth provider such as Twitter, Facebook, Instagram, and many others. The user is directed by the OAuth library to the provider site and must confirm to the provider that they are happy for the requested information to be shared. If permission is granted then an access token is made available to the OAuth library and requests for the granted information can be made successfully.

See for more information about the OAuth standards.

This tag should be used for questions about writing Java software which uses the Google OAuth Client Library for Java, for either OAuth 1.0a or OAuth 2.0.

143 questions
1
vote
1 answer

Google OAuth 2.0 Authentication throwing SocketTimeoutException : Read timeout

I am trying to authenticate with Google using OAuth 2.0 for GAMv2 Apps. GoogleCredential.Builder credentialBuilder = new…
1
vote
0 answers

manually revoking an expired access token

What is the response when you try to manually revoke an access token which has already expired/been revoked by Google I am trying to revoke it manually by sending a Https get request to url: https://accounts.google.com/o/oauth2/revoke?token={token}
prasoon
  • 21
  • 3
1
vote
0 answers

Log in using Google and Facebook accounts

In a similar Topic, I tried to access the API but the link is broken, My problem is that in my JSF page I want to put two buttons, links or another way to let users register using their accounts on google or facebook, I know there is some kind of a…
1
vote
2 answers

Google Drive Api Error in JsonObjectParser when trying to authenticate the access token

I'm trying to authenticate the access token in drive follows : GoogleCredential credential = new GoogleCredential.Builder() .setClientSecrets(clientId , clientSecret) .setTransport(TRANSPORT) .setJsonFactory(JSON_FACTORY) …
1
vote
3 answers

Migration from OAuth1 3L to OAuth2:

I'm trying to migrate existing OAuth1.0 3L tokens to OAuth2.0 for a web app. I am following the instructions at https://developers.google.com/accounts/docs/OAuth_ref Despite all my best efforts, I keep getting this response: "Invalid authorization…
SimonM
  • 43
  • 3
1
vote
0 answers

Google one time code flow oauth login is not working in windows phone IE

Im using google one time code flow oauth login for my site, which described here, Now my problem is the link is working fine and google is asking my username and password then it is just hagging over there no response and not redirecting to my site…
1
vote
1 answer

Implementing Google+ one-time code flow authentication from chrome extension

I am trying to implement a Google+ sign in option as part of a chrome extension using the one-time code flow as described here. While making a request using the javascript Google API package a popup opens with an "origin_mismatch" error. This is…
1
vote
1 answer

callback in dojo after loading google oauth client

For loading the google oauth client lib we have to use this script tag where the load method will be called after client.js is loaded. i am using dojo in my application How…
chiranjeevigk
  • 1,636
  • 1
  • 23
  • 43
1
vote
2 answers

Intermittent "Unknown authorization header" 401 from GData

As of 22:00 UTC yesterday (2013-11-15) our servers suddenly started getting "Unknown authorization header" failures when connecting to Google Calendar API (V2) via OAuth. The problem seems completely intermittent. Right now we retry after each…
0
votes
0 answers

Google OAUth client Jakarta EE 9 compatible release

I am using google oauth client and spring boot in one of my projects. Our team want to upgrade spring boot to 3. Since our project is using google oauth client and google big query client, I am looking for Jakarta EE 9 supported release for google…
0
votes
1 answer

Error while using the google sheets api with spring boot

I'm trying to extract my Google Sheet information from my Spring Boot application, but I got the error Exception in thread "main" java.lang.NoSuchMethodError: 'long com.google.common.io.ByteStreams.exhaust(java.io.InputStream)' I already added all…
0
votes
1 answer

Google OAuth2 Java API set state in callback/redirect URI

I would like to set the state parameter in my Redirect URI as described in https://developers.google.com/identity/protocols/oauth2/web-server#redirecting https://accounts.google.com/o/oauth2/v2/auth? …
Edward
  • 580
  • 3
  • 15
0
votes
1 answer

Google Oauth2 Server side flow java with Refresh token

I am trying to fetch some data from GoogleAnalytics through a java application running inside a VM. I have a refresh token ready with me available and I want to use this refresh token to generate an auth token and eventually get data from GA. This…
0
votes
1 answer

How to set a custom RedirectUri in com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver

I'm developing a java application that integrates with google API (google sheets API) I'm trying to follow an example provided in google developers website. Link: https://developers.google.com/sheets/api/quickstart/java#step_3_set_up_the_sample They…
0
votes
0 answers

How Google OAuth Client library refreshes access token using refresh token?

So I have been working on Google's OAuth client library for integrating my application with another web service. Type of access is offline. So, I have both the access token and refresh token as a Stored Credential on my side. The question is, do I…