google-plus-signin

Cannot get private birthday from Google Plus account although explicit request

此生再无相见时 提交于 2019-12-01 03:55:36
问题 I am trying to get the user's information, including gender and age, from its Google Plus account. Since these fields may be private, I thought that requesting them explicitly would solve the problem. However, although the sign in dialog states explicitly that the app requests to View your complete date of birth , I fail to get the birthday. These are my scopes (tried many variations): GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) //

Google+ signin - handleSignInResult returns false after customizing signin button

淺唱寂寞╮ 提交于 2019-11-29 11:13:45
I'm following the sample code given by Google to integrate Google plus with android. https://github.com/googlesamples/google-services/blob/master/android/signin/app/src/main/java/com/google/samples/quickstart/signin/SignInActivity.java That code sample worked perfectly fine until I added some changes as follows. GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestScopes(new Scope(Scopes.PLUS_LOGIN)) .requestEmail() .build(); mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this /* FragmentActivity */, this /*

How to get the access token from Google Sign-In Javascript SDK?

早过忘川 提交于 2019-11-28 23:11:51
I have a simple single-page javascript webapp which uses "Google Sign-In for Websites": https://developers.google.com/identity/sign-in/web/sign-in How can I get an access token for the user? I need a verifiable assertion of the user's identity on my server. I don't want offline access; I just want to know that when the web client sends an ajax request to my server, I can trust the identity of the logged-in user. For verification purposes it would be better to use the id_token which is part of the auth response, and can be retrieved at any point like this: gapi.auth2.getAuthInstance()

How to link Google + signed in users on Parse backend on Android?

眉间皱痕 提交于 2019-11-28 20:26:04
I've been using Parse for 3 months in my android app. Now I want to add email login and social sign ons (Facebook and Google+) in the app. I have successfully added email and fb login and the user can connect both or either one of email or facebook and the app would recognise the user. e.g. If I login through email, then connect facebook, use the app on another device, login via facebook, the app would know it's the same user and would be customised for me and would show my data. And email also works. I have added Google+ sign-in for Android but I am not able to connect the user's Google+

How to refresh expired google sign-in logins?

瘦欲@ 提交于 2019-11-28 04:41:38
I'm using Google Sign-In. A user comes to my site and logs in with gapi.auth2.getAuthInstance().signIn() , or they are already logged in and when the page loads (or reloads) we fetch the status. At this point I have an identity token good for an hour that I can validate on the server. When a user leaves the browser sitting (say, overnight), this token expires. gapi.auth2.getAuthInstance().isSignedIn.get() returns true, but the token does not validate. How can I log in a user and keep them logged in while their session is active (ie, browser hasn't been closed)? Or refresh the token? Anything

How to get the access token from Google Sign-In Javascript SDK?

只愿长相守 提交于 2019-11-27 14:43:27
问题 I have a simple single-page javascript webapp which uses "Google Sign-In for Websites": https://developers.google.com/identity/sign-in/web/sign-in How can I get an access token for the user? I need a verifiable assertion of the user's identity on my server. I don't want offline access; I just want to know that when the web client sends an ajax request to my server, I can trust the identity of the logged-in user. 回答1: For verification purposes it would be better to use the id_token which is

How to link Google + signed in users on Parse backend on Android?

让人想犯罪 __ 提交于 2019-11-27 13:06:50
问题 I've been using Parse for 3 months in my android app. Now I want to add email login and social sign ons (Facebook and Google+) in the app. I have successfully added email and fb login and the user can connect both or either one of email or facebook and the app would recognise the user. e.g. If I login through email, then connect facebook, use the app on another device, login via facebook, the app would know it's the same user and would be customised for me and would show my data. And email

Get person details in new google sign in Play Services 8.3

▼魔方 西西 提交于 2019-11-27 04:54:57
I'm trying to get a user's profile using the new Google Sign In API introduced in play services 8.3. Other than Display Name, Email and Id, I also need user's gender. Plus.PeopleApi.getCurrentPerson() is deprecated as per play services 8.3 and also returns null for me even though mGoogleApiClient.hasConnectedApi(Plus.API) returns true. GoogleSignInAccount.getGrantedScopes returns https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.login profile email openid Google Developer Console doesn't show any hits on the Google+ API. I have placed the correct google-services.json

How to refresh expired google sign-in logins?

こ雲淡風輕ζ 提交于 2019-11-26 19:24:01
问题 I'm using Google Sign-In. A user comes to my site and logs in with gapi.auth2.getAuthInstance().signIn() , or they are already logged in and when the page loads (or reloads) we fetch the status. At this point I have an identity token good for an hour that I can validate on the server. When a user leaves the browser sitting (say, overnight), this token expires. gapi.auth2.getAuthInstance().isSignedIn.get() returns true, but the token does not validate. How can I log in a user and keep them

How to get profile like gender from google signin in Android?

我怕爱的太早我们不能终老 提交于 2019-11-26 18:49:42
I want to integrate google sign in to my app, when user first sign in I will create an account bind to this, so I need some profiles like gender, locale, etc. and I tried as the google-sign-in doc and quick-start sample shows: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .build(); mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */) .addApi(Auth.GOOGLE_SIGN_IN_API, gso) .build(); when click to sign in I will call: Intent signInIntent = Auth