Questions tagged [google-oauth]

1

votes
2

answer
2.7k

Views

google api (sheets) Request had insufficient authentication scopes

i want to read an write data from a sheet, reading works fine but writing doesn't. i use all the scopes mentioned in the documentation: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append data_writer(1,1,1) code: from __future__ import print_function from apiclient....
extreme4all
1

votes
3

answer
248

Views

Google Sign In for Android: Cannot resolve RC_SIGN_IN

I'm trying to authenticate with backend server from mobile app. I was following this documentation. https://developers.google.com/identity/sign-in/android/sign-in However, there are some errors. RC_SIGN_IN and updateUI() cannot be resolved. My code is like this public class MainActivity extends AppC...
0

votes
0

answer
8

Views

How can I access the birthdate from HWI/OAuthBundle when connecting via google OAuth 2?

I have a PHP Symfony 4.2 application with HWI/OAuthBundle properly configured. I created an OAuth 2 key and secret. I configured it in the hwi_oauth section of the symfony files. I use it to login users via a custom UserProvider. In particular I'm concerned in overwriting the method public function...
Xavi Montero
1

votes
0

answer
52

Views

What links an account whenever you sign in using Facebook or Google

So here's my question. Say you have a Gmail and Facebook and they both use the same email. Now say you login an app using Facebook. Say you log out and log back in using Google. It should link to the same account from what I've seen. But what happens if you were to change your Facebook primary email...
huey77
1

votes
3

answer
263

Views

Analytics API - multiple accounts

I am trying to implement something like so: There a multiple emails associated with analytics account: [email protected] http://john.com [email protected] http://another.com [email protected] http://foo.com I need to fetch analytics data through API . I am aware about credentials.json when creating app bu...
Hrach Karapetyan
1

votes
0

answer
391

Views

Error when accessing Google OAuth from Docker container : device_id and device_name are required for private IP

I have a dockerized flask app running from a docker-machine with IP 192.168.99.100 that is trying to access Google OAuth. However, I am getting the following error: Error: invalid_request device_id and device_name are required for private IP: http://192.168.99.100:8001/login/authorized I tried the s...
Ron
1

votes
0

answer
366

Views

Google drive integration with swift

I'm continuously getting error message 'Daily limit for unauthenticated use exceed. Continued use requires signup.' after successful login for the first time. I was able to get all my files from the account. but after that I am not able to get into account. What I'm missing? I have done code accordi...
Krutika Sonawala
1

votes
1

answer
570

Views

Import six module not working despite pip installation

I am building a web app (based on google app engine & python 2.7) and trying to import the six.move module. But although 'six' is installed, it is not found when importing (note, I am not using frameworks yet like Django). On my working environment (env), I ran: | => pip show six Name: six Version:...
pablo-az
1

votes
1

answer
202

Views

PassportJs Google Auth2 failureRedirect not working

I am using passport-google-oauth for authentication of google login. Almost all thing working fine but failureRedirect never called when I return error from config/google.js file i.e, return done(new Error('Sorry! Your email id is not found. Please contact to Admin.')); explain by example. Please go...
tts
1

votes
2

answer
333

Views

get refresh token from authorization code google oauth2

I am trying to get Exchange authorization code for refresh and access tokens. here is my post call data I am sending to google. var requestBody = { code:**mycode**, grant_type:'authorization_code', client_secret: **mysecret**, client_id: **clientId**, redirect_uri:'http://localhost:3000' } I am send...
Saurabh Sinha
1

votes
1

answer
847

Views

Install resty.http with already installed openresty

I installed openresty-1.13.6.1 but it lacks 'resty.http' module. My openresty is installed in /usr/local/openresty and i need to integrate resty.http module with it. How to do it?
lonecoder
1

votes
0

answer
742

Views

How to set GOOGLE_APPLICATION_CREDENTIALS without using a path

I'm developing a CMS module that needs to use Google OAUTH 2 for server to server applications. According to the official manual one needs to set an environment variable with the path to .json key like so: putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json'); And here is the tricky...
RWS
1

votes
0

answer
237

Views

Retrieve the access token with GoogleCredentials class in App Engine

I am using the library com.google.auth:google-auth-library-oauth2-http:0.9.0 in my Google App Engine application. My application makes requests to another application with its default application engine service account with domain delegation enabled. I have many users that I need to cache their toke...
fcocruzolmo
1

votes
1

answer
383

Views

Google API scope drive.file includes drive.metadata

I'm requesting authorization codes using the Google API and specify https://www.googleapis.com/auth/drive.file as the required scope since I'm going to store files on the users drives. However, when I'm authenticating it says my application requests permission for two scopes, both View and manage G...
Vincent
1

votes
1

answer
149

Views

How to use authenticate a user for google sheets api on a remote server using Node.js?

I am working with Google sheets and node.js and I am able to authorize a user locally and get auth data using cmd using this tutorial https://developers.google.com/sheets/api/quickstart/nodejs but cant authorize it on a remote server like Heroku so I have found an example https://codelabs.developers...
Suyash Doneria
1

votes
0

answer
93

Views

Non admin users prompted for scopes after domain-wide install

I've created a GSuite Marketplace App that is meant to only be installed via domain admins to approve the required scopes for their entire domain. During the test installation process when I install the app as an administrator it prompts for the expected scopes and installs it for every user as expe...
Ernie Turner
1

votes
2

answer
939

Views

Why can't the google JWT token be decoded by jwt.io

I have Google authentication enabled in an Azure App Service .NET Core application, and I am trying to generate an access token using Postman: An access token and an id_token get successfully generated, but when I input the access token into jwt.io, I see gibberish back: I am new to google auth as...
Mikeyg36
1

votes
1

answer
487

Views

How to force the Google API/OAUTH consent screen?

I have a Chrome Extension that, in the manifest, includes the Drive API. On install, when the user opens a Google Doc, background.js pops the consent screen to get the user's permission to access their Google Drive. This works fine on install. But if the user removes the app from Drive the code does...
11teenth
1

votes
1

answer
66

Views

Can I publish Google spreadsheet add-on without verification?

I tried to publish an add-on and Google reviewed it. They sent me this: Please check that your add-on doesn’t comply with the Google OAuth verification, please follow the steps in our dev guide related to this, fill this form, and wait for the OAuth team response before submitting it again. Can I...
Dohn Joe
1

votes
2

answer
960

Views

Google OAuth 403 when refreshing access token

In a UWP app, I first get a refresh token and an access token using the following endpoint : string tokenRequestBody = string.Format('code={0}&redirect_uri={1}&client_id={2}&scope=&grant_type=authorization_code', code, System.Uri.EscapeDataString(redirectURI), clientID ); StringContent content = new...
Jérôme S.
1

votes
1

answer
387

Views

Forcing user to sign in with their Google Organization (G Suite) account in mvc c#

I have implemented google authentication in my mvc site. Here is my sample code- AuthConfig.cs public static class AuthConfig { private static string GoogleClientId = ConfigurationManager.AppSettings['GoogleClientId']; private static string GoogleClientSecret = ConfigurationManager.AppSettings['Goog...
Sonali
1

votes
1

answer
427

Views

Unauthorized 401 error while 'execute as me'

I am struggling with a web app I have deployed. When the site permission is available to 'all with the link', as the app is set to 'execute as me', a spreadsheet is properly removed from my drive and a new file created. If I restrict access to certain email addresses, the code no longer works. I t...
Glib
1

votes
3

answer
774

Views

How to add a param to google oauth 2

I am trying to make an authorize request with google oAuth using the code below $client = new Google_Client(); $client->setClientId('qweqweqweqwe'); $client->setClientSecret('vQWsd1Geweqweqweqwe'); $client->setRedirectUri('http://localhost/test1'); $client->setAccessType('offline'); $client->setAppr...
PrStandup
1

votes
1

answer
253

Views

Display Google Analytics page view in specific page

i have stuck on displaying Google Analytics specific page view a few days, from referring on the hello analytics. I have try to modify it to everybody can view without login gmail in specific web page(using autoload to taking accessToken), below are the code : View (function(w,d,s,g,js,fs){ g=w.gapi...
Mun Kiat
1

votes
0

answer
130

Views

using google api refresh_token

We have a mobile based application, where mobile ask user the offline access to google drive. Google give the credentials to mobile from where it is passed to the server via API. Server access users google drive. Mainly include file manipulation according to his or his contacts actions(So the user...
alrarea
1

votes
0

answer
82

Views

Problems setting scope when requesting access token for directory API

Trying to set the scope when I grab the access token, I just keep getting back the same error { 'error': 'invalid_scope', 'error_description': 'Bad Request' } when setting scope as https://www.googleapis.com/auth/admin.directory.user.readonly. Also, the Google OAuth2.0 Playground does no have this s...
user3404465
1

votes
1

answer
126

Views

Error: Client is unauthorized to retrieve access tokens (ServiceAccountCredentials) nodejs

I have been trying to create an app to list all gmail labels of given user by using service account. Service account have domain-wide delegation and it's raise error when I ran this script 'Client is unauthorized to retrieve access tokens'. var {google} = require('googleapis'); const SCOPES = [ 'htt...
ravindra singh
1

votes
1

answer
494

Views

YouTube: Error, login required?

I'm trying to broadcast a event on YouTube using googleapi but it throwing me an response with an error saying login required. I already have enabled the YouTube api in my developer console. and here is my code.. const { google } = require('googleapis'); var OAuth2 = google.OAuth2; const { OAuth2Cl...
P.hunter
1

votes
1

answer
291

Views

I cant get the google analytics example to work, PHP

So I'm trying to create a web app that will let users view data from many different google analytics accounts. So they could enter someones credentials (however that works) and then have an option to take the data for that account and print it out in a .pdf or something similar. My first question i...
luc
1

votes
1

answer
385

Views

Using Gmail API OAutho2 authentication with ReactJS project

I'm trying to fetch the emails from the logged in user. Using https://www.googleapis.com/gmail/v1/users/userId/messages. I'm passing access_token, scope as a header in my AJAX call. But i'm getting 'errors': [{ 'domain': 'global', 'reason': 'authError', 'message': 'Invalid Credentials', 'locationTy...
Saurav Gupta
1

votes
1

answer
216

Views

Google APIs - removing auth scope

I'm changing scopes in an app for Google Classroom. I remove from courses .readonly and added student listing var SCOPES = 'https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/classroom.coursework.students'; I get this error when requesting students even after logging o...
Growler
1

votes
0

answer
56

Views

Creating Triggers in my Drive vs Team Drive

I am having trouble creating a Trigger in sheets. The error I am getting is 'Action Not Allowed' when the code gets to .create(). What I do not understand it I can run this code on a doc in myDrive but if I use this code in a Team Drive sheet it does not allow it. How can I create a Trigger in a tea...
1

votes
2

answer
158

Views

Adding reminder entry in Google Calendar

I want to add reminder in Google Calendar. To do that I am referring this article https://developers.google.com/google-apps/calendar/quickstart/dotnet but as soon as my debugger reach credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, Scopes, 'user',...
Imad
1

votes
0

answer
86

Views

Getting SSL Exception in App auth

I am getting the below error when trying to hit the App auth url. E/AppAuth: Network error when retrieving discovery document. javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Manu Ram V
1

votes
1

answer
215

Views

how to check If my app still has access to client account

I am using gmail api to read users mailbox and show them on my app.In order to do that I save his credentials in a db which I pass with every api request to gmail. But If the user has removed the access to my app as mentioned here [https://myaccount.google.com/permissions] I would not be able to rea...
vinay puh
1

votes
0

answer
42

Views

How to use OAuth securely on custom domains?

Our software can be installed by customers on premise. Optionally we provide predictable domain names like *.foo.eu and sometimes customers just user their own domain names. We want to integrate our Web application installed on a customer machine with custom domain with OAuth authentication mechani...
norekhov
1

votes
1

answer
343

Views

Mule deployment fails- Cannot assign requested address

I have developed an api which consumes google api's that use oauth 2.0. The api is successfully deployed in local with following configuration: 1. https on port 8443. 2. redirection url : https://localhost:8082/callback 3. local authorization url : https://localhost:8082/login having the same config...
priya
1

votes
2

answer
699

Views

Google API insufficient permissions

I'm trying to add a gmail user to a group using google's api in python. Here's my code: from __future__ import print_function import httplib2 import os from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Storage try: import arg...
davidb
1

votes
0

answer
173

Views

How to do oauth for Excel add-in?

I want to do oauth inside an Excel add-in. I have an embedded browser where I can open the oauth url. Which oauth options I should go for ? manual copy/paste programmatic extraction (https://developers.google.com/identity/protocols/OAuth2InstalledApp) As all apps will be manually verified by Google,...
Hari Das
1

votes
1

answer
42

Views

How to remove connected apps from a google account using the Google API

I have created a custom app for my website. How can I remove a connected custom apps from a Google account using a Google AP?

View additional questions