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

Unable to consume JAVA sdk for Google classroom API's getting PERMISSION_DENIED Request had insufficient authentication scopes

I am trying to integrate google classroom in my java project Using OAuth 2.0 for Server to Server authentication, example is given here Official Google class room integration doc uses OAuth consent screen authentication, I altered the code for…
0
votes
1 answer

Google Oauth not working after uploading to alpha testing

I'm using google sign-in in my app It's working fine when debugging but the login don't work after uploaded signed-apk for alpha testing on google play store. The error is status{statusCode=DEVELOPER_ERROR, resolution=null} I got the sha-1 for…
0
votes
1 answer

Unable to get access token with GoogleCredentials

I'm trying to get access token using my service account JSON file. However I'm unable to get access token. GoogleCredential googleCredential = GoogleCredential.fromStream(new…
Fayaz Ahmed
  • 953
  • 1
  • 9
  • 23
0
votes
1 answer

How Google OAuth 2.0 Java library take care of Access Token! if Client ID, Secret and Refresh Token is provided.?

Code snippets for Building OAuth 2.0 credentials : Credential credential = new GoogleCredential.Builder().setTransport(httpTransport) .setJsonFactory(jsonFactory) .setClientSecrets(myAppClientID,…
Jay Panchal
  • 75
  • 1
  • 2
  • 11
0
votes
1 answer

google api oauth 2.0 linux root

I am using the Google Sheets API for a Web Application that visualizes a excel sheet into a diagram. This works great if I run the server locally and use my browser to access the google consent screen... But if I upload the webpage to my linux root…
0
votes
1 answer

google drive Oauth 2.0 for java web application

My project is a java spark project that I have hosted on heroku. A part of the project requires that I download a particular file from my google drive into the application. I managed to set up everything when my application was running locally but…
0
votes
1 answer

Google OAuth2 Flow in Server Side Web Application in Java

I am facing an issue understanding the oauth2 flow. A user(identified by a user_id) initiates the GoogleAccounts connection in the browser.The request is passed to Servlet that sends Redirect String To Client (Javascript), which in turn redirects…
zee
  • 502
  • 8
  • 28
0
votes
0 answers

Connecting to Google Api with a proxy server

My company's website is using google analytics to track various details, now we have a requirement to fetch all those raw data from google analytics servers and process using out internal tool. I've created a small Java code using the HelloAnalytics…
0
votes
1 answer

Google oauth client - Callback over https

I'm using google-oauth-java-client library to authenticate against a NetIQ Identity provider. The authorization request reaches the IdP, however it doesn't accept the Callback over HTTP: 2016-08-11T19:02:26Z WARNING NIDS Session…
0
votes
0 answers

GMail API getting Access Not Configured in Android

Hi i am trying to implement GMail API in my android app to send mail in background. But i am getting a response like this. Even if I enabled Gmail API permission in my app. { "code" : 403, "errors" : [ { "domain" :…
0
votes
1 answer

Using Steam Web API from an Android app

I am trying to add some information from Steam into my Android app. I see that Steam has Steamworks, but that is only built for Windows, OSX and Linux. Furthermore, I saw that they also have a Web API that could also be accessed from a mobile…
Scorpio
  • 1,124
  • 1
  • 11
  • 28
0
votes
2 answers

Not able to get Auth Token using GoogleAuthUtil.getToken

I am trying to get Auth Token on Android which can be exchanged for accessToken and RefreshToken on my webserver. I am following this documentation. Specifically the section - Android app obtains offline access for web back-end My code: String…
0
votes
1 answer

AbstractAuthorizationCode Servlet & CallbackServlet - how to implement getUserId()?

How to correctly implement abstract getUserId(request) method in these Google OAuth2 abstract servlets? As code says, it is used to lookup and store google credential. I've seen example which returns session id, but that won't work correctly after…
user3686724
  • 603
  • 1
  • 5
  • 15
0
votes
1 answer

Executing Group Operations with the Admin SDK via Java

I have an application which integrates with a Google Apps for Work domain and requires to be migrated from oauth 1 to oauth 2. The is a server application which requires simply requires to: list all groups in the domain. list users in a specified…
Alan Hay
  • 22,665
  • 4
  • 56
  • 110
0
votes
3 answers

Is it possible to host videos uploaded to my website on youtube?

I have Java based website. I would like users to log into my website and then upload videos to youtube using my youtube account. Users should not be required to have their own youtube account since videos will be uploaded using my youtube…