google-login

Google Sign-In for Websites and Angular 2 using Typescript

╄→尐↘猪︶ㄣ 提交于 2019-11-27 11:40:40
I'm building a site that has a pretty standard RESTful web service to handle persistence and complex business logic. The UI I'm building to consume this service is using Angular 2 with components written in TypeScript. Rather than build my own authentication system, I'm hoping to rely on Google Sign-In for Websites. The idea being that users will come to the site, sign in via the framework provided there and then send along the resulting ID tokens, which the server hosting the RESTful service can then verify. In the Google Sign-In documentation there are instructions for creating the login

Retrieve Google Access Token after authenticated using Firebase Authentication

南笙酒味 提交于 2019-11-27 11:14:35
I am trying to retrieve Google Access Token to access Google REST API such as YouTube Data API from an authenticated user (using Firebase Authentication). I have successfully integrated Google Sign-In in my app with the help of Firebase-UI for Android - Auth library. The token retrieved from FirebaseUser.getToken() method is not a valid Google Access Token for REST API. user.getToken(true).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() { public void onComplete(@NonNull Task<GetTokenResult> task) { if (task.isSuccessful()) { String token = task.getResult().getToken(); // 'token'

GoogleSignInResult isSuccess failed

ε祈祈猫儿з 提交于 2019-11-27 06:20:47
问题 I want to use the Google Login for my App, but I always get the message Status{statusCode=unknown status code: 12500, resolution=null and the login failed. Has anyone an idea what the problem is? Here is my Activity: public class GruppenActivity extends AppCompatActivity implements GoogleApiClient.OnConnectionFailedListener, View.OnClickListener { private static final String TAG = "SignInActivity"; private static final int RC_SIGN_IN = 9001; private GoogleApiClient mGoogleApiClient; private

Google+ login via Javascript and PHP

Deadly 提交于 2019-11-26 18:34:04
问题 Can you tell me please, how can I get user data(name, email) via Google+ Javascript/Php api? I go according this tutorial, which describes how to get authResult['code'] via Javascript. Thats ok I have it. I send it to server via Ajax but I don't know how to get user data like name and email via PHP BUT without any redirects. Here are the samples of code Javascript: function googleStart() { console.log('googleStart'); gapi.load('auth2', function() { auth2 = gapi.auth2.init({ client_id:

Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio

大兔子大兔子 提交于 2019-11-26 16:20:05
问题 I am integrating OAuth login for Google+ on my android application, following the tutorial. According to the tutorial, I should add the Google Service plugin by adding classpath 'com.google.gms:google-services:1.0' dependency to top-level build.gradle in my android project. However, when I sync the gradle with the changes, I see the error as follows: Error:Could not find com.google.gms:google-services:1.0. Searched in the following locations: file:/C:/Program Files/Android/Android Studio

Retrieve Google Access Token after authenticated using Firebase Authentication

喜你入骨 提交于 2019-11-26 15:26:11
问题 I am trying to retrieve Google Access Token to access Google REST API such as YouTube Data API from an authenticated user (using Firebase Authentication). I have successfully integrated Google Sign-In in my app with the help of Firebase-UI for Android - Auth library. The token retrieved from FirebaseUser.getToken() method is not a valid Google Access Token for REST API. user.getToken(true).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() { public void onComplete(@NonNull Task