google-oauth

Can Chrome Extensions steal OAuth tokens from redirect-uri?

蹲街弑〆低调 提交于 2021-01-29 09:48:03
问题 I'm working on auth between a Chrome Extension, Google Cloud Platform, and trying to send the id_token JWT to an AWS server to retrieve user data (and/or establish a session?). My question is this -- how can I prevent chrome extensions with tabs permissions from reading the GET request or the redirected URI which has the fully-validated user JWT? The JWT confirms that a user is who they are, but how do I know my Chrome Extension is the one making the request to my backend? I have a few ideas:

Does “The OAuth client was deleted” from Google mean the keys are invalid?

人走茶凉 提交于 2021-01-29 09:40:35
问题 I am trying to track down leaked values for GOOGLE_CLIENT_SECRET and GOOGLE_CLIENT_ID . I run this basic flask app here in docker, link it to localhost, edit /etc/hosts to map that to "myserver.local.com" and access the page. When I click Login on the "This app will attempt to authenticate you through Google OAuth 2.0" screen, I get this error Authorization Error Error 401: deleted_client The OAuth client was deleted Excluding the possibility of restoring the project within 30 days of

Generating RSA JWT in Postman Pre-request script

纵饮孤独 提交于 2021-01-29 07:46:48
问题 I have the following pre-request script that i am using to attempt to generate a JWT for Google Api - Google uses the RS256 encryption which is where I think I am getting stuck - the CryptoJS seems to support HmacSHA256 only - Any advise would be helpful: Here's my pre-request script from Postman: function base64url(source) { // Encode in classical base64 encodedSource = CryptoJS.enc.Base64.stringify(source); // Remove padding equal characters encodedSource = encodedSource.replace(/=+$/, '');

How to resubmit for google oauth verification if changes in scope without disturbing the production

久未见 提交于 2021-01-29 07:06:04
问题 I have my gmail extension running successfully with some good number of users. Now I've added some new functionality to that which require some additional restricted gmail permissions. As this is an extension, so if I deploy new changes to that without verification of new scope, users (new and old both) who will use new functionality of extension will see unverified consent screen. So, I want to know if it's possible to submit dev or test app for oauth verification, while using production

Google picker selected file callback

时光怂恿深爱的人放手 提交于 2021-01-28 13:33:33
问题 i have integrated and try to use the google picker api google picker api but can i turn the callback into file ? so i can upload the file to my server function pickerCallback(data) { if (data.action == google.picker.Action.PICKED) { var fileId = data.docs[0].id; alert('The user selected: ' + fileId); } } 回答1: Once you have the fileId , you can download the file as explained in the documentation for Download files with the Drive API Unfortunately, there is no sample for Browser Javascript, but

Will an old refresh token still be valid if a new refresh token get issued?

江枫思渺然 提交于 2021-01-28 08:55:47
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

Will an old refresh token still be valid if a new refresh token get issued?

随声附和 提交于 2021-01-28 08:42:19
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

Google api redirect uri issue while reading google sheet from java

醉酒当歌 提交于 2021-01-28 06:12:26
问题 I am using oauth2 google drive API to read data from a google sheet in Java. I have an working sample on my local machine. But when I deploy it on the remote server, at the time of authentication the API returns a URL which is to be opened in browser. The URL is like below : https://accounts.google.com/o/oauth2/auth?access_type=online&approval_prompt=auto&client_id=my.client.id&redirect_uri=http://**localhost:58305**/Callback&response_type=code&scope=https://www.googleapis.com/auth/drive

NextPageToken gives invalid input error, 400 - Google Directory API ChomeDevices

别来无恙 提交于 2021-01-28 05:05:53
问题 I have to fetch 250K chromebooks from google workspace (Gsuite), I am using Admin Directory API to retrieve JSON data from Google. The response returns in chunks of 200 records, in the response is included a nextPageToken , I use that next page token to retrieve the next 200 and so on. After an hour, of using the nextPageToken attached from the previous request, However Google returns with error 400, {error_code: 400, "message"=>"Invalid Input: CMiJhq7-5ewCEp0BCm737N8GN......"}, Note: This

Invalid parameter value for redirect_uri: Invalid scheme: <http:

半世苍凉 提交于 2021-01-28 02:58:53
问题 Good Evening - I am using the following youtube tutorial named "Tutoriel PHP - Importer des contacts Google" to try and import google contacts https://www.youtube.com/watch?v=ysNVe0TaVFs When I click on the link to import google contacts, instead of asking for permission and getting the contacts and displaying them on screen, there is this problem - I get the following error: Error: invalid_request Invalid parameter value for redirect_uri: Invalid scheme: <http://chi.fis.com/mut_folder/index