google-signin

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

How to refresh ID token after it expires when integrating Google sign-in on Android?

喜夏-厌秋 提交于 2020-01-12 07:20:16
问题 I've followed the guides on https://developers.google.com/ and I can get the Google ID token of the signed in user after the user signed in. But I noticed that the token will expire in 1 hour. I cannot find any official reference that tells me how to deal with expired Google ID token, so I can only ask the user to click the Google sign-in button again. How can I refresh a valid Google ID token after the old one expires, without bothering user to manually sign in again and again? 回答1: Yes,

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

Google API - Invalid Credentials

╄→гoц情女王★ 提交于 2020-01-11 12:58:33
问题 I am trying to make an iOS app where a user can rate a YouTube video using the YouTube API. To do this, the user has to be authenticated. So, I used Google's Google Sign-In to authenticate my users. I followed the implementation guide, and it seems as if the user gets signed in. I can access data from the user such as their profile image, name, etc. Because I am using the YouTube API, I need to add the YouTube scope to Google Sign-In before the user signs in. So, I do that like so...

Gender via Google People API

て烟熏妆下的殇ゞ 提交于 2020-01-10 04:20:10
问题 Using Google People API, I'm having problems getting information about gender via https://people.googleapis.com/v1/people/me and correct access_token (it is correct because it influences whether information like nickname and locale appear). I am asking for scope "profile email openid". I can get a gender, but only for users who made that information public, but not from those who do have it filled, but set as private, which kind of defeats the purpose of asking for private profile information

Angular : how can I get Google access token

老子叫甜甜 提交于 2020-01-06 07:41:35
问题 I am trying to get Access token using Angular 4. When the user logIn using Google I get the following Data. authToken // * id email . . . name I think that the variable authToken is not the access token because when I try to verify it using the following code ( spring boot), GoogleIdTokenVerifier verifier = new GoogleIdTokenVerifier.Builder(new NetHttpTransport(), JacksonFactory.getDefaultInstance()) .setAudience(Collections.singletonList( "ID_CLIENT") .build(); try { GoogleIdToken idToken =

Flutter Firebase iOS Google Sign In error

房东的猫 提交于 2020-01-06 05:47:09
问题 Issue I've created an app on Android that I want to test on iOS but I can't seem to get the firebase google sign in working. When I click on the sign in button, the app skips sign in entirely and doesn't even ask me for my google login. Errors When I run the app, I get the following errors: Exception: MissingPluginException(No implementation found for method Query#addSnapshotListener on channel plugins.flutter.io/cloud_firestore) flutter: MissingPluginException(No implementation found for

Not able to signIn with google and facebook after deleting data from firebase

南笙酒味 提交于 2020-01-06 05:25:19
问题 After deleting all the database and authenticate users from firebase database. When I am trying to signIn with it again it's showing below error. 08-10 15:56:28.747 7377-7377/io.funswitch.gymmon D/Login Activity: signInWithCredential:failure com.google.firebase.auth.FirebaseAuthInvalidUserException: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. at com.google

Upgrading from Google Sign-In SDK 1.0.0 to 2.0.1 fails to compile on SKStore references

蓝咒 提交于 2020-01-05 12:55:52
问题 Following the directions to upgrade the Google Sign-In SDK from 1.0.0 to 2.0.1 on https://developers.google.com/identity/sign-in/ios/sdk/ causes the following compile error. Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SKStoreProductViewController", referenced from: objc-class-ref in GoogleSignIn(GIDStoreKit.o) "_SKStoreProductParameterITunesItemIdentifier", referenced from: l003 in GoogleSignIn(GIDStoreKit.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker

Google OAuth via gapi.signin2.render button not hitting callbacks in react app

北城以北 提交于 2020-01-05 07:37:21
问题 I have the Google Signin Button properly rendering inside my react component using the gapi.signin2.render method on the latest Google platform web-client api (https://apis.google.com/js/platform.js). But, for the life of me, I can't get it to properly call my success or failure callbacks. The button renders, clicking the button opens the account auth window, clicking a Google account closes the window, but no callback. function myCallback(obj) { console.log(obj); } gapi.signin2.render('my