google-authentication

Google Login Hitting Twice?

霸气de小男生 提交于 2019-11-27 20:39:57
I'm using Google Login via JS and it appears my code is getting data twice. I'm not sure why this is occurring. When I click my "Log In with Google" button, it spits out (console.log(result)) data for the user. THEN a prompt occurs asking me to choose an account of mine (I'm logged into several google accounts). When I click the account I'd like, the code then spits out that user data again. Why is this occurring? It's a problem because where I spit out the data, I'd like to make a ajax call to verify the user and then redirect them. So in essence, it's trying to do this twice -- which is not

Net::Google::AuthSub login failed with new Google Drive version

喜欢而已 提交于 2019-11-27 14:10:53
问题 This code in Perl was working for years and now my Spreadsheets logins failed, when I logged into my account I noticed switch to a new Drive version. Probably some authentication methods deprecated? my $auth = Net::Google::AuthSub->new; my $response = $auth->login('LOGIN@gmail.com', 'PASS'); if ($response->is_success) { print "Hurrah! Logged in\n"; } else { die "Login failed: ".$response->error."\n"; } The result is: Login failed: And the code: use Net::Google::Spreadsheets; my $service = Net

Authenticating with OAuth2 for an app *and* a website

只愿长相守 提交于 2019-11-27 10:04:12
I'm developing a website that is primarily accessed via an app, and I want to use OAuth2 for user registration and authentication. Since it is an Android app I will start using Google's OAuth2 stuff, since it provides a decent UI on Android. Google states that "You can choose to use Google's authentication system as a way to outsource user authentication for your application. This can remove the need to create, maintain, and secure a username and password store." which is what I want to do. However when I go through all their examples and whatnot, I can only find stuff about having a website

Google sign in failed com.google.android.gms.common.api.ApiException: 10:

只愿长相守 提交于 2019-11-27 08:14:35
So I'm Stuck on this frustrating issue. I am quite new to Google Auth on Firebase but I done everything the firebase docs instructed in how to integrate the Google SignIn Auth, yet I'm still receiving this weird Error in the console consisted of two parts: 12-03 11:07:40.090 2574-3478/com.google.android.gms E/TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_API_CONSOLE and also Google sign in failed com.google.android.gms.common.api.ApiException: 10: Before Anyone attempts to point out similar questions that have previously been asked

Firebase Android Authentication failed: expired_token (Auth token is expired)

喜欢而已 提交于 2019-11-27 07:37:48
问题 I encounter an issue with Android Firebase Auth using com.google.gms:google-services:3.0.0 and com.google.firebase:firebase-auth:9.0.1 . 1 hour after authentication with Firebase (Google or Facebook), I get the following error: W/PersistentConnection: pc_0 - Authentication failed: expired_token (Auth token is expired) Why does Firebase token expire after 1 hour and how to extend this expiration period? UPDATE I still encounter this issue, Firebase token expires after 1 hour. Now I get the

Google Authentication using OWIN Oauth in MVC5 not hitting ExternalLoginCallback function

喜你入骨 提交于 2019-11-27 05:45:29
问题 I am currently upgrading my login process for Google to use OAuth before they depricate their OpenID login method. The steps I have Identified so far is that I have upgraded the package Microsoft.Owin.Security.Google to version 2.1.0 as this version includes the ability to include options in the UseGoogleAuthentication method. I have tried to use Alex Wheat's Solution in the link: Get ExtraData from MVC5 framework OAuth/OWin identity provider with external auth provider The code in Startup

Google JWT Authentication with AspNet Core 2.0

浪子不回头ぞ 提交于 2019-11-27 04:35:57
问题 I am trying to integrate google authentication in my ASP.NET Core 2.0 web api and I cannot figure out how to get it to work. I have this code in my Startup.cs ConfigureServices : services.AddIdentity<ApplicationUser, IdentityRole>() .AddDefaultTokenProviders(); services.AddAuthentication() .AddGoogle(googleOptions => { googleOptions.ClientId = Configuration["Authentication:Google:ClientId"]; googleOptions.ClientSecret = Configuration["Authentication:Google:ClientSecret"]; }); And this in

How to authenticate google cloud functions for access to secure app engine endpoints

微笑、不失礼 提交于 2019-11-27 02:59:33
问题 Google Cloud Platform has introduced Identity Aware Proxy for protecting App Engine Flexible environment instances from public access. However, it is not entirely clear if this can or should be used from Google Cloud Functions that are accessing GAE hosted API endpoints. The documentation (with Python and Java examples) indicates an IAP authentication workflow consisting of 1) generating a JWT token, 2) creating an OpenID Token, 3) Then submitting requests to Google App Engine with an

Google sign-in Android with Firebase - statusCode DEVELOPER_ERROR

一世执手 提交于 2019-11-27 02:36:38
问题 I try to implement Google login in my Firebase connected Android app. When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActivityResult: Status{statusCode=DEVELOPER_ERROR, resolution=null} . My code looks like this: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE_GOOGLE_LOGIN) { GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (result.isSuccess())

Authentication using Facebook at first and then Google causes an error in Firebase for Android

随声附和 提交于 2019-11-27 01:34:03
As I understand from the Firebase Docs , if a user authenticates his account with a credential, he should strictly login by using the same credential if the credential is not linked with another one yet. In other words, if I create an account by using Google sign in, and then (after sign out) try to login with Facebook credential by using the same email that is used for Google credential, I should see this exception in logcat: "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address." And yes, I get