FAQ Database Discussion Community


gspread/OAuth2: authenticated default gmail account (used early in ClientLogin)

oauth,oauth-2.0,google-oauth,google-spreadsheet-api,gspread
I have been using gspread (authenticated via ClientLogin) for a last year. Now I would like to use OAuth2. I've followed tutorial from gspread site: http://gspread.readthedocs.org/en/latest/oauth2.html The problem is that this method creates new "Email address" (in console.developers.google) which doesn't have an access to spreadsheets - all spreadsheets should be...

Android GoogleCredential Debug vs Release

java,android,android-studio,google-oauth,google-cloud-storage
I am trying to read my GCS bucket but am seeing an interesting behavior. When running my app through Android Studio (as Debug variant) I am able to download objects. When I create a Signed APK (or run as Release variant) I am no longer able to download object and...

Decode JWT encoded string from Google in PHP

php,google-oauth,jwt
I am upgrading my Google based login system, which requires me to decode id_token strings supplied by Google. The strings are valid, and I can decode them via: https://developers.google.com/wallet/digital/docs/jwtdecoder But I want my server to do this on the fly in PHP. I found both: https://github.com/firebase/php-jwt/tree/master and https://github.com/luciferous/jwt But I...

Google AdEx Seller API doesn't support Service accounts

google-oauth,google-api-python-client,google-reseller-api
I want to pull periodic reports via Google Seller API. Is there a way, to login into Seller account without having to go via regular OAuth redirection ?

“client secrets” that aren't & open source

google-drive-sdk,google-oauth
According to the Google Drive documentation, an application needs a so-called "client secret" in order to interact with the Google Drive SDK -- even if, as in the case of a client-side JavaScript app, the code is plain for all to see. (Of course, it's not really that much safer...

Java Google Coantacts API Access Service Account Authentication

java,google-api,authorization,google-oauth,google-api-java-client
I'm trying to access Googles Contacts API but my attempt failed already on getting authorized. From other (web) languages i'm used to the APIConsole and the public API-key (authorization). GoogleCredential credential = new GoogleCredential().setAccessToken("<<PublicAPIKey>>"); System.out.println(credential.refreshToken()); // false This way I'm not able to refresh the token and be unsure about...

Google Service account user interfece

google-api,google-drive-sdk,google-oauth,service-accounts
How can I login to a Google Service account with the normal web user interface, for example to google drive ? Now I can only login using API using script....

GMail API: Authentication required twice

python,google-app-engine,google-oauth,gmail-api
I'm running a app on Google App Engine which connects to the GMail API. In general this all works fine, however I have noticed that if I start a completely new session, the authorization is asking for authorization twice. Once from Google App Engine (see image below), and once through...

Not authorized to request the scopes - Google OAuth2 for devices

python,google-oauth,gmail-api
I've recently been working on accessing the gmail API from a python script. As the script needs to run on a server, without any form of web browser, I've had to implement the OAuth for Devices flow, as detailed at https://developers.google.com/accounts/docs/OAuth2ForDevices This has gone just fine, as I've been testing...

Issues using OAuth2 to authorize in gspread using python

python,authentication,oauth-2.0,google-oauth,gspread
I am very new with python so please excuse my ignorance. I am trying to send data to Google spreadsheets and have decided to use gspread. However gspread requires me to use OAuth-2.0 to authorize access to the spreadsheets. I have used the tutorial on their documentation page to do...

Need clarification on email_verified field of ID Token

google-api,google-oauth,google-openid
I'm using Google's OpenID Connect service to authenticate users. I was considering rejecting all accounts if the email_verified field was false, but I don't see a real world scenario where someone will hit my system with this field set to false. The first time you log in to Google the...

Domain-Wide Delegation of Authority while Third Party Apps are Disabled

oauth-2.0,google-drive-sdk,google-oauth,google-apps-marketplace
In Google Apps domains: Is it possible to grant domain-wide delegation of authority to third-party apps while the "Allow users to install Google Drive Apps" setting in the Admin Console is disabled.1 To be specific: I am trying to find out if there is a workaround the Admin Console Settings....

Registration of web Application on google developer console

java,api,gmail,google-oauth
Here, are the steps of registration, I have doubts regarding step 3, 4, 5: When you create your application, you register it using the Google Developers Console. Google then provides information you'll need later, such as a client ID and a client secret. Activate the Google Calendar API in the...

Google SignIn State

login,oauth-2.0,google-oauth
I'm trying to build a Google signin button into my website. I'm trying to avoid using their built-in button. The code below works to sign in a user, but I can't figure out how to make my webpage remember that they're signed in when the user refreshes the page, or...

Using Dart googleapis_auth (0.2.2) to authorize Admin SDK Directory API in Google Apps domains with service account

dart,google-oauth,google-admin-sdk
I would like to authorize access to Admin SDK Directory API in Google Apps domains with a service account. As I understand it requires a JWT claim with a sub field and I can't find that in the pub package googleapis_auth (0.2.2). If it's missing: Is there a workaround? Will...

Google OAuth 2.0 and debug key for Google Drive API

android,google-oauth,google-drive-android-api
I've set up 2 Client IDs for Android application in the GoogleDriveAPI console: the first for the release APK and the second for Debug purposes. Everything ok with the released app, but my issue is only related to the second Client ID. I'm getting this exception: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException after the following...

How to share a private google doc with an appengine app

google-app-engine,google-oauth,google-fusion-tables
I have a document (its actually a fusion table) stored in my private Google Drive. I would like to share the document with a web application running on google app engine. I would like to enter the link to the document into the app and have it read the document...

WebApi 2 Change from Google Authentication OpenID -> oAuth2 - Changes Security handle

asp.net-web-api,openid,google-oauth
When I started out on my project Google allowed to use OpenID where no real registration was needed.. This is now going away, and I have ported the project to the new meths.. BUT The issue is that the Users will get a new Security token and therefor see the...

access_type=online vs offline, how to know which one to use

c#,permissions,oauth-2.0,google-oauth
I have implemented Google oauth2 server flow for web, the first time that user logins using his/her google account I have to use access_type=offline to get a refresh token and save it to database but after that access_type=online will be enough. I have read that google issues limited number of...

Google OAuth on MVC5 ExternalLoginCallback?error=access_denied

oauth,asp.net-mvc-5,google-oauth
I have set up my Google OAuth And I have added the code into Startup.Auth.cs app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { // LRC ClientId = "xxxxxxxxx", ClientSecret = "xxxxx" //CallbackPath = new PathString("/signin-google") }); But after I chose a google account to log in, it redirected me to the login page again, I...

Google Oauth not getting refresh token

javascript,google-oauth
I am trying get refresh token. I read about it in google documents. Now, I am using accesstype offline and also approval_prompt: "force" But I am not getting refresh token in response. I not getting what I am doing wrong. I have following html code: <input type="submit" class="btn btn-info" value="Google"...

What does “offline” access in OAuth mean?

oauth,google-oauth,google-oauth2
What exactly does the word "offline" mean with regard to the offline access granted by an OAuth server? Does it mean that the resource server will return data about the user even when the user is logged out of the third-party application or when the user is logged out of...

How to return RSA key in jwks_uri endpoint for OpenID Connect Discovery

python,google-oauth,jwt,openid-connect,openid-provider
Working on the discovery part of an OpenID Connect provider, I'm a bit confused about how to properly return my public keys. My problem is specifically with the modulus (n) and the exponent (e) values. The initial values of both are: n =...

Is it possible to use AuthorizationCodeMvcApp for authorization in google contacts API access?

oauth-2.0,google-calendar,google-oauth,google-contacts,google-api-dotnet-client
I am currently working on a web app where I sync the user's google contact list. Currently I am able to sync the calendar just fine. Unfortunately the same approach doesn't seem feasible in the case of contacts. Below was my approach for Calendars v3. public async Task<ActionResult> Index(CancellationToken cancellationToken)...

Google Drive help required access to own Drive account

google-drive-sdk,google-oauth,google-api-php-client
I want to access my own google drive on web page but allow anyone to upload files and restrict download access or show only limited file to user for downloading. Drive API assumes that I will access another users credentials. But what I want is opposite, anyone can view my...

oauth2 access token expire

php,google-oauth,google-oauth2
<?php session_start(); require_once realpath(dirname(__FILE__) . '/Google/src/Google/autoload.php'); /************************************************ ATTENTION: Fill in these values! Make sure the redirect URI is to this page, e.g: http://localhost:8080/user-example.php ************************************************/ $client_id = 'xxxxx-1l76cd2vi4ik5oqm5s20nj965riu4hum.apps.googleusercontent.com'; $client_secret = 'secret'; $redirect_uri = 'http://www.audit.polydevs.co.uk/oauth2callback.php?login'; $client = new...

Google authentification with “devise” fail

ruby-on-rails,devise,google-oauth,omniauth
I want to create a GOOGLE authentification in my app. So in set up "omniauth" and "devise" correctly (I think). In my layout folder in "_header.html.erb" view : <% if user_signed_in? %>Signed in as <%= current_user.name %>. Not you? <%= link_to "Sign out", destroy_user_session_path,:method => :delete %> <% else %>...

Given path's format not supported when using Google's OAuth2 library

c#,google-oauth
I've been trying to add authentication to a Google service via OAuth2 to a desktop (C#, WPF) application I'm working on. I'm using the OAuth 2.0 C# libraries provided by Google via nuGet, and I've modeled my code on the example on Google's site. My login code looks like this:...

Gmail API: How to get access token?

php,google-api,google-oauth,google-api-php-client,gmail-api
I am testing the Gmail API. So far I have done the following: I have created the project in the Google Developers Console I have enabled the Gmail API. I have created a new Client ID and the client secret. In my PHP script I have installed the PHP Client...

How to use token obtained using GoogleAuthUtil class to get user information?

java,android,oauth-2.0,google-oauth
I am building an Android app in which I want to authenticate user using their google account. I am using GoogleAuthUtil class to obtain token from google as shown below protected String fetchToken() throws IOException{ try { return GoogleAuthUtil.getToken(act, email, scope); } catch (GoogleAuthException e) { e.printStackTrace(); } return null;...

Generate an OAuth access token with openssl and c++

c++,oauth,google-oauth,google-authentication,google-api-cpp-client
I need to get an access token (for a service account) for the google's OAuth authentication service. I tried several things an studied a lot of on the web but don't succeed. Basically i followed https://developers.google.com/accounts/docs/OAuth2ServiceAccount What i have done (VS2013): int _tmain(int argc, _TCHAR* argv[]) { Json::Value jwt_header; Json::Value...

How can I insert data (event) into Google Calendar with PHP?

php,google-calendar,google-oauth,google-api-php-client,service-accounts
I am trying to insert events into Google Calendar, but I get errors everytime. I've been searching for hours to get answer, but I found nothing for my problem. I tested a lot of examples, without success. I'm new in Google Calendar, and I can't really understand the google api...

Laravel Google Auth using artdarek/ oauth-4-laravel

php,laravel-4,google-oauth
I'm using the Artdarek package to log in using google accounts and need to authorise the user for the app. I'm using Laravel 4.2 This is the code from my function public function loginWithGoogle() { // get data from input $code = Input::get( 'code' ); // get google service $googleService...

Nginx proxy with Google OAuth 2.0

nginx,meteor,proxy,google-oauth
I have an Ubuntu 14.04 server and I have a meteor application that runs at localhost:3000 on this server. The public FQDN of my server is sub.example.com. The meteor application uses Google OAuth 2.0, I have the following configured in the Google API Console: URI REDIRECTION http://sub.example.com/_oauth/google http://sub.example.com/_oauth/google?close ORIGINES JAVASCRIPT...

google Oauth login in https server

javascript,meteor,google-oauth
I have an meteor web server on Https server say https://popasdesasdasd.com. I added this url to the Javascript Origin uri and https://popasdesasdasd.com/_oauth/google?close in redirect uri. On request, it says mismatch uri and asked to put http://popasdesasdasd.com/_oauth/google?close in redirect uri. Adding that gives me an error of Uncaught SecurityError: Blocked a...

How to Google OAuth2 to upload videos to 2 different YouTube account with a Python script

python,youtube,oauth-2.0,youtube-api,google-oauth
I have a Python script that uploads videos to my YouTube channel. Now I have more than one YouTube channel under my account and want to upload to the second channel once I'm done with the first. But OAuth 2 at no point asks me which account I want to...

How to change the google API “service account” name/email address

google-api,google-oauth,google-api-client
I am using the Google API to create a spreadsheet on google drive. My app has a link that says 'Download To Google Doc' The app sends a file to google docs and shares it with the user. The user can then see it in google docs. This all works...

How can I make a copy of a file in Google Drive via Python?

python,google-drive-sdk,google-oauth
I wrote a short function in Google Apps script that can make a copy of a specific file that is stored on Google Drive. The purpose of it is that this file is a template and every time I want to create a new document for work I make a...

Google+ Sign In / Access Control List (Limit Who Can Sign In)

oauth-2.0,google-plus,google-oauth,google-plus-signin
I would like to use G+ sign-in to allow access to a secure area of a website. However, I would like to only authenticate certain users. Either by Approving them after they request, or pre-defining a list. Is this even viable? ...

Google OAuth service redirects to URL with a # sign at the end

php,url,oauth,google-oauth,fragment-identifier
When the user is redirected to https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=[clientid]&redirect_uri=http://example.com/googleauth&scope=email by our "Sign In with Google" button, the response's Location header that causes the redirection back to the site has a # symbol at the end: Response headers:location: http://example.com/googleauth?code=[code]# It certainly does not break the site's funcionality, but I'd like to get rid...

Providing login_hint option for Google Oauth2 redirect

oauth,google-api,google-oauth
I'm passing in login_hint=1 option as part of Oauth2 request query string but this doesn't appear when I receive a callback from Google Oauth2 after accepting it. I'm only getting: google/oauth2callback?code=4/vadsdaalijfqwo8fdjqojcxadassddsa# I was expecting 1 (which is user id) to come back as part of callback. How do I make...

access drive with access token

php,google-drive-sdk,google-spreadsheet,google-oauth
struggling to understand the oauth2 token and refresh token processes ive got this code $url = 'https://www.googleapis.com/oauth2/v3/token'; $data = array('client_id' => 'clientid', 'client_secret' => 'secret','refresh_token' => 'token','grant_type' => 'refresh_token'); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded", 'method' => 'POST', 'approval_prompt'=>'force', 'access_type'=>'offline', 'content' => http_build_query($data), ), ); $context...

OAuth2 tokens for use with Google Analytics API

google-oauth,google-analytics-api
I have a site that I have tagged using Google Analytics. I can see that the stats are being created and I can analyse them using Google Analytics web tool. I want to extract my tagging data using the Google Analytics API but all the instructions seem to point me...

Create GoogleCredential by Access Token

android,google-drive-sdk,google-oauth
I want to design an Android file viewer for Google Drive. At first, I implemented the app by using of the Google Android API, as follows, private void retrieveNextPage(){ if(mHasMore == false) return; Query query = new Query.Builder().setPageToken(mNextPageToken).build(); com.google.android.gms.drive.Drive.DriveApi.query(getGoogleApiClient(), query).setResultCallback(metadataBufferResultResultCallback); } However, the Android Drive API only allows the app...

asp.net identity using Owin with Google login: skip registration

c#,asp.net-mvc,google-oauth,asp.net-identity,owin
I am using ASP.NET Identity so I can integrate Google login via OWIN in an MVC website using EF. once the login on Google completes, there is a registration page. I want to not have that page, but I'm having trouble figuring out how (or if it is possible) to...

Node: Google Analytics data via service account

node.js,google-analytics,google-oauth,google-analytics-api,service-accounts
Update: I've since turned the code into an NPM module. I've worked my way through created a JWT token for a service account, and I can access user data, but I want to get to my analytics data to use it to drive content on my website. Note: I don't...

Google Calendar API event insert always return 404 “not found” error iOS

ios,google-calendar,google-oauth
I'm tried the calendar insert example from here : https://developers.google.com/google-apps/calendar/v3/reference/events/update No matter which property i use, i always get the 404 "not found" error. Anyone can shed some light on this? Many thanks!!! PUT https://www.googleapis.com/calendar/v3/calendars/primary/events/q4amm7fsk9rq97r3dmhisjie84&key={YOUR_API_KEY} Content-Type: application/json Request Body : { attendees = ( { email = "[email protected]"; } );...

Validating Google OAuth id token received from oauth2/v4/token

c#,.net,google-oauth,google-authentication
We are currently using Google OpenId Connect to authenticate our users. I'm successfully retrieving the access token and id token via the token_endpoint as described here. Later on I validate the id token as described here. The token_endpoint will be received via the discovery document (as recommended by Google). Problem...

Google Analytics API in PHP backend

php,google-api,google-oauth,google-analytics-api,google-api-php-client
So I want to display GA chart in custom PHP backend. So I created APP in https://console.developers.google.com/ but I cant figure out how to access my own google analytics data withouth asking for user to login. For now I have simple code: $client = new Google_Client(); $client->setApplicationName("App Name"); $client->setClientId(CLIENT_ID); $client->setClientSecret(CLIENT_SECRET);...

Error: redirect_uri_mismatch in google OAuth-AngularJS Full-Stack generator

oauth-2.0,google-oauth
I am using generator-angular-fullstack from AngularJS Full-Stack generator.While i am trying to use provider OAuth i am getting following error.After registering app in console.google i have downloaded json to be clear. { "web" : { "auth_uri" : "https://accounts.google.com/o/oauth2/auth", "client_secret" : "xxxxxxxxxxxxxxxxxx", "token_uri" : "https://accounts.google.com/o/oauth2/token", "client_email" : "[email protected]ccount.com", "redirect_uris" : ["http://localhost:9000"],...

Oauth2 using Python 3.4 and Django 1.7

python,django,python-3.x,google-oauth
I'm trying to authorize my django application using oauth2 in order to interact with the google content for shopping API. However, I'm experiencing issues with oauth2 along the way. I have oauth2client and google-api-python-client installed. My view is as follows: CLIENT_SECRETS = os.path.join(os.path.dirname(__file__), 'client_secret.json') FLOW = flow_from_clientsecrets( CLIENT_SECRETS, scope='https://www.googleapis.com/auth/content', redirect_uri='https://127.0.0.1:8000/oauth2/oauth2callback')...

Google OAuth 2.0 redirect URL when user refuses/cancel consent screen

php,google-oauth
I'm migrating the Sign-in with Google on my PHP app from the old and now deprecated OpenID to the new OAuth 2.0. All I need from user is his email address, so I can register or log him in. It's all working as expected, but I noticed that if user...

Google Multidevice Login

android,ios,angularjs,cordova,google-oauth
we are creating web (single page app - NG app), Android and iOs app (both with phonegap) and we want to authorize user for Adwords API with offline access with Google OAUTH. We noticed that if we use iOS id and secret that refresh token that we got is not...

Can I associate a user's account with an action to the drive API?

javascript,oauth,google-drive-sdk,google-spreadsheet,google-oauth
We're looking to make a little webapp to manage our week-long nerf war (humans vs zombies to be precise), and we're thinking about how easy it would be to have Google Sheets be our only backend, and our frontend be entirely javascript/html/css. Let's say there's two actions that can be...

401 Unauthorized when authentificating with Google for hybrid applications

google-api,google-oauth
I want to use native applications and a web server to get refresh tokens to use for some operations (on google drive). Client ids and secrets have been generated for both the native and the web application using the Google developer console. I'm trying to generate authcodes from the native...

Null Pointer Exception when accessing Google Analytics report data using different credentials

java,nullpointerexception,google-oauth,google-analytics-api,google-api-java-client
I am following the tutorial to get access to the GA account report data by executing a simple GA query, by using the Google Developers console. I followed all steps mentioned in the tutorial and the code works fine. I have included the code below. public class GoogleAnalyticsAccess { private...

Login to Chrome extension with a Google user other than the one in use by Chrome

google-chrome,google-chrome-extension,google-oauth
I have a Chrome extension that requests a user to login using the chrome.identity.getAuthToken route. This works fine, but when you login you can only use the users that you have accounts in Chrome for. The client would like to be able to login with a different Google account; so...

Prompt user to enter password - Google OpenID Connect

google-oauth,google-openid,openid-connect,google-oauth2
We are trying to use Google's OpenID Connect for a business web app but are concerned that the user will leave the app open and an unauthorized user will sign-in because the user is still signed into Google so OpenID Connect just let's them right in. We've tried using max_auth_age=0...

Cannot refresh token from google api OAuth2

php,google-oauth
Here is my php script RefreshToken.php <?php $url = 'https://accounts.google.com/o/oauth2/token'; $post_data = array( 'code' => 'xxxxxxxx', 'client_id' => 'xxxxxxxxxxx', 'client_secret' => 'xxxxxxxxxxxxx', 'redirect_uri' => 'http://localhost/googleapi/AuthenticationCode.php', 'grant_type' => 'authorization_code', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result =...

Oauth2 for Authorization and Authentication?

django,oauth-2.0,google-oauth,openid-connect
Can Oauth2 be used for authorization and authentication? As I understand it, Oauth2 authorizes a consumer application to access user information from providers (e.g. Facebook, Google, Twitter, etc). But can Oauth2 be used to authenticate a user? For example, suppose we have an app comprised of native mobile frontends and...

Using google account for private website access

php,google-oauth,google-api-php-client,google-login,google-account
Currently, the person I'm developing for uses google docs to display the website/files. Which can only be accessed via google accounts ending in a certain domain name. For example [email protected] if it's a webtest google account then it can access it. Now I'm creating them a website not linked to...

Email Settings API - ClientLogin

oauth,google-oauth,google-oauth-java-client,google-email-settings-api
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 can we continue using ClientLogin ? Based on the...

Migration from Google AuthSub to OAuth2

php,zend-framework,google-oauth
I've got a few hundred users I'd like to migrate from a Zend Framework GData application using AuthSub over to OAuth2. Is there an endpoint / way to automatically exchange their AuthSub tokens for OAuth2 tokens without them having to go through the OAuth2 approval dance? For background, I'm using...

OpenId Connect endpoint returns 'not found'

google-app-engine,google-oauth,scribe,google-openid,openid-connect
I am migrating OpenID 2.0 to OAuth 2.0 login (see https://developers.google.com/accounts/docs/OpenID?hl=ja). I want to map the new OpenID 2.0 identifiers to old/existing OpenID Connect identifiers, which I have in my DB. I'm at the point of handling the OAuth response (redirect_uri), where I want to use the https://www.googleapis.com/oauth2/v3/token endpoint, to...

Google Auth does not work in template asp.net mvc project

asp.net-mvc,google-oauth,owin
So I have VS 2013 update 4 and I created ASP.NET MVC application from template and configured Google authentication by using UseGoogleAuthentication method and passing client ID and secret. But for some reason once I click 'Accept' button google page I'm redirected to the page I expect but there is...

Gmail API: example of a request to the API

php,google-api,google-oauth,google-api-php-client,gmail-api
I am trying access the Gmail API with my application. I should have done properly all the setup and I am testing a request to the API, in the specific the request to get the messages as read only. My code: public function gmail_get_messages() { $client = new Google_Client(); $client->setApplicationName("Gmail...

Google Calendar API v3 .NET authentication with Service Account or Web Application ID

asp.net,google-api,google-calendar,google-oauth,google-api-dotnet-client
I need to connect a Google Calendar on my .NET 4.5 application (VS 2013 project). I want to get all the information from the Calendar, such as: events, dates, notes, names, guests, etc... I used the Google Developer Console to create both a Web Application Client ID and a Service...

What is the preferred method of using Google for sign-in?

authentication,oauth-2.0,google-plus,google-oauth
Google has a habit of providing multiple means to achieve a goal. And of ditching services when they feel like it. If I would need to implement a "sign-in with Google" authentication feature today, which one should I pick? Google Sign-In or Google+ Sign-In? Or to put it differently: which...

How to login with another user when using Google for login?

php,authentication,google-api,google-oauth
I am using Google login to authenticate user before they login to my website. Here is what I am doing. User comes to my website Click on login button Login with Google account if user pass google authentication, session is set when user click on logout, session is destroyed Basic...

How to exclude trashed files when listing files in google drive

api,rest,google-drive-sdk,google-oauth,google-docs-api
I want to list all the files in google drive using google drive api v2 . But I want to exclude files in trash in the list So I tried GET https://www.googleapis.com/drive/v2/files?trashed=false as suggested in the api documentation But still I get files in the trash folder ,Am I missing...

Authenticating with Facebook and Google using passport-google-oauth2

node.js,express,google-oauth,passport.js,passport-facebook
I am trying to authenticate with facebook as well as google using passport-google-oauth2 and passport-facebook respectively. My project structure for the auth folder looks like this: auth/facebook index.js login.js verifyCallback.js auth/google index.js login.js verifyCallback.js The auth/google code looks like this: verifyCallback.js var User = require('../../models/user'); module.exports = function(accessToken,refreshToken,profile,done){ function findOrCreateUser(){...

What is the correct mechanism to authenticate to Google in a standalone Python script?

python,google-oauth,gdata,google-contacts
I've got some code that I'm using to extract email address from Gmail contacts into text file. It's a simple Python script that runs in a cron job, and is based on the Python gdata library (currently v2.0.18). As of earlier this month, this no longer works due to Google...

Google OAuth error Required parameter is missing: grant_type

python,flask,google-oauth,python-requests
I'm trying this code: import requests url_token = 'https://accounts.google.com/o/oauth2/token' params = { 'code': request.values.get('code', '', type=str), 'client_id': app.config['SOCIAL_GOOGLE']['consumer_key'], 'client_secret': app.config['SOCIAL_GOOGLE']['consumer_secret'], 'redirect_uri': urllib.quote_plus("https://example.com/google/code"), 'grant_type': 'authorization_code' } out = requests.post(url_token, params=params) using Python-Request in Flask. But I get error response: ERROR - out={ "error" : "invalid_request",...

Improper configured Google play game services in android game

android,google-play-services,google-oauth
I have used Google play game services in my android game. But when i download it from test account I get "The application is incorrectly configured. Check that the package name and signing certificate match the client ID created in Developer Console. Also, if the application is not yet published,...

Google OAuth 2.0 Refresh Token

php,oauth,oauth-2.0,google-oauth,google-login
I am creating a web application that requires Google OAuth authentication. I have successfully recieved the refresh and access token, however, I cannot seem to get the refresh token again. I understand that I need to revoke access from my account in order to get the refresh token again. However...

How to authenticate a java application for the Google Contacts API?

java,google-oauth,gdata,google-contacts
I've had a java application running for a few years that synced some contacts from some database into the gmail account of a customer. This stopped working a few days ago, presumably because Google stopped supporting the simple username/password authentication. First question: Am I correct in assuming that the only...

is it possible to retrieve the refresh token with google oauth2

python-2.7,oauth,google-oauth
Is it possible to retrieve the refresh token from a google account for an application? I use a google oauth login for my web application. When signing in the first time the refresh token is generated. But when something goes wrong or the the program doesnt accept the user, but...

Access Google user content programmatically using OAuth

android,oauth,google-oauth,google-account
So these are the devices attached to my Google account. As every one knows, Google secures information provided by you, which includes, personal info, apps registered, devices connected etc.. You can access the info of a logged in user in your browser from Google account info Question 1: What...

Google Analytics Embed API: Display specific account data, not authenticated users

google-api,google-oauth,google-analytics-api
I have this example - Embed API Third Party Visualizations - working locally and on a test server, but I'm unsure of what I need to do to ONLY display our organization's Google Analytics data instead of the user's personal GA account. I created the project and clientID within our...

How to create OAuthParameters from access token for Google Contacts API

java,google-oauth,gdata-api,google-data-api,google-oauth-java-client
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 created ContactsService service =...