Exemple #1
0
    public void SignInServerAuth()
    {
        Action <bool> logInCallBack = (Action <bool>)((loggedIn) => {
            if (loggedIn)
            {
                PrintMessage("Google Login Success> " + LCGoogleLoginBridge.GSIUserName());
            }

            else
            {
                PrintMessage("Google Login Failed");
            }
        });

        LCGoogleLoginBridge.LoginUser(logInCallBack, false, true, false, null);
    }
Exemple #2
0
    public void SignInNormal()
    {
        Action <bool> logInCallBack = (Action <bool>)((loggedIn) => {
            if (loggedIn)
            {
                //PrintMessage("Google Login Success> " + LCGoogleLoginBridge.GSIUserName());
                infoText1.text = "logged in true".ToString();

                FirebaseCreate(LCGoogleLoginBridge.GSIEmail(), "123456");
            }

            else
            {
                infoText1.text = "logged in false".ToString();
            }
        });

        LCGoogleLoginBridge.LoginUser(logInCallBack, false);
    }
Exemple #3
0
    public void SignInDriveNoServer()
    {
        Action <bool> logInCallBack = (Action <bool>)((loggedIn) => {
            if (loggedIn)
            {
                PrintMessage("Google Login Drive Success> " + LCGoogleLoginBridge.GSIUserName());
            }

            else
            {
                PrintMessage("Google Login Drive Failed");
            }
        });

        //Scopes : https://developers.google.com/identity/protocols/googlescopes
        LCGoogleLoginBridge.LoginUser(logInCallBack, false, false, false,
                                      new List <string>()
        {
            "https://www.googleapis.com/auth/drive.readonly",
            "https://www.googleapis.com/auth/drive.photos.readonly"
        });
    }