google-signin

Android GoogleSignIn: Multiple accounts at the same time + deferred sign-in upon failure

馋奶兔 提交于 2019-12-10 20:29:20
问题 I'm coding an app which makes use of Firebase Authentication to authenticate with my backend server. I'm offering Google Sign-In and Email/Password based authentication. Email/Password is trivial. This is my flow for using Google Sign-In: 1) I create a mGoogleApiClient = new GoogleApiClient with .addApi(Auth.GOOGLE_SIGN_IN_API, gso) , where gso = GoogleSignInOptions with .requestIdToken(...)) and .requestEmail() 2) I call startActivityForResult( signInIntent , RC_GOOGLE_SIGN_IN); where

Firebase Auth not throwing User Collision error after secondary Google Sign In

Deadly 提交于 2019-12-10 18:49:36
问题 Question: How do you work around the bug outlined below? Overview: I have three (3) types of unique (non-anonymous) authentication available for my app. Email/Password Google Facebook App Behavior (steps to reproduce error): In the initial sign in, no error is thrown. App saves the initial sign in method programmatically. Clear data of App from within Android Settings. Secondary sign in, the following errors (or none) are thrown. Clear data again of App from within Android Settings. Tertiary

GIDSignIn set approval_prompt

一世执手 提交于 2019-12-10 18:39:44
问题 The problem is that Google asking for offline access only after user has logged out of app and logs in back. Reading this and some other articles I found out that 'approval_prompt' parameter should be set to 'auto', however I can't find how to set it for GIDSignIn. Am I missing something? 来源: https://stackoverflow.com/questions/35418187/gidsignin-set-approval-prompt

Android : Google Sign-in Invalid token

十年热恋 提交于 2019-12-10 15:43:40
问题 I am getting an error from the token I am receiving through google sign in android: { "error": "invalid_token", "error_description": "Invalid Value" } I also noticed that my token looks a bit short compared to the one I am getting in iOS: ya29.4AFYx2XNZ1sdfdzhWo-of-fSpsDPjgmATx-J82mCjqZJXglwj8VOvedpY_YXJgEVIWe I am getting the token like this: private class RetrieveTokenTask extends AsyncTask<String, Void, String> { @Override protected String doInBackground(String... params) { String

Google Sign-In is not returning to my app

主宰稳场 提交于 2019-12-10 14:42:12
问题 I have a problem with Google Sign-in not redirecting back to my app. I have followed the steps (https://developers.google.com/identity/sign-in/ios/start-integrating), installed cocoapods, downloaded the GoogleService-Info.plist (added it to all of my targets), added the URL Types (my bundle identifier and then my reverse client ID to my target and followed the steps line by line. Here is the source code of the plist CFBundleURLTypes: <dict> <key>CFBundleTypeRole</key> <string>Editor</string>

Google+ Sign-in for Android - Google Permissions Activity Result Codes

浪尽此生 提交于 2019-12-10 10:55:51
问题 I've found out a small issue when working with Google+ Sign for Android and after searching the web (and SO obviously) I'm asking my question out loud to see if anyone has noticed the same. I'm enabling server-side API access for my app as described here. Let me be detailed about what's going on. Take this fragment: Bundle appActivities = new Bundle(); appActivities.putString(GoogleAuthUtil.KEY_REQUEST_VISIBLE_ACTIVITIES, "<APP-ACTIVITY1> <APP-ACTIVITY2>"); String scopes = "oauth2:server

What data can I save in my database to verify a user with Google sign in API?

故事扮演 提交于 2019-12-10 10:28:41
问题 I need to store data related to a (Google) user in my database. I tried to store the id_token, but later found out that the part after the '.' changed. What can be used instead, or can I just save the part infront of the "." from the id_token? 回答1: Thanks Steven Soneff Use the 'sub' field of the ID token, it is invariant for the Google user https://developers.google.com/identity/sign-in/android/backend-auth#calling-the-tokeninfo-endpoint The ID token have three parts; the header, body and

ios google sign-in, How can I get user image url?

帅比萌擦擦* 提交于 2019-12-10 02:52:30
问题 I am working on iOS/Swift google sign-in. I made a demo in github. My demo project: https://github.com/tanggod/GoogleSignIn.git According to google(https://developers.google.com/identity/sign-in/ios/api/interface_g_i_d_profile_data#a8e229bffe211894473058c4ba247553c), the user image url can be fetched like this: (NSURL *) imageURLWithDimension: (NSUInteger) dimension Gets the user's profile image URL for the given dimension in pixels for each side of the square. But, when I try to get

Google SignIn - “access_token” vs “id_token” vs “code”

你。 提交于 2019-12-09 21:04:55
问题 In our website we used to use access_token when logging people with Google Sign In. First, we redirect the user to google, user brings the access_token to us, and we validate that token to make sure the user is the actual Google user. Then, we needed a Google sign-in feature for our Android app, so I wanted the Android developer to bring access_token to us. He replied he couldn't. I searched about that finding almost no documentation about access_token. In documentation, Google says me to use

YouTube API and brand account

一笑奈何 提交于 2019-12-09 13:32:55
问题 I am using, since a long time, a Google script that accesses my YouTube channel, gets and modifies some information from it and saves some data in a Google sheet. It always worked fine, but then, about a week ago, Google somehow split my access rights between my normal account (primary email) and my YouTube account (that goes under a different nickname). I cannot find a way to run even the simplest command: var my_playlists = YouTube.Playlists.list('snippet', { mine: true, maxResults: 50, })