google-authentication

Angular - waiting for Google authentication to complete

谁说我不能喝 提交于 2019-12-11 15:49:06
问题 I'm trying to get Google authentication working properly in Angular 4. The issue is that the code isn't waiting for a result from the Google auth pop-up window before continuing execution. The actual login works, it's just controlling the next step that's causing me trouble. I've tried adding a "getLoginResult" method which returns an observable, but it didn't help. login() { this._authService.getLoginResult() .subscribe(results => { if(results === true) { // want to do something here } else

Using Nemiro OAuth library for Google authentication in Webforms

…衆ロ難τιáo~ 提交于 2019-12-11 14:55:38
问题 I am trying to use Nemiro library to authenticate against Google in a Webforms asp.net project. This library documentation is at Nemiro GoogleClient Documenation I have a simple aspx page called ExternalLogin.aspx , whose markup and code-behind are as given below. Question With code that I have, when Login using Google button is clicked, then user does not get directed to Google's authorization page. What is missing in my code that is causing this? Markup <%@ Page Language="C#"

How to make Android Google Sign In button to just Login and not register with FirebaseAuth?

痴心易碎 提交于 2019-12-11 14:54:09
问题 I have a Login activity with the option to type your email & pass and then login through FirebaseAuth , but it also have a Google Sign In button . When I click it and I choose an account that have been already registered everything is correct. BUT when I click on an account that is not in my Firebase Authentication it's get created ! I have implementing it looking at the official documentation (My code is like in the doc so no need to copy it here) What I want is when I click on an account

Enabled Google Contacts API not shown on Consent Screen

末鹿安然 提交于 2019-12-11 12:05:35
问题 So I've been trying to figure out why my Google Contacts wasn't being enabled after I had enabled it on Google developer console as so: After I had enabled it, when I log in I am able to see this knowing that the Google+ Api is working fine. As we can see, it seems as though the Contacts API is not Authorizing the enabled Contacts API. Why is that? I would expect it to be the following image. Any help would be greatly appreciated. Its been like 2 days and I haven't got my hand on this. 回答1:

Which Google APIs support OAuth2 Domain-Wide Delegation?

自古美人都是妖i 提交于 2019-12-11 12:04:48
问题 Currently in the process of trying to move over to use OAuth2 from of OAuth1 2LO (2 Legged OAuth). At first it looked like we would not be able to make the move as we rely heavily on 2LO and almost all of the product APIs (with the exception of Drive) have this message in their docs: If your application has certain unusual authorization requirements, such as logging in at the same time as requesting data access (hybrid) or domain-wide delegation of authority (2LO), then you cannot currently

Google AUTH API Application Type, how important is it?

浪子不回头ぞ 提交于 2019-12-11 11:48:10
问题 I've been doing a lot tinkering around with the authentication stuff using the .NET libraries provided by Google. We have both a desktop and web-app side, and what we want to achieve is to authenticate ONCE, either on the desktop or the web side, and store the refresh token, and reuse it both on the web side and the desktop side. So the situation is like so, on the desktop side, when there's no saved existing AccessToken's and RefreshToken's, we will ask the user to authenticate via this code

What causes intermittent Invalid Grant

霸气de小男生 提交于 2019-12-11 10:41:40
问题 I'm getting the following { "error" : "invalid_grant" } at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:103) at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:303) at com.google.api.client.googleapis.auth.oauth2.GoogleRefreshTokenRequest.execute(GoogleRefreshTokenRequest.java:130) This only happens in my production Appengine instance, (ie. not on dev server), and it only happens for the email address that I use for

Logout from google after login out from firebase

 ̄綄美尐妖づ 提交于 2019-12-11 10:13:16
问题 I'm using Firebase authentication with google accounts. Login process works fine, but I have a problem with logout. I successfuly log out of firebase, but not from google. That means that the user remains logged in to google. How can I log out from both of them? That is my code: function auth() { // Initialize Firebase; firebase.initializeApp(settings); var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithPopup(provider).then(function(result) { // This gives you a

securing a Google Apps Script linked to an authorized trigger so others can edit

删除回忆录丶 提交于 2019-12-11 09:13:36
问题 I am pretty sure my understanding is correct but since I cannot find any Google documentation that explicitly highlights this I wanted to ask here. Per https://developers.google.com/apps-script/guides/triggers/installable: Installable triggers always run under the account of the person who created them. And we know that when you create a trigger it will ask to authorize for all the scopes the script uses. Then, that means that anyone with edit access to the script could leverage the Google

How to check if a user has logged in with Google Account

断了今生、忘了曾经 提交于 2019-12-11 06:41:20
问题 I am integrating Facebook and Google authentication in my android application. While launching the application, I want to check if a user is logged on to the app with Facebook or Google authentication. I got success with Facebook using the below code: if (Profile.getCurrentProfile() != null && AccessToken.getCurrentAccessToken() != null){ Intent i = new Intent(Splash.this, SecondActivity.class); startActivity(i); finish(); } But having no success with Google. Also, I searched for many answers