domain-wide-delegation

Google OAuth using domain wide delegation and service account

那年仲夏 提交于 2020-07-23 07:11:28
问题 I am trying to make google drive API calls using domain wide delegation by using a service account. I can get the authentication working but not the drive api calls. Error: File not found when creating a file in drive Also before domain wide delegation I made it to work by sharing a drive folder with the service account. But now I want it to work without sharing. I think i need to do some setServiceAccount stuff somewhere. Not sure where that would happen. const {google} = require('googleapis

Google OAuth using domain wide delegation and service account

大兔子大兔子 提交于 2020-07-23 07:10:49
问题 I am trying to make google drive API calls using domain wide delegation by using a service account. I can get the authentication working but not the drive api calls. Error: File not found when creating a file in drive Also before domain wide delegation I made it to work by sharing a drive folder with the service account. But now I want it to work without sharing. I think i need to do some setServiceAccount stuff somewhere. Not sure where that would happen. const {google} = require('googleapis

Google OAuth using domain wide delegation and service account

谁都会走 提交于 2020-07-23 07:09:38
问题 I am trying to make google drive API calls using domain wide delegation by using a service account. I can get the authentication working but not the drive api calls. Error: File not found when creating a file in drive Also before domain wide delegation I made it to work by sharing a drive folder with the service account. But now I want it to work without sharing. I think i need to do some setServiceAccount stuff somewhere. Not sure where that would happen. const {google} = require('googleapis