google-login

Google login does not show account picker for devices with single google accounts

妖精的绣舞 提交于 2019-12-06 03:52:32
I'm trying to implement google plus sign in for an android app. I followed the guide on the google developer page " https://developers.google.com/+/mobile/android/getting-started ". My only problem is that when there's only one google account on the device, the account picker dialog does not show. Is there a way around this? I used an AccountPicker as suggested by @acj. I start an AccountPicker intent Intent intent = AccountPicker.newChooseAccountIntent(null, null, new String[] { "com.google" }, true, null, null, null, null); startActivityForResult(intent, ACCOUNT_PICKER_REQUEST_CODE); and

How to login to google accounts using awesomium in C#.net?

天涯浪子 提交于 2019-12-06 01:44:30
I'm learning Awesomium and following is the code in which I'm trying to login to https://accounts.google.com . I'm successfully able to set the login and password field values in the page, but not able to submit the login form, neither does the click works. Can anyone help me how to login? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Awesomium.Core; namespace Awesom { class Program1 { public static void Main(String[] args) { Console.WriteLine("Started...."); WebView wv = WebCore.CreateWebView(1024, 600); wv.Source =

google sign-in auth2 customize scope without openid

老子叫甜甜 提交于 2019-12-06 00:31:32
I want to customize the scope to allow only "email" and "profile", without "openid" because I would like to making it asking only to access to email and basic profile info. I tried to do it using the meta: <meta name="google-signin-scope" content="email profile"> or the js: gapi.auth2.init({ client_id: 'xxxxxxxxx.apps.googleusercontent.com', scope: 'email profile' }); But it does not work: in the generated URL there is always the "openid" scope... How can I "reset" the scope, and allow only what I want? BasicProfile requires 'profile email openid' scopes. You can disable basic profile and

Google Sign-In via Firebase: GIDSignInDelegate does not conform to ViewController

隐身守侯 提交于 2019-12-05 08:44:17
I'm introducing Google Sign-In to my app and whilst both Google and Firebase documentation is thorough enough, what I have done as they suggested is not sufficient... I am still getting this error. Hopefully this will help others with finding a solution to the problem when implementing their SDK....thanks in advance for reviewing this chunky one: Here's the Firebase guide and the Google guide: So Added Google to podfile - CHECK Added line into Bridging-Header - CHECK Added GoogleService-Info.plist & bundle identifier & reversed client ID to URL schemes - CHECK App Delegate has the following,

Google Login form clears LocalStorage values

情到浓时终转凉″ 提交于 2019-12-04 19:39:38
I am working with Login with Google, I observed that Google Login form clears a LocalStorage, SessionStorage and session values. Is there any way I can keep this values? or any other ways to keep some values to use after login. I tried for Stackoverflow site too, gave me same result. I set some values and tried to get. I got the values But when I clicked on Login with Google and tried, I get nothing. On Login with google form of same site 来源: https://stackoverflow.com/questions/43222266/google-login-form-clears-localstorage-values

Google login get access token with new GoogleSignInOptions

大憨熊 提交于 2019-12-04 18:58:59
问题 My android app currently uses the GoogleAuthUtil to signin users and fetch an access_token which is passed to the backend (code snippets below which show creating the GoogleApiClient and using GoogleAuthUtil to get the token). mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(new Scope("profile")) .build(); ... ... String accessToken = GoogleAuthUtil.getToken(GoogleLoginActivity.this, Plus

Google Sign In - GoogleIdTokenVerifier verifies token with delay

天大地大妈咪最大 提交于 2019-12-04 14:31:55
I have implemented back-end which receives Google Sign In token from Android or iOS device and tries to verify it. Code has worked properly few months ago, it has not changed but recently it began to reject all tokens as invalid. When I try to repeat verification again with previously failed token after ~10s of its issue time, it begins to work and returns user information. Why does it happen? try { GoogleIdTokenVerifier verifier = new GoogleIdTokenVerifier.Builder(new NetHttpTransport(), new JacksonFactory()).setIssuer(ISSUER).build(); GoogleIdToken idToken = verifier.verify(token); if

When should I disconnect GoogleApiClient (Android)

ぐ巨炮叔叔 提交于 2019-12-04 13:04:21
In my android app, I have 3 login options. Google+, Facebook, and my own login option. I've implemented all 3. I've implemented Google+ login using the steps outlined here. Server side access is enabled. I get the one time authorization code and pass it to my own api. Once I've received the authorization code, is there any reason to keep GoogleApiClient connected? I have a similar question for Facebook Session here. There is no reason to keep connected to the GoogleApiClient unless you plan on directly calling one of its APIs later. Once you have the authorization code, you can close the

Google signInCallback called twice when user is signed_out

时光毁灭记忆、已成空白 提交于 2019-12-04 12:14:06
问题 I am using Google Login hybrid flow to authenticate users but I have a strange bug : when users are signed out ( authResult['error'] == 'user_signed_out' ), the signInCallback is called twice ! It does not happen when the user signs in, so I don't think it is linked to the (rather annoying) 'Welcome Back [user]' prompt. My code looks like this : function signInCallback(authResult) { console.log("signIn callback called, using " + authResult['status']['method'] + " method"); console.log(

Use Two GoogleService-Info.plist in a single XCode project

放肆的年华 提交于 2019-12-04 10:26:21
I'm using Google Login and Google Firebase in my iOS Project. So I generated two different GoogleService-Info.plist files. If I use those two files under a project I got duplicate issue. How to use these two files in a single project? All Suggestions are appreciated!! Instead of using FirebaseApp.configure() I use this method: private func configureFirebase() { guard let plistPath = Bundle.main.path(forResource: "GoogleService-Info-Firebase", ofType: "plist"), let options = FirebaseOptions(contentsOfFile: plistPath) else { return } FirebaseApp.configure(options: options) } So, for firebase you