oauth

PyDrive guath.Refresh() and Refresh Token Issues

放肆的年华 提交于 2019-12-22 08:15:42
问题 Like others, I'm trying to get the Google refresh token to work in order to run scheduled tasks that copy and rename files. When I first manually authenticate within a terminal, my url ends in &access_type=offline. However, when I go in and try to manually use gauth.Refresh() in ipython, it fails with the same error as when my credentials file expires: pydrive.auth.RefreshError: No refresh_token found.Please set access_type of OAuth to offline. How do I actually set access_type to offline?

Spring boot OAuth successful login listener not triggering

妖精的绣舞 提交于 2019-12-22 08:15:08
问题 Using Spring boot - After successfully authenticating with GitHub OAuth, the Audit listener is not being triggered. public class AuthenticationListener implements ApplicationListener<InteractiveAuthenticationSuccessEvent> { @Override public void onApplicationEvent(final InteractiveAuthenticationSuccessEvent event) { System.out.println("+++++++ ================ ------------"); } } Do I need to register it anywhere else? I have tried as suggested else where on Stackoverflow to create a @Bean,

Validating Google sign in ID token in Go

故事扮演 提交于 2019-12-22 06:48:38
问题 I am finding the way to validate ID token for Google sign-in for Android with a Go backend server project. What is the equivalent function for validating ID tokens by using a Google API Client Library in Go? From this page on Using a Google API Client Library section https://developers.google.com/identity/sign-in/android/backend-auth#using-a-google-api-client-library There are Java and Python examples and there are links for verify ID tokens with the Google API Client Library for PHP, Node.js

Windows Live OAuth access XBox Live Info

为君一笑 提交于 2019-12-22 06:35:25
问题 So, I'm working on a website, and I want users to be able to log in with their xbox account to link their gamer tag to my site. I can use oauth like this: But, I can't figure out how to get xbox live permissions. Other sites that do this have permissions like this: How do I get this permissions which allow me to get info from an xbox account, like the gamertag? On the permissions page I don't see xbox anywhere. 回答1: You can do this pretty easily by using Xbox Live API, Sign up for the Xbox

google-oauth library working in session in MVC PHP

元气小坏坏 提交于 2019-12-22 06:25:07
问题 Hi I would like to learn something from here, basically I want the access of my system to be in google account somehow I manage to do the following get client id, redirect uris, secret keys authentication from google account get token but I i felt I was doing wrong all in some part, this is the Oauth2callback class Oauth2callback extends CI_Controller { function __construct(){ parent::__construct(); $this->load->helper('url'); $this->load->library('session'); require_once APPPATH.'libraries

Passport AngularJS ExpressJS: Origin null is not allowed by Access-Control-Allow-Origin

我怕爱的太早我们不能终老 提交于 2019-12-22 06:19:21
问题 When I'm trying to use $http module of angular.js for authorizing twitter app I always get: XMLHttpRequest cannot load https://api.twitter.com/oauth/authenticate?oauth_token=something. Origin null is not allowed by Access-Control-Allow-Origin. Client Code: $http({ method: 'GET', headers: { "Content-Type": undefined }, url: '/oauth/twitter' }); Server Code: app.configure(function () { app.use(express.cookieParser()); app.use(express.cookieSession({ secret: 'tobo!', cookie: { maxAge: 3600 }}));

Passport AngularJS ExpressJS: Origin null is not allowed by Access-Control-Allow-Origin

元气小坏坏 提交于 2019-12-22 06:17:08
问题 When I'm trying to use $http module of angular.js for authorizing twitter app I always get: XMLHttpRequest cannot load https://api.twitter.com/oauth/authenticate?oauth_token=something. Origin null is not allowed by Access-Control-Allow-Origin. Client Code: $http({ method: 'GET', headers: { "Content-Type": undefined }, url: '/oauth/twitter' }); Server Code: app.configure(function () { app.use(express.cookieParser()); app.use(express.cookieSession({ secret: 'tobo!', cookie: { maxAge: 3600 }}));

Not returning refresh token from auth code

只愿长相守 提交于 2019-12-22 05:59:07
问题 I'm using googleapis package from node to get refresh token and access token from auth code passed from front-end but every time I get the following error. { error: 'redirect_uri_mismatch', error_description: 'Bad Request' } I know this error comes up when we mismatch URL passed as a callback URL in the console. https://console.cloud.google.com/apis/credentials but I've already set up the correct URL in the console. still not sure what's the problem with the code. Using /auth to pass the

Invalid Credentials for OAUTH from Youtube API

…衆ロ難τιáo~ 提交于 2019-12-22 05:53:28
问题 I am getting 401 Invalid Credentials error trying to use the Youtube API in the OAuth 2.0 Playground. Response is: { "error": { "code": 401, "message": "Invalid Credentials", "errors": [ { "locationType": "header", "domain": "global", "message": "Invalid Credentials", "reason": "authError", "location": "Authorization" } ] } } Steps can be reproduced here. Select Manage Youtube account API Authorize Get access token Attempt to call any Youtube API (you may need to plug your own API key in as

Authentication to FreshBooks via DotNetOpenAuth

99封情书 提交于 2019-12-22 05:52:34
问题 I'm trying to use OAuth for authentication for the FreshBooks API from my ASP.NET MVC C# app. Here is what I have so far: I'm using DotNetOpenAuth here is the code I have in my controller action if (TokenManager != null) { ServiceProviderDescription provider = new ServiceProviderDescription(); provider.ProtocolVersion = ProtocolVersion.V10a; provider.AccessTokenEndpoint = new MessageReceivingEndpoint ("https://myfbid.freshbooks.com/oauth/oauth_access.php", DotNetOpenAuth.Messaging