google-authentication

How to sign in user on .NET Core server after authentication on Mobile App

有些话、适合烂在心里 提交于 2019-12-06 13:34:16
I'm having troubles .NET Core Web API app authentication. I want to: 1) Authenticate user with Google on Mobile App (currently iOS) 2) Using this authentication, create user record in database using AspNetCore.Identity and Entity Framework Core 3) Using same authentication, call Google Calendar API from .NET Core server So far I figured out how to implement 1 and 3, but can't wrap my head around number 2. My understanding is that to sign in user authenticated with third-party, due to documentation, you need to use SignInManager instance method ExternalLoginSignInAsync . It takes two arguments:

Android, Google Drive: Google consent screen freezes

廉价感情. 提交于 2019-12-06 13:30:31
问题 I've upgraded my app to the Google Drive REST API and its Java wrappers, as described here: https://developers.google.com/drive/android/deprecation My code is very close to the official demo app provided by Google. I also cross-checked with other code examples I've found. The Google Drive API upgrade itself was successful, but now there are very few users that cannot log-in anymore. The Google consent screen displays a white box and the circle is rotating. No information is displayed at all.

In codeigniter - google login callback url containing special characters (.) and throwing 403 error. how to fix?

自闭症网瘾萝莉.ら 提交于 2019-12-06 11:22:59
http://techmarga.com/admin/login?code=4/fgDeyBqu0sgp4_FMWLm3TQCGgI54vUGKNCiW9g00TG4uOfd5Z_R_-uv4-25hoB-GsfrsPsFoBsxn0UwiLNcQZ78&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile In codeigniter google login callback url containing special characters and it is throwing 403 error. *if i remove https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile it is working** . In local xampp everything is working fine but in server it is not working(403 error) my config permitted_uri_chars are as below $config[

Automating UI test with Google Auth

依然范特西╮ 提交于 2019-12-06 09:24:49
问题 I am running automated tests (using Protractor and PhantomJS) on a Web UI tool that uses Google authentication (you have to log in with a Google account). I am running into issues because my CI server is located a few thousand miles away, and Google blocks those login attempts. Even after I confirm the device, Google will force two-factor auth on those attempts (even though I have two-factor turned off in that account). Which means every time I run an automated test I'm going to have to check

Restrict Google account logins to a specified Apps domain

≯℡__Kan透↙ 提交于 2019-12-06 07:28:51
问题 How can I let users log in to my web app with their Google account, and verify that they logged in from a certain Google Apps domain? Does the hd parameter to the Google Authorization service ensure that only the selected domain can be used to login? Or can I get the logged in user's email and verify that it ends with "@domain.com"? This doesn't seem like such a good idea. After login I also need to access the users' Google Contacts, which according to the documentation requires AuthSub proxy

Trouble Logging In To Google with Headless Chrome / Puppeteer

戏子无情 提交于 2019-12-06 06:22:12
问题 I'm trying to automate certain tasks for work. We have a portal that requires you to sign in through Google. I've created a Puppeteer instance that navigates to the Google auth page, types in my email and password, then stores the cookies so I can navigate through and manipulate the portal. This works perfectly on my local environment, but I've deployed it to Heroku and Google adds a sign in challenge. After entering the password, I'm given the 'Verify it's you' page that says 'This device

using GoogleOAuth2AuthenticationOptions got a redirect_uri_mismatch error

耗尽温柔 提交于 2019-12-06 03:31:25
问题 I'm trying to implement a Google authentication in a MVC 5 web app. Authentication is working fine, but I would retrieve profile and picture informations. To do this, I added a GoogleOAuth2AuthenticationOptions object to specify additional claims : var googleOAuth2AuthenticationOptions = new GoogleOAuth2AuthenticationOptions { ClientId = "xxxxxxxxxxxxxxxx", ClientSecret = "xxxxxxxxxxxxxxxxx", CallbackPath = new PathString("/Account/LoginCallback"), Provider = new

Google Datastore authentication issue - C#

北战南征 提交于 2019-12-06 02:41:45
I'm trying to connect to the Google Datastore on my account with service account credentials file (which I've created according to the documentation), but I'm encountering with authentication error while trying to insert an entity: Grpc.Core.RpcException: Status(StatusCode=Unauthenticated, Detail="Exception occured in metadata credentials plugin.") My code is: var db = DatastoreDb.Create("myprojectid"); Entity entity = new Entity{ Key = db.CreateKeyFactory("mykindname").CreateIncompleteKey() }; var keys = await db.InsertAsync(new[] { entity }); The GOOGLE_APPLICATION_CREDENTIALS variable

Google Authentication in Angular 6

一世执手 提交于 2019-12-06 02:07:35
I have created a project in angular 6 which exhibits google authentication using angular-6-social-login . Following is the install command: npm install --save angular-6-social-login After this, i made the following changes to the app.module.ts file: import {SocialLoginModule,AuthServiceConfig,GoogleLoginProvider} from "angular-6-social-login"; // Configs export function getAuthServiceConfigs() { let config = new AuthServiceConfig( [ { id: GoogleLoginProvider.PROVIDER_ID, provider: new GoogleLoginProvider("Your-Google-Client-Id") } ]; ); return config; } @NgModule({ imports: [ ...

Google one tap sign up always returns noCredentialsAvailable

久未见 提交于 2019-12-06 01:50:25
问题 I have set up a bare bones test for the new google one tap sign in / sign up. <!DOCTYPE html> <html lang="en"> <head></head> <body> <script src="https://smartlock.google.com/client"></script> <script> window.onGoogleYoloLoad = (googleyolo) => { googleyolo.hint({ supportedAuthMethods: [ "https://accounts.google.com" ], supportedIdTokenProviders: [{ uri: "https://accounts.google.com", clientId: "xxxxx-xxxxx.googleusercontent.com" }], context: "signUp" }).then((credential) => { console.log