google-oauth

What the attacker could do if he obtains application's client_secret?

杀马特。学长 韩版系。学妹 提交于 2020-06-28 06:15:27
问题 I've searched a lot online but with no use. I want to know what could the attacker do if he obtains the client_id and client_secret of an Google's Oauth2 app. Like what the information he would be able to see? Can he edit the app configurations? Can he see other people information? I haven't worked with Oauth2.0 before so please make your answer simple Thanks! 回答1: I want to know what could the attacker do if he obtains the client_id and client_secret of an Google's Oauth2 app. The OAuth 2

OAuth consent screen - ability to remove application logo: old solution is no longer working

寵の児 提交于 2020-06-27 16:50:27
问题 Question : how to remove an application logo. Solution : previous solution from this answer, https://stackoverflow.com/a/57168008/1992004, is no longer working. Google changed the format of "iconUrl" to "icon" , and uses now the Base64 -encoded data stream, like "icon":"iVBORw0KGgoAAAAN... , instead of the image URL, previously written as "iconUrl":"https://..." . I've tried "icon":"" and many Base64-encoded values like "icon":"IA" , "icon":"Lw" , and some of other - no success. I get console

Google Drive API: The user has not granted the app error

和自甴很熟 提交于 2020-06-27 08:13:31
问题 I'm following the Quickstart on https://developers.google.com/drive/api/v3/quickstart/python. I've enabled the drive API through the page, loaded the credentials.json and can successfully list files in my google drive. However when I wanted to download a file, I got the message `The user has not granted the app ####### read access to the file` Do I need to do more than putting that scope in my code or do I need to activate something else? SCOPES = 'https://www.googleapis.com/auth/drive.file'

Why YouTube API Scopes error happens on the Windows Server?

有些话、适合烂在心里 提交于 2020-06-23 16:00:10
问题 I am using YouTube API to get the data and for a month there is an error when I try to make a request on a Windows Server 2012 R2, (local works). Basically, before the script makes a request he updates a YouTube token in order not to perform a log on into Google Account. The function loads a pickle file with the credentials and updates them if necessary. The error happens on the line "creds.refresh(Request())" by drilling down by scopes- def main_load_page(youtube, API_VERSION, SCOPES, CLIENT

Why YouTube API Scopes error happens on the Windows Server?

牧云@^-^@ 提交于 2020-06-23 15:59:11
问题 I am using YouTube API to get the data and for a month there is an error when I try to make a request on a Windows Server 2012 R2, (local works). Basically, before the script makes a request he updates a YouTube token in order not to perform a log on into Google Account. The function loads a pickle file with the credentials and updates them if necessary. The error happens on the line "creds.refresh(Request())" by drilling down by scopes- def main_load_page(youtube, API_VERSION, SCOPES, CLIENT

Securely calling a Google Cloud Function via a Google Apps Script

不羁的心 提交于 2020-06-12 09:11:57
问题 How can I securely call a Google Cloud Function via a Google Apps Script? ✅ I have a Google Cloud Function, which I can access at https://MY_REGION-MY_PROJECT.cloudfunctions.net/MY_FUNCTION , and which I would like to allow certain users to invoke via an Apps Script. ✅ To secure the Cloud Function, I have set Cloud Function Invoker to only include known email (e.g. USER@COMPANY.com , where this is a valid Google email). ✅ I am able to successfully invoke the Cloud Function via curl, while

Securely calling a Google Cloud Function via a Google Apps Script

大憨熊 提交于 2020-06-12 09:11:02
问题 How can I securely call a Google Cloud Function via a Google Apps Script? ✅ I have a Google Cloud Function, which I can access at https://MY_REGION-MY_PROJECT.cloudfunctions.net/MY_FUNCTION , and which I would like to allow certain users to invoke via an Apps Script. ✅ To secure the Cloud Function, I have set Cloud Function Invoker to only include known email (e.g. USER@COMPANY.com , where this is a valid Google email). ✅ I am able to successfully invoke the Cloud Function via curl, while

Where is the list of which Google OAuth2 scopes are considered “sensitive”?

一曲冷凌霜 提交于 2020-05-29 04:53:47
问题 I understand that Google OAuth2 scopes broadly fit into three buckets, ordered from most difficult to be approved to use, to least: Restricted Scopes Sensitive Scopes everything else I found a list of Restricted Scopes, here: https://support.google.com/cloud/answer/9110914?hl=en I am unable to find a list of Sensitive Scopes. All of the Google pages i've seen simply explain what happens if you request a sensitive scope, or how to go about review if you are using a sensitive scope. Fine, but

Google Cloud Run Authentication Service-to-Service

放肆的年华 提交于 2020-05-27 06:14:46
问题 I have two services (APIs) deployed on GCP Cloud Run. Call them service-one.myDomain.com and service-two.myDomain.com . I would like service-one to be authenticated in calling service-two independently of what any user is doing. I've read and implemented the instructions from GCP Cloud Run docs on Authenticating service-to-service (https://cloud.google.com/run/docs/authenticating/service-to-service) but service-one.myDomain.com is unsuccessful in calling service-two.myDomain.com receiving a

OAuth 2.0 - does the client-secret has to be “secret”?

主宰稳场 提交于 2020-05-26 05:13:29
问题 I'm just curious - do I need to keep the client_secret from Google/FaceBook/another OAuth 2.0 providers in a 'secret' place? As far as I can see, there're very little things that could be done with client-secret parameter, as soon as I specify very restrictive callback-urls. So is it safe, for instance, to commit 'secret' keys to github/bitbucket/etc as a public repository for some live web-project? As far as I know, client-secret has nothing in common with the developer account on google