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
2
votes
0 answers

google oauth and refresh token confusion/questions

I had expected the refresh of an expired access token to happen during the authentication process instead of during an api access. I think I understand why this happens - authorization is done once but an access token can expire at any time,…
user1126515
  • 1,133
  • 3
  • 17
  • 34
2
votes
1 answer

Google login is stuck at oauth2/iframe

I have an Angular 6 + PWA app which consist of google login. I have integrated google login using angular-6-social-login. The app was working absolutely fine until the google pop stopped appearing. When i investigated, found out that google pop up…
2
votes
1 answer

Difference between profile and email scope in Google OAuth 2 flow

I'm configuring the scopes that my application requires for accessing Google and I can't find the difference between those two: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile In the documentation we…
dvelopp
  • 4,095
  • 3
  • 31
  • 57
2
votes
1 answer

Sharing Google oAuth Tokens between Android, iOS and Web apps

We're building an application which accesses files in Google Drive. Our application has a web UI, an Android App and an iOS app. We use oAuth2 to let the user authorize our app to access their Google Drive account. We use the Google Drive Java SDK…
2
votes
0 answers

Spring boot application with Google OAuth2 integration issue

I am developing a web application, and using google sign in the application. After adding google sign in the app, it is not starting, it's failing as soon as i run the application. The following error I am getting in console - APPLICATION FAILED…
2
votes
0 answers

Unable to list spreadsheets using Google Drive API in Java

I have suffered through the anti-5-minute-quickstart-experience with the Google Drive API, all in an attempt to upgrade my programmatic use of Google Spreadsheets to be OAuth2 compliant (yes, I know, I was a straggler). I'm now at the point where…
2
votes
2 answers

How do you set include_granted_scopes=true using Google's Java OAuth client?

I am successfully using GoogleAuthorizationCodeFlow to obtain and store credentials to access the Google Calendar API. I would like to use the include_granted_scopes=true query parameter for incremental authorization. I searched for a long time but…
c0der
  • 18,467
  • 6
  • 33
  • 65
2
votes
0 answers

Invalid_grant, Invalid code in google OAuth2

I am trying to obtain basic user profile information using Google OAuth2 API but it fails while trying to fetch the access/refresh tokens saying Invalid_grant and error description Invalid Code. Following is my code to fetch the token public static…
Pawan
  • 314
  • 1
  • 5
  • 13
2
votes
1 answer

DFA Reporting: Unable to fetch profiles using Service Account

I am developing a piece of code which can create and download reports using Google DFA Reporting API's. I am able to do the same using Client Id and Client Secret, which is generated using Install-App (native Application) account, but with this type…
2
votes
1 answer

Google Domain Shared Contacts API Using OAuth 2.0 for Server to Server Applications - Credential params

I'm trying to get the "Google Domain Shared Contacts API" described here: https://developers.google.com/admin-sdk/domain-shared-contacts/ Working using "OAuth 2.0 for Server to Server Applications" described here:…
2
votes
1 answer

Twitter OAuth Implementation in Google App Engine Using google oauth java client library

I have created a Web application in Google App Engine java. Now I want to provide the authentication functionality. User can use his twitter(in future I will provide other OAuth Service provider too) account for login. I have found couple of…
Waqas Ali
  • 1,642
  • 4
  • 32
  • 55
2
votes
2 answers

Error 401 requesting access token from Google with Oauth2

I am writing a Java client side application which needs to access the Google tasks API. I am following the instructions from the page https://developers.google.com/accounts/docs/OAuth2InstalledApp and I have managed to get an authorization code.…
2
votes
1 answer

Correct way to use a Google Apps Marketplace service account to connect to Gmail IMAP and other services

One of the features of our Marketplace app makes use of accessing the user's Gmail account via IMAP. We are using the google-api-java-client and google-oauth-java-client libraries and code similar to this example in the java-gmail-imap project as…
mikej
  • 65,295
  • 17
  • 152
  • 131
2
votes
1 answer

how to get google calender events between two dates from google API v3?

I am developing calander interface and need to include google events in the calander. I am able to list events by querying https://www.googleapis.com/calendar/v3/calendars/primary/events But, need to fetch events between two dates. I have found…
1
vote
0 answers

Kotlin Multiplatform Desktop execute with run but fail on runDistributable

I created an application with Kotlin Multiplatform, for desktop (only). The application works great when I do ./gradlew run but fails when I do ./gradlew runDistributable giving: Exception in thread "main" java.lang.NoClassDefFoundError:…
1 2
3
9 10