google-oauth-java-client

Gmail API + Service accounts return 403 error

孤街醉人 提交于 2019-12-13 07:00:53
问题 All I tried Gmail API with service account. I implemented code following: package mywork.gmail.api; import java.io.File; import java.io.IOException; import java.security.GeneralSecurityException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; import com.google.api.client.http.HttpTransport; import com.google.api.client.json

Email Settings API - ClientLogin

送分小仙女□ 提交于 2019-12-13 04:32:32
问题 We are using EMAIL Settings API and ClientLogin for Authentication. EMAIL Settings API is still on GDATA Libraries. Using GDATA libraries can we start using OAuth 2.0 ? (we are using the appsforyourdomain client library to use EMAIL Settings API) Or can we continue using ClientLogin ? Based on the post looks like ClientLogin is going to retire by April 20, 2015. Please guide me the right approach. GDATA API : 1.46.0. EMAIL Settings API is used only for disabling the webclips for the user.

404 Error while accessing https://www.googleapis.com/oauth2/v1/certs

流过昼夜 提交于 2019-12-11 09:39:08
问题 UPDATE : As of 29.10.204 5:00 PM EST the services seems to be working fine We are trying to do authToken authentication and all the request are failing with 404 error. This started happening since this morning (28-10-2014). This is happening from Europe (Germany) Edit Now I am seeing the same behavior from USA as well but the failure rate is less as compared to Germany. java.io.FileNotFoundException: https://www.googleapis.com/oauth2/v1/certs at sun.reflect.NativeConstructorAccessorImpl

User Registration & Login | SSO using Spring Security OAuth 2.0

淺唱寂寞╮ 提交于 2019-12-10 19:06:46
问题 I am trying to implement user registration and log in flow | SSO using Spring Security Oauth 2.0 and Google as the authentication provider. How should I initiate registration and login flow? What filter needs to be applied? In registration flow, I will needs user's details (name, email) that are part of successful authorization response, to be persisted in my local database. How do I handle that? What's the purpose of oauth2:client id="oauth2ClientFilter" ? This is how my application context

Google OAuth 2.0 incremental authorization not working

为君一笑 提交于 2019-12-10 13:53:57
问题 I have a server-side application that needs access to a combination of Google APIs, for some users of our app we only need access to one API/set of scopes (say Google Drive), for other users to another API/scope (say G+), and for some we need access to both (users can link to the other part of the app at a later time). We wanted to use incremental authorization for this, but when we first request access to one set of scopes, then later on request access to another set of scopes, the access

Youtube Data API - How to avoid Google OAuth redirect URL authorization

丶灬走出姿态 提交于 2019-12-06 02:42:14
问题 Requirement : I am trying to upload videos to my Youtube channel through Youtube Data API for Java. The request is sent from a war file hosted on tomcat container.My application is not for external users and I only use it to upload my own generated videos. With the help of the api documentation and sample youtube code snippets, I have successfully managed to post video on youtube. Problem: The issue is that whenever I try to run the code, I get prompted for Please open the following address

Google Marketplace App / OAuth2 - Programmatically Delegate Domain-Wide Authorization

允我心安 提交于 2019-12-05 07:50:43
问题 Context I'm currently migrating an OAuth 1.0/OpenId based app over to use OAuth 2.0. The app is a Google App Engine app built in Java and will be in the new apps marketplace 2.0. I've got the basic OAuth 2.0 flow working fine for individual users but am having trouble setting up the service account for my scenario below. Issue The flow I'm trying to enable is as follows: Domain admin installs app from apps marketplace Domain admin grants requested scopes (e.g. admin sdk, profile, email, etc)

Youtube Data API - How to avoid Google OAuth redirect URL authorization

痴心易碎 提交于 2019-12-04 07:08:25
Requirement : I am trying to upload videos to my Youtube channel through Youtube Data API for Java. The request is sent from a war file hosted on tomcat container.My application is not for external users and I only use it to upload my own generated videos. With the help of the api documentation and sample youtube code snippets, I have successfully managed to post video on youtube. Problem: The issue is that whenever I try to run the code, I get prompted for Please open the following address in your browser: https://accounts.google.com/o/oauth2/auth?client_id= &redirect_uri= http://localhost

Google Marketplace App / OAuth2 - Programmatically Delegate Domain-Wide Authorization

烈酒焚心 提交于 2019-12-03 21:58:50
Context I'm currently migrating an OAuth 1.0/OpenId based app over to use OAuth 2.0. The app is a Google App Engine app built in Java and will be in the new apps marketplace 2.0. I've got the basic OAuth 2.0 flow working fine for individual users but am having trouble setting up the service account for my scenario below. Issue The flow I'm trying to enable is as follows: Domain admin installs app from apps marketplace Domain admin grants requested scopes (e.g. admin sdk, profile, email, etc) Users from the new domain can log in without any prompts for scope permission As users log in, my app's

Server side authorization with Google Play Developer API?

不打扰是莪最后的温柔 提交于 2019-11-30 22:25:18
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://www.myurl.com/oauth2callback&client_id=1234567890.apps.googleusercontent.com 2.) get code which was