Tagged Questions
For questions about the use of the Google OAuth Client Library for Java.
0
votes
1answer
29 views
Check for new emails from Gmail with Gmail API and OAuth2 in Android
I'm really at a dead end. I've been trying to figure out how to reach my Gmail-inbox from an Android-app with an existing OAuth2-token that I have received from Google moments before. I can auth ...
4
votes
3answers
257 views
+150
Gmail API access using Android - Is it even possible?
I am trying to access the Gmail API using an Android application.
I have successfully requested and received an access token using all available scope combinations.
But it seems that every time I ...
0
votes
0answers
11 views
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 ...
0
votes
0answers
24 views
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. ...
0
votes
1answer
34 views
How do I change a user's password using Google's Directory API using Java? [Solved]
I'm going to apologize in advance that I'm likely missing a few pieces of information to let anyone know that my settings are correct. Please let me know what else I need to specify.
I work at a ...
0
votes
1answer
24 views
Is “Authorized redirect URI” mandatory when setting up a new clientId under google developers console?
The authorized redirect URI is used by google to do a callback to pass the authorization token.
It is also used for validation by google. So when receiving the actual oauth request, google checks to ...
0
votes
1answer
53 views
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 ...
0
votes
1answer
23 views
Can I pass query parameters to the callback redirect URL in google ouath calendar api project setting?
For the OAUTH setting for our google calendar project , the "REDIRECT URIS" is given as http://foo.com/calendar/callback
It is possible that when this callback is called we need some extra ...
0
votes
0answers
10 views
Creating new Credentials object from stored AccessToken and RefreshToken
I'm following the Implementing Server Side-Authentication part of the Google Drive SDK docs, and in the code presented the following part if left as an exercise for the reader:
static Credential ...
0
votes
1answer
25 views
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 ...
0
votes
1answer
42 views
Google OAuth 2.0 “Request for Permission” webpage does not close (FF, Chrome)
I am using Google OAuth 2.0 for authentication of an installed desktop Java application. I am using the Google OAuth 2.0 Java Client Library.
When I make a call to request the user to authorize ...
0
votes
0answers
35 views
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 ...
1
vote
1answer
54 views
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 ...
0
votes
0answers
33 views
Working with credintials - google drive sdk + java
I need to upload file into Google Drive disc using Gogle Drive SDK. I have simple class to do it:
public class DriveApiTest {
private static String CLIENT_ID = "...";
private static String ...
1
vote
0answers
138 views
Google OAuth2 Migration and App Engine UserService
Context
I'm in the process of migrating a Google App Engine app written in Java over from using OpenId/OAuth1 to OAuth2. I've got the OAuth2 flow working and am able to correctly retrieve/store the ...
0
votes
1answer
56 views
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 ...
0
votes
1answer
61 views
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 ...
0
votes
1answer
95 views
Google get email proper scopes
A lot of the documentation on google talks about the email scope to replace the https://www.googleapis.com/auth/userinfo.email, pared with the endpoint https://www.googleapis.com/userinfo/v2/me. ...
1
vote
0answers
69 views
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 GoogleCredential.Builder();
...
0
votes
0answers
7 views
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:
...
6
votes
1answer
1k views
Gmail atom feed with 2-legged OAuth receive 401 error
We are experiencing the issue of Gmail atom feed with 2-legged OAuth, an error message is "401 unauthorized".
The error message is like below.
<HTML>
<HEAD>
...
0
votes
0answers
62 views
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 ...
3
votes
0answers
218 views
Googles AuthorizationCodeInstalledApp.authorize() method freezing on canceled auth
I have a Java application that needs to get users to authorize my application's access to Google services. I have the following bit of code in place to show and obtain the authorization I need:
...
0
votes
1answer
97 views
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" ...
0
votes
0answers
11 views
How to ensure that only domain superuser can install App from Google Marketplace
I need to ensure that only domain admin user is able to install application in Google Marketplace / Chrome Web Store. How can I do that?
Besides, I need that the setup link in Google Marketplace / ...
0
votes
0answers
75 views
Multiple Android devices authenticated with the same google+ account
Say I have an android app, API 19, running on a kitkat (>= 4.4.2) device that my app will ask user to consent to use google+ api/google+ data (user info, pictures, etc).
Question:
If I have a second ...
0
votes
1answer
51 views
facebook and google plus user verification in server side with the access token send from javascript
Am using google plus and facebook javascript sign in feature for my website. I am able to get the user details and the access token in javascript. I want to validate the user in server side(java) ...
1
vote
0answers
108 views
Google OAuth 2.0 incremental authorization not working
I have a server-side application that needs access to a combination of Google APIs, for some users of our app we only need access to one API/set of scopes (say Google Drive), for other users to ...
0
votes
1answer
230 views
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)
...
0
votes
1answer
81 views
How to get the O - Auth 2 access token from G+ sign in.
I have successfully integrated the G+ sign in in my application, following is the code:
public class YoutubeUpload extends Activity implements OnClickListener,
ConnectionCallbacks, ...
0
votes
1answer
113 views
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) ...
3
votes
2answers
4k views
Google OAUTH: The redirect URI in the request did not match a registered redirect URI
I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling my hair out off my head.
...
0
votes
0answers
41 views
Using OAuth 2.0 for Login
Are there any existing OAuth 2.0 implementations for Google Apps login out there that I could re-use? I'm not a developer and something off the shelf would be great. Thanks!
0
votes
3answers
239 views
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 ...
0
votes
0answers
26 views
Error: redirect_uri_mismatch when trying to sign a youtube partnership
Hey guys I am trying to sign a youtube partnership but whenever I try to confirm that I own the youtube channel by logging in, it gives me an Error: redirect_uri_mismatch error. I have no previous ...
0
votes
1answer
125 views
google-oauth calendar returns 401 error
I tried the calendar-appengine-sample on google calendar api java sample and when I used the client_secrets.json for running in localhost it always give me back my calendar list, but when I use the ...
0
votes
0answers
348 views
Google Oauth Authentication Example Code
I am very new to use google API'S. I am trying to authenticate my gmail account using a java program. For this I am using google Oauth authentication but when I execute this I am getting the below ...
1
vote
0answers
110 views
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 ...
1
vote
1answer
182 views
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 ...
1
vote
1answer
62 views
callback in dojo after loading google oauth client
For loading the google oauth client lib we have to use this script tag
<script src="https://apis.google.com/js/client.js?onload=load"></script>
where the load method will be called ...
0
votes
1answer
267 views
Google-oauth:Not authorized to request the scopes
I implemented Google oauth1 in my web app and it was working fine some two months ago as i was busy with some other stuff, today i have to test the app but I got the following error
Error: ...
1
vote
2answers
352 views
GAE, after google redirect me with Auth code, there is no user information left [closed]
I have GAE application.
I write in Java.
1) I login to my page using Google Open ID auth. I login with success.
2) I have user information in the com.google.appengine.api.users.User Object.
3) I ...
1
vote
2answers
559 views
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 ...
0
votes
1answer
634 views
Google Analytics Java API “401 Unauthorized Login Required” error
I try to get data from GA using java libs and service account. I`ve made all required settings: activate Analytics API in Cloud console, generate service account, get private key, add generated ...
2
votes
1answer
148 views
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 ...
0
votes
0answers
109 views
“AuthSub token has wrong scope” exception when using oauth 2.0 for Content api for shopping
I am trying to use Oauth 2.0 for my content api shopping project. But I am getting below exception while try to upload a product using content api.
"401 Token invalid - AuthSub token has wrong scope" ...
0
votes
0answers
187 views
401 Response getting access token with google-oauth-client
I'm trying to set up OAuth1 login and have successfully received an oauth_token and oauth_verifier but when I try to exchange these for an access token, I get a 401 response.
Here's the code:
...
0
votes
1answer
120 views
How do I control Token Response Expiry time for google API access
I have problem extending the standard one hour for validity of google access token.
One part of my code is getting authorization from the user, using the GoogleAuthorizationCodeFlow as per Google ...
2
votes
1answer
2k views
User Registration & Login | SSO using Spring Security OAuth 2.0
I am trying to implement user registration and log in flow | SSO using Spring Security Oauth 2.0 and Google as the authentication provider.
How should I initiate registration and login flow? What ...
3
votes
1answer
213 views
Coldfusion not loading nested class of jar file
I am loading Google's java client for service account authorization by putting the .jar files in the WEB-INF/lib folder of the Coldfusion server. The java objects can be created by like this:
...