google-identity

iOS Google Silent Sign In provides a (valid) token with missing profile info

♀尐吖头ヾ 提交于 2020-01-14 11:28:10
问题 I've integrated Google SignIn SDK (v4.0.1) to my iOS app. The normal authentication process is working fine via: GIDSignIn.sharedInstance().signIn() The retrieved idToken is valid and includes both email and the user's basic info: given_name family_name picture Google provide this URL for reviewing token data: https://www.googleapis.com/oauth2/v3/tokeninfo?id_token= Problem is, after relaunching the app, I perform silent login on didFinishLaunchingWithOptions like so: if GIDSignIn

Google Authentication with a Backend Server required Scopes

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-12 07:48:46
问题 I am following these instructions (https://developers.google.com/identity/sign-in/android/backend-auth) for getting an ID token to be sent to my Backend but when I set String scopes = "audience:server:client_id:" + Service.SERVER_CLIENT_ID; (Yes the SERVER_CLIENT_ID is not the Android Client ID) I fail to get a token and throws this error. E/Login: com.google.android.gms.auth.GoogleAuthException: Unknown However when I use the following scope instead String scopes = "oauth2:profile email"; I

Incremental combined authorization with Google SignIn for Server-Side Apps

独自空忆成欢 提交于 2020-01-12 06:14:29
问题 When login with Server-Side flow, or ask authorization for additional scopes, with auth2.grantOfflineAccess , the result access/refresh token is not getting combined with previous authorized scopes, overriding the previous ones. Even passing the param to js calls, e.g. auth2.grantOfflineAccess({'include_granted_scopes' : 'true', ...}) , the param include_granted_scopes=true is NOT added to the generated URL. When I manually append the param &include_granted_scopes=true to the generated url on

Does google identity platform supports LinkedIn out of the box like it does for Facebook or Gmail

十年热恋 提交于 2019-12-24 04:54:06
问题 I am trying to use google identity platform for my application by following the below link Google Identity Platfrom But on this page, no identity provider mentioned for LinkedIn and same is not searchable on web. What I understood is Google's Identity platform is using Firebase underneath. I am just wondering, on Firebase portal it is mentioned that a custom implementation is required for LinkedIn whereas under the GCP account -> Add provider I can see LinkedIn. What I would like to know is,

Impersonating list of users with Google Service Account

依然范特西╮ 提交于 2019-12-24 01:54:18
问题 According to the docs, Google Apps domain administrators can grant service accounts domain-wide authority to access user data on behalf of users in the domain. My understating is this gives service account authority to access data for all users inside the domain. Is there a way to restrict which users service account has access to? For example, an application that uses Google Calendar API to view events from the calendars of specific list of users in a Google Apps domain. Can google apps

Photo size in getPhotoUrl() method Google Identity toolkit

纵饮孤独 提交于 2019-12-22 11:07:52
问题 I did the login using Google Identity Toolkit, I have noticed that the class GitkitUser.UserProfile retrieves the photo url, but is too small. The google documentation do not say anything about photo size. https://developers.google.com/identity/toolkit/android/reference/com/google/identitytoolkit/GitkitUser.UserProfile.html#getPhotoUrl() For example with Facebook login, the getPhotoUrl() method returns: https://scontent.xx.fbcdn.net/hprofile-xap1/v/t1.0-1/p50x50/12651146_10208004779813340

Google Sign-In for iOS: serverAuthCode is intermittently missing

与世无争的帅哥 提交于 2019-12-21 22:02:01
问题 We first reported this on a Google Issue Tracker but were redirected here. We have been using Google Sign-In for iOS in our iOS app. When a user signs in, our GIDSignInDelegate receives a call to sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) . Until this afternoon, the GIDGoogleUser that we receive in this call has always contained a non-nil authentication?.idToken and a non-nil serverAuthCode , or else error is non-nil and contains information about

What is the difference between Google identity toolkit, Google OAauth, Firebase Auth and Google+ sign in

丶灬走出姿态 提交于 2019-12-17 06:09:56
问题 For my understanding, Google Identity toolkit provides a layer for login with different accounts, like Facebook, Yahooo etc. but how does that differ from then Google OAuth implementation? And regarding Google+ sign in, it is still using the OAuth, but only enable login for Google accounts? 回答1: Update as of December 28, 2018 : Google is pushing a new service called Cloud Identity Platform. Which is basically Firebase Authentication just for all GCP customers. This service offers, like

Google Identity Toolkit Android demo, Getting Network error

走远了吗. 提交于 2019-12-11 10:49:12
问题 I have been trying to set up sample Android app of Google Identity Toolkit demo (gitkitdemo). Have followed the instructions and successfully set up the sample. Login worked using my google accounts sometimes, but a lot of times mostly over mobile data(3G) I get following error: https://www.googleapis.com/identitytoolkit/v3/relyingparty/createAuthUri?key=AIzaS3432QdokameMhwSzuQh_GTz423423U 07-26 14:14:13.300 5108-7306/pradeep.idtoolkit.demo E/GoogleIdpClient﹕ transient error encountered:

Google API (Gmail) failing with failed precondition 400

北城以北 提交于 2019-12-11 02:11:27
问题 I am trying to use the google APIs to read emails and I'm repeatedly failing to get good results. It is supposed to be a server->server account that runs periodically in the background, but I can't get it to connect. The code is basic: GoogleCredential credential; using (var stream = new FileStream("Content/service_credential.json", FileMode.Open, FileAccess.Read)) { credential = GoogleCredential.FromStream(stream); credential = credential.CreateScoped(new[] { GmailService.Scope.GmailModify }