google-oauth2

Keeping user logged in after refresh/using refresh token with Google OAuth2 in React app

橙三吉。 提交于 2020-07-07 07:27:28
问题 I’m building a React app where a key part of the functionality is a user can sign into their Google account and then access a feed of their most recent Google Drive/Docs mentions and notifications. A user arrives at my site where I load the Google OAuth2 client with my client_id , apiKey , scope and discoveryDocs , and they can click a button to sign in. For convenience, I’d like the user to not have to re-login and re-auth with their Google account every time they use the app or the app

How to send GET request with google OAuth2 and Java to script.google.com web page?

 ̄綄美尐妖づ 提交于 2020-06-29 04:07:48
问题 GET is working for me but I get google services authorization page when I send it. I read guides from google but still don't understand how to use Credentials right. This thing is for managing script files itself and have nothing to do with my problem :/ Would be decent if it is possible in Java 回答1: After sign in google you will be redirected on redirect page with google code. Redirect page could be set in google private user console. When you will get google code you could use code for

How to get Google OAuth 2.0 Access token directly using curl? (without using Google Libraries)

白昼怎懂夜的黑 提交于 2020-06-24 06:20:58
问题 I'm trying to follow this tutorial to authenticate with Google using their OAuth 2.0 API. However, I would like to make straight curl calls rather than use their libraries. I have obtained my Client ID and Client Secret Key. Now I'm trying to get the access token like this: curl \ --request POST \ --header "Content-Type: application/json" \ --data '{ "client_id":"MY_CLIENT_ID", "client_secret":"MY_SECRET_KEY", "redirect_uri": "http://localhost/etc", "grant_type":"authorization_code" }' \

Share private video to some google accounts through API

六月ゝ 毕业季﹏ 提交于 2020-06-11 05:28:36
问题 I'm trying to figure out wheter it is possible to have a private video on youtube that I could share with particular Google Accounts through API. I would have a separate web application that would have a Google signup and after signup I would enable that Google Account to watch my private video. Ideally I would also want to embed the video to the web application (but I think I can do this rather easily if I'm an owner of the video). 回答1: Ispossible to have a private video on YouTube that I

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

Does Google Yolo / Google One-tap auth method alive now?

孤人 提交于 2020-05-14 09:14:27
问题 I am trying to use google one-tap sign out method in my site. I Have read some of articles about this in Medium, but all of them are too old(2018). And as I see now - official documentation for this feature are gone - https://developers.google.com/identity/one-tap/web/ And I dont know, does google support google yolo now? 回答1: I think Google Yolo might officially be dead https://neerajsinha.com/google-one-tap-yolo/ 回答2: It's public available now at: https://developers.google.com/identity/one

Is it possible to call APIs from service account without acting on behalf of a user in domain-wide delegation?

我的梦境 提交于 2020-05-11 11:58:54
问题 My Python script retrieves infos about users and groups from a G Suite (testing, for now, with the 14 days free account). I'm using domain-wide delegation and OAuth 2.0 for server to server applications because I don't want to display a pop window where users from hosted domains would allow me to see their groups and users. These are the steps I followed in order to get users and groups: create and download all the necessary credentials, such as Client ID; from my G Suite admin console, allow

Is it possible to call APIs from service account without acting on behalf of a user in domain-wide delegation?

て烟熏妆下的殇ゞ 提交于 2020-05-11 11:54:19
问题 My Python script retrieves infos about users and groups from a G Suite (testing, for now, with the 14 days free account). I'm using domain-wide delegation and OAuth 2.0 for server to server applications because I don't want to display a pop window where users from hosted domains would allow me to see their groups and users. These are the steps I followed in order to get users and groups: create and download all the necessary credentials, such as Client ID; from my G Suite admin console, allow

How to load client credentials from json file for YouTube Analytics api?

£可爱£侵袭症+ 提交于 2020-04-29 10:08:18
问题 I want to retrieve monetization data from a friend's YouTube channel. I've used the python code below to get the authentication credentials from him, which I then saved to a JSON file. In that process, he has to click a link and send me the key. I want to avoid that by saving the credentials data. I think I have done that, but how do I load it now? import json import os import google.oauth2.credentials import google_auth_oauthlib.flow from googleapiclient.discovery import build from

How does Google Sign in for Android work without a redirect uri?

丶灬走出姿态 提交于 2020-04-18 05:36:48
问题 The Google Sign in library on Android works without specifying any redirect uri. Why is this the case? To which endpoint does Google send the access code to after the user logs in? And how does it redirect the user back to the app? Thanks. 回答1: Now I see, the redirect uri is in fact the app itself, using a uri that points to a page on the app, not to any website. The redirect uri can be set up in the Android app by using the information here: https://developer.android.com/training/app-links