google-oauth2

Server side authorization with Google Play Developer API?

我的梦境 提交于 2019-12-19 03:40:08
问题 Authorization is required to fetch information from the Google Play Developer API. I know how to do this with Postman, but implementing authorization is much more cumbersome (redirect url, handling redirects, and so on...) These would be the steps when you already have setup the auth data inside the Google Developer API Console. 1.) GET https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri=http:/

401 response when athenticating via Service Account and OAuth2 to GoogleDrive

大憨熊 提交于 2019-12-18 17:07:11
问题 I seem to have hit a wall trying to get a Java application to list of files stored in my GoogleDrive folder. The I have a project setup in the Developer Console. I have enabled for that project the Drive API I have create Auth credentials for a Service Account - and am using the P12 key produced. My code looks like this : import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.auth.oauth2.CredentialRefreshListener; import com.google.api.client.auth.oauth2

401 response when athenticating via Service Account and OAuth2 to GoogleDrive

雨燕双飞 提交于 2019-12-18 17:06:52
问题 I seem to have hit a wall trying to get a Java application to list of files stored in my GoogleDrive folder. The I have a project setup in the Developer Console. I have enabled for that project the Drive API I have create Auth credentials for a Service Account - and am using the P12 key produced. My code looks like this : import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.auth.oauth2.CredentialRefreshListener; import com.google.api.client.auth.oauth2

Google oauth 400 response: No 'Access-Control-Allow-Origin' header is present on the requested resource

好久不见. 提交于 2019-12-18 06:16:10
问题 I'm trying to make request from client-side javascript to the google oauth endpoint (https://accounts.google.com/o/oauth2/v2/auth) with a google calendar scope. Thing is, I can't use google's javascript client, because I'm actually using webpack, and I don't want to have separately include a javascript script outside of my bundle.js. So instead, I'm using axios (https://github.com/mzabriskie/axios) to make the HTTP GET to the aforementioned token endpoint. Here's what my request looks like:

Using Postman to access OAuth 2.0 Google APIs

落爺英雄遲暮 提交于 2019-12-17 05:36:45
问题 I am trying to access Proximity Google API using Postman chrome app. I have followed tutorials on postman and google dev website but I'm still getting 401 error message. What am I doing? Step 1 - Enable Proximity API: In order to use Proximity API, it has to be first enabled in Google Dev console. Using this tutorial I have enabled support for Proximity API for my project Step 2 - Get the credentials: According to this tutorial, I need to get client ID and secret. This is where I am confused.

osapi.people.get() returns 404 in google calendar sidebar gadget

老子叫甜甜 提交于 2019-12-13 21:13:39
问题 For an html-type calendar sidebar gadget with module prefs, <Require feature="opensocial-0.9"/> <Require feature="osapi" /> where calls to osapi.http all successfully send, this results in a 404 response: osapi.people.get({userId:'@viewer'}).execute(function(response) { console.log(response); }); This is wrapped in a POST to the same RPC endpoint as the osapi.http calls, with the post object as expected: [{"method":"people.get","id":"people.get","params":{"userId":"@viewer","groupId":"@self"}

Google OAuth 2.0 - Incremental authorization with offline access

狂风中的少年 提交于 2019-12-13 18:07:11
问题 I'm trying to implement incremental authorization with Google Oauth2 in my application. At first, when users sign in, the application is requesting some scopes and offline access. I'm generating and storing the refreshToken in my database so I can refresh access tokens to make API calls when needed. Now I'm going to implement a new functionality that will request a new scope, but I would like to ask for this scope only if users try to use this new functionality. The problem I'm facing is that

Google Oauth Approval Prompt for .net

旧街凉风 提交于 2019-12-13 05:18:39
问题 How to set the Approval_Prompt=force in Google Auth in .NET? Here's my code: Dim datafolder As String = Current.Server.MapPath("App_Data/CalendarService.api.auth.store") Dim scopes As IList(Of String) = New List(Of String)() Dim UserId As String = "GoogleID_" & pUsername scopes.Add(CalendarService.Scope.Calendar) Dim myclientsecret As New ClientSecrets() With { _ .ClientId = _ClientID, _ .ClientSecret = _ClientSecret _ } Dim flow As GoogleAuthorizationCodeFlow flow = New

How to implement Incremental Authorization with Google API?

不想你离开。 提交于 2019-12-13 04:13:03
问题 I have an installed app that is a toolkit for the user, and as such they're able to choose their own scopes. I've run in to an issue with a scope limit when being passed as parameters via the URL. As such I'm looking to implement Incremental Authorization so that they only have to authorize scopes as they use them, and they don't have to also add scopes again from previous to overwrite. I'm using the GoogleWebAuthorizationBroker class to do the authorization, but I'm not seeing anything that

Appengine server-to-server authentication and Google Domain-wide Authority

佐手、 提交于 2019-12-13 03:57:26
问题 I am trying to pull my reports from YouTube reporting API and upload them into GCS. Since I must use oauth2, I used Google's guide on creating a service account and giving it domain-wide authority. While I can get authenticated service to pull the reports at user level. I get "The caller does not have permission" when appengine runs the request. Any idea where to look next? SCOPES = ['https://www.googleapis.com/auth/yt-analytics-monetary.readonly', 'https://www.googleapis.com/auth