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
0
votes
1 answer

Launching DrEdit gives 500 server error - application logs says "Can't handle the OAuth2 callback"

I am new to Google Drive API and recently have done two small projects using drive API. I am now implementing DrEdit and have followed instructions mentioned in - https://github.com/googledrive/dredit/blob/master/java/README.md After successful…
0
votes
1 answer

Email Settings API - ClientLogin

We are using EMAIL Settings API and ClientLogin for Authentication. EMAIL Settings API is still on GDATA Libraries. Using GDATA libraries can we start using OAuth 2.0 ? (we are using the appsforyourdomain client library to use EMAIL Settings API) Or…
0
votes
1 answer

How to create OAuthParameters from access token for Google Contacts API

I have implemented my OAuth2 client myself. It works, I have client id, client secret and access token. I also have refresh token an can receive new access tokens from it. But how to use these Strings with Google API for Java (Contacts API)? I have…
0
votes
1 answer

Oauth2 2LO between two apps in GAE

I work in a project using GAE. I have a GAE app that consume Rest services from others GAE apps (this apps uses different Google Apis with 2LO oauth2, eg: one app uses Gcalendar Api, other Gmail Api, ...). The REST apps are in Java and use…
0
votes
0 answers

Google OAuth 2.0 and Datastore Need

I am migrating code from GDATA API to Google ADMIN Directory API (User Provisioning). Migrated code is working fine with the new ADMIN API. I created a service account in Developers Console, then provided it domain-wide access, using the code below…
0
votes
1 answer

GoogleAuthUtil.getToken(Unknown Source) Unknown Exception

I have a function that attempts to get a token to query the Drive API: private void getAuthTokenBlocking() { try { Account account = AccountManager.get(sActivity).getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE)[0]; sToken…
0
votes
1 answer

OAuth2 Google Api java/eclipse

I'm looking at [this example]https://developers.google.com/admin-sdk/directory/v1/quickstart/quickstart-java). But I don't want to use that url copy/paste version to auth so I've read that I should use serviceaccount. I downloaded the p12 key and…
John Smith
  • 387
  • 2
  • 8
  • 24
0
votes
1 answer

Gmail API + Service accounts return 403 error

All I tried Gmail API with service account. I implemented code following: package mywork.gmail.api; import java.io.File; import java.io.IOException; import java.security.GeneralSecurityException; import java.util.ArrayList; import…
0
votes
1 answer

Google Ads API tells me Account inactive

I've created MCC Test account, and I got a developer token which still need to be approved. But this should be no problem as cited by google: ... You don't need to wait for your developer token to be approved before using it with a test…
justSaid
  • 1,540
  • 2
  • 12
  • 23
0
votes
1 answer

Google Marketplace App / OAuth2 - Programmatically Delegate Domain-Wide Authorization

Context I'm currently migrating an OAuth 1.0/OpenId based app over to use OAuth 2.0. The app is a Google App Engine app built in Java and will be in the new apps marketplace 2.0. I've got the basic OAuth 2.0 flow working fine for individual users…
0
votes
1 answer

Granting calendar api access of corporate gmail account to a third party?

Lets say company A has a corporate gmail account set up. Company B needs access to the calendar events (primarily free busy times) of users of Company A via the google calendar REST API. I see some methods described here…
Zenil
  • 1,491
  • 3
  • 12
  • 21
0
votes
0 answers

Can't update 'email' and 'profile' scope on google marketplace configuration

In my application I have created a marketplace application which uses 'https://www.googleapis.com/auth/userinfo.email' 'https://www.googleapis.com/auth/userinfo.profile' Now as per google will close userinfo endpoint. I am trying to change…
0
votes
1 answer

Working with credentials - google drive sdk + java

I need to upload file into Google Drive disc using Google Drive SDK. I have simple class to do it: public class DriveApiTest { private static String CLIENT_ID = "..."; private static String CLIENT_SECRET = "..."; // private static…
0
votes
1 answer

Authenticating a user using Google

I'm having a hard time wrapping my head around how to authenticate a user in my REST service. I plan to use Google Sign-in (on Android, namely). I can't quite figure out how to authenticate users on my server. I do not want to have any…
Nepoxx
  • 4,849
  • 5
  • 42
  • 61
0
votes
3 answers

Google API Oauth Installed application

I am using google oauth 2 for authentication. (Installed application) Right now when the user allows access in user consent screen, how can i retrieve auth code from the redirect uri without user involving in cut and copy paste auth code. How to…
1 2 3
9
10