google-oauth2

AppEngine - Remote API returning 401 and too-many-auth

自古美人都是妖i 提交于 2019-11-30 23:00:32
I am trying to connect to an AppEngine instance with the remote API with something like this: os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = ".../path/to/key" remote_api_stub.ConfigureRemoteApiForOAuth( server.encode('ascii'), path, secure=True ) Where the path/to/key points to a JSON file created in the Google Cloud (Beta), API Manager -> Credentials -> Add Credentials -> Service Account . The service account "Can edit" per the Permissions panel. When I run this I get an error like this on the console, corresponding to a 401 (as reported in the App Engine log viewer): File "/usr/local/share

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

iOS: GPPSignInButton always asks for “Have offline access” Permission

倖福魔咒の 提交于 2019-11-30 17:56:44
问题 I've set up the GPPSignInButton based on the following: https://developers.google.com/+/mobile/ios/sign-in#enable_server-side_api_access_for_your_app let googleSignIn = GPPSignIn.sharedInstance() googleSignIn.clientID = GoogleClientID googleSignIn.attemptSSO = true googleSignIn.homeServerClientID = GoogleServerClientID googleSignIn.scopes = ["https://www.googleapis.com/auth/plus.login", "https://www.googleapis.com/auth/plus.profile.emails.read"] googleSignIn.delegate = self googleSignInButton

Oauth2 restrict to emails with specific domain name using hd not working

早过忘川 提交于 2019-11-30 17:05:00
My app was restricting logins by Oauth2 to specific domain like abc.com by specifying abc.com in the hd parameter in my request . Restrict Login Email with Google OAuth2.0 to Specific Domain Name but since these past few days its allowing anyone with a Google account login.I am sure i didn't change the code and even verified the result uri has my domain name specified in its hd parameter following this link instruction https://developers.google.com/identity/protocols/OpenIDConnect#hd-param .so cany any one tell me what i am doing wrong? here is my code `redirect( uri : "https://accounts.google

Google OAuth2 returns Bad Request when logged with multiple accounts

╄→尐↘猪︶ㄣ 提交于 2019-11-30 13:27:01
When I'm logged in google with multiple accounts and i'm trying to authorize myself at https://stackoverflow.com/users/login (or any other site using OAuth2) I get a Bad Request - Error 400 This doesn't happen when i'm in incognito mode A sample request is the following https://accounts.google.com/o/oauth2/auth?client_id=717762328687-p17pldm5fteklla3nplbss3ai9slta0a.apps.googleusercontent.com&scope=profile+email&redirect_uri=https%3a%2f%2fstackauth.com%2fauth%2foauth2%2fgoogle&state=%7b%22sid%22%3a1%2c%22st%22%3a%221435c1882569148a8513b8e5ba7f747ac7821aaf558cbb1a28dd11c5c3cb358b%22%2c%22ses%22

Could not obtain Google oAuth 2 token on POSTMan

百般思念 提交于 2019-11-30 13:04:28
Well, since the Other problem (solved) remain unsolved, I was thinking to use POSTMan to do Trial and Error on each steps that the Client library will do. So I read the Basic steps of Google OAuth2 again, created another OAuth 2 ID at Api Manager > Credentials in Dev Console and ID type is Web Application, and filled them into the POSTMan: New tab in POSTMan, then click the Authorization label. Choose type as OAuth 2.0 and select "Add token to the url" Auth URL: https://accounts.google.com/o/oauth2/v2/auth Access Token URL: https://www.googleapis.com/oauth2/v4/token Client ID: [the Client ID

Is it possible to get profile information in an id_token from Google?

杀马特。学长 韩版系。学妹 提交于 2019-11-30 11:50:14
When using Google's OpenIDConnect authentication system, it's possible to specify email or profile or both in the scope parameter. If you request the email scope, the "email" and "email_verified" claims will be included in the id_token that gets returned as part of a successful OAuth2 authentication session. Here's an example from Google's documentation: An ID token's payload An ID token is a JSON object containing a set of name/value pairs. Here’s an example, formatted for readability: {"iss":"accounts.google.com", "at_hash":"HK6E_P6Dh8Y93mRNtsDB1Q", "email_verified":"true", "sub":

Oauth2 restrict to emails with specific domain name using hd not working

孤街浪徒 提交于 2019-11-30 01:08:16
问题 My app was restricting logins by Oauth2 to specific domain like abc.com by specifying abc.com in the hd parameter in my request .Restrict Login Email with Google OAuth2.0 to Specific Domain Name but since these past few days its allowing anyone with a Google account login.I am sure i didn't change the code and even verified the result uri has my domain name specified in its hd parameter following this link instruction https://developers.google.com/identity/protocols/OpenIDConnect#hd-param .so

Could not obtain Google oAuth 2 token on POSTMan

对着背影说爱祢 提交于 2019-11-29 19:17:47
问题 Well, since the Other problem(solved) remain unsolved, I was thinking to use POSTMan to do Trial and Error on each steps that the Client library will do. So I read the Basic steps of Google OAuth2 again, created another OAuth 2 ID at Api Manager > Credentials in Dev Console and ID type is Web Application, and filled them into the POSTMan: New tab in POSTMan, then click the Authorization label. Choose type as OAuth 2.0 and select "Add token to the url" Auth URL: https://accounts.google.com/o

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

别说谁变了你拦得住时间么 提交于 2019-11-29 11:01:53
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: https://accounts.google.com/o/oauth2/v2/auth?response_type=token&client_id={client id here}&nonce