google-oauth-java-client

Forcing a user to choose an account via Google OAuth2

烈酒焚心 提交于 2020-01-21 04:10:27
问题 I have the following workflow in my application: user logs into my custom app user clicks a button to link their YouTube account application makes a server side request using the code listing below user is redirected to the google auth url At this point, one of two things happens: [I never want this behaviour] - If the user is logged into exactly one Google account (i.e. gmail, Google Apps for Domains, etc...) the user is never asked to choose which account to link. It just assumes they want

Gmail (for business) API doesn't allow to send email from Alias?

时光怂恿深爱的人放手 提交于 2020-01-03 15:35:37
问题 I want to email my customers using different "roles" (e.g. info@ , customer-support@, tech-support@, no-reply@). I've tried 2 approaches: Multiple "users"/accounts in my Gmail for business application. Single gmail account with multiple aliases. I started by setting up a Service Account with global delegation for my Gmail for Business application. To test that it works, I've set up 2 users: lev@mydomain.com and root@mydomain.com. Indeed, I can successfully send email both from lev@ and root@.

Authentication to upload files in my drive using Google drive API client library for Java

只谈情不闲聊 提交于 2019-12-25 01:34:29
问题 I have spring+maven based java application having rest web service. For each call to this rest webservice, I want my application to upload a file to my google drive account. I found this. How can I authentication account before uploading in my application? Do I need Google OAuth2.0 for web application server application? or Authentication method in quick start guide for java will do for my application? I am new to OAuth. Is there any complete guide on google drive authentication and using

Implementing Google+ one-time code flow authentication from chrome extension

自古美人都是妖i 提交于 2019-12-23 04:08:08
问题 I am trying to implement a Google+ sign in option as part of a chrome extension using the one-time code flow as described here. While making a request using the javascript Google API package a popup opens with an "origin_mismatch" error. This is obviously since I need to add my origin to the relevant Client Id on the Google API console. My origin is : chrome-extension://<my extension id> however when trying to add that on the API console I get an error saying "Invalid URI: chrome-extension://

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

Gmail API access using Android

心不动则不痛 提交于 2019-12-18 14:56:25
问题 I am trying to access the Gmail API using an Android application. I have successfully requested and received an access token using all available scope combinations. But it seems that every time I actually try to use the Gmail API command I am getting a 403 exception reading: Access not configured please use Google developers console to activate the api... Needless to say the API is activated and a client key was created using the correct package name & sha1 code. Same client ID works well

Google OAUTH: The redirect URI in the request did not match a registered redirect URI

[亡魂溺海] 提交于 2019-12-17 15:36:13
问题 I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling my hair out off my head. I registered my web app in Google Console, so I got a pair of Client ID and Secret and a possibility to download JSON type file with my config. So here is the config: { "web":{ "auth_uri":"https://accounts.google.com/o/oauth2/auth", "client_secret":"***", "token_uri":"https://accounts.google.com/o