google-authentication

Can't find module googleapis

自古美人都是妖i 提交于 2019-12-10 12:55:43
问题 This is my code: var http = require('http'); var express = require('express'); var Session = require('express-session'); var google = require('googleapis'); var plus = google.plus('v1'); var OAuth2 = google.auth.OAuth2; This is an error: Error: Cannot find module 'googleapis' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/software/Harsh

Google Authentication in Angular 6

别说谁变了你拦得住时间么 提交于 2019-12-10 09:43:08
问题 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

How to access Google feeds(Reader) with OAuth2.0?

♀尐吖头ヾ 提交于 2019-12-10 00:18:17
问题 I want to access google feeds with OAuth2.0. I used google-oauth-java-client to get my access token. How can I use it to access the feeds API? I referenced dailymotion-cmdline-sample, and changed SCOPE as http://www.google.com/reader/api to fetch the credential. It returns: 401 Unauthorized You must be signed in to access this stream. And I don't know what's wrong... I also read some posts which shows OAuth2.0 is possible to do this job, but they are not detailed enough to me: Read access

Google ClientLogin authentication

帅比萌擦擦* 提交于 2019-12-09 12:36:40
问题 I try make authentication using ClientLogin URL url = new URL("https://www.google.com/accounts/ClientLogin"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod("POST"); connection.setRequestProperty("Email", "testonly%2Ein%2E2011%40gmail%2Ecom"); connection.setRequestProperty("Passwd", "mypass"); connection.setRequestProperty("accountType", "HOSTED"); connection.setRequestProperty("service", "apps"); connection

Google login in Angular 7 with .NET Core API

泄露秘密 提交于 2019-12-09 11:55:53
问题 I'm trying to implement Google login in my Angular application. If I try to call api endpoint for external login server return 405 error code like this: Access to XMLHttpRequest at 'https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=...' (redirected from 'http://localhost:5000/api/authentication/externalLogin?provider=Google' ) from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow

Permanent access token with YouTube api?

℡╲_俬逩灬. 提交于 2019-12-09 10:57:11
问题 I have gone through the google documentations for Oauth and AuthSub methods for authenticating and I've tried to google this without results. For Facebook, you can request an access token which is of length lifetime , meaning you won't have to be requesting a new token every few weeks. What about Google, and YouTube in specific, is there any authentication method which allows you to use that token permanently? In their documentation they state that they have long-life but no sort of

AuthSub target path prefix does not match the provided “next” URL

*爱你&永不变心* 提交于 2019-12-08 19:15:43
问题 I am trying to use the Gcal API in PHP. I am using the ZEND framework function getAuthSubUrl($company) { $next = "http://$company.mysite.com"; $scope = 'http://www.google.com/calendar/feeds/'; $secure = false; $session = true; return (Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session)); } $authSubUrl = getAuthSubUrl(); echo "<a href=\"$authSubUrl\">login to your Google account"</a> I am not sure what I am doing wrong here. I am following the google example almost exactly

Android Google SignIn result is null

扶醉桌前 提交于 2019-12-08 07:54:50
问题 I am integrating Google sign-in for Android and I want the id_token back so I can authenticate with my server. I followed all the steps as in https://developers.google.com/identity/sign-in/android/backend-auth If I request just requestEmail() then I am getting back the profile information but if I add .requestIdToken(getString(R.string.server_client_id)) then result.isSuccess() is false and I am not getting any account information back. Any ideas? GoogleSignInOptions gso = new

Google Cloud Storage access Client API

拥有回忆 提交于 2019-12-08 06:11:15
问题 I am having a really hard time getting Application Default Credientials /OAuth2.0 thing to work in my program... Background: I have a sensor device that collects images, and I want to store these images on google cloud storage in a bucket. Ideally the code will just run at a push of a button, so the authorization would need to occur when the program runs. From reading and re-reading the docs, this is what I have going so far: from oauth2client.client import GoogleCredentials from google.cloud

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

有些话、适合烂在心里 提交于 2019-12-08 02:11:55
问题 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