oauth

Use External Access Token or Local Access Token

爱⌒轻易说出口 提交于 2020-01-11 19:56:32
问题 I am developing an application using ASP.NET MVC 5.2.2, Web API 2.2 and Katana/OWIN 3.0 . The application uses ASP.NET Identity 2.1 for local accounts and database. I am using OAuth Authorization Server to generate access and refresh token. I have Android and IOS apps which uses my local oauth authorization server. Android and IOS apps uses SDK to login with Facebook, Google, etc. After that the apps will send the (Facebook/Google/etc) access token to the server. The server will validate

How to authenticate Google Drive without requiring the user to copy/paste auth code?

本秂侑毒 提交于 2020-01-11 16:21:57
问题 I'm playing around with the DriveCommandLine applicaiton to learn the Drive API a bit. I'm just wondering if it is possible to authenticate my desktop application with Google Drive without the user needing to copy/paste an auth code from the browser? But rather just have a token passed back to the app from the browser? I am able to do this with Dropbox API and with the Google Documents List API, but cannot figure out how to get this working with the Google Drive API. Thanks. Google Drive API

How to authenticate Google Drive without requiring the user to copy/paste auth code?

眉间皱痕 提交于 2020-01-11 16:21:08
问题 I'm playing around with the DriveCommandLine applicaiton to learn the Drive API a bit. I'm just wondering if it is possible to authenticate my desktop application with Google Drive without the user needing to copy/paste an auth code from the browser? But rather just have a token passed back to the app from the browser? I am able to do this with Dropbox API and with the Google Documents List API, but cannot figure out how to get this working with the Google Drive API. Thanks. Google Drive API

Facebook xhr login: Cross-Origin Request Blocked

☆樱花仙子☆ 提交于 2020-01-11 14:29:29
问题 I have this problem, when I try to log in users on my website through facebook using XHR my request gets blocked, however if I copy the URL of the XHR request and paste it in the browser I get logged in. So here's a simple schematic: Why is xhr getting blocked on the same url a browser can access? 回答1: Why is xhr getting blocked on the same url a browser can access? Because it is a cross-domain request, and as such the remote party would have to allow that request first, which is what is

Facebook xhr login: Cross-Origin Request Blocked

℡╲_俬逩灬. 提交于 2020-01-11 14:29:07
问题 I have this problem, when I try to log in users on my website through facebook using XHR my request gets blocked, however if I copy the URL of the XHR request and paste it in the browser I get logged in. So here's a simple schematic: Why is xhr getting blocked on the same url a browser can access? 回答1: Why is xhr getting blocked on the same url a browser can access? Because it is a cross-domain request, and as such the remote party would have to allow that request first, which is what is

.NET HttpWebRequest oAuth 401 Unauthorized

二次信任 提交于 2020-01-11 13:47:09
问题 I need to consume a web resource from a VB.NET app. I have successfully retrieved the access token and am ready to use it to make calls to the protected resource. However, everytime I call the protected resource I receive a 401 Unauthorized response because the Authorization field has not been added to the header. Here is my code. WebRequest = DirectCast(Net.WebRequest.Create(ApiUri), HttpWebRequest) WebRequest.Method = "POST" WebRequest.ContentType = "application/json" WebRequest

Google API - Invalid Credentials

╄→гoц情女王★ 提交于 2020-01-11 12:58:33
问题 I am trying to make an iOS app where a user can rate a YouTube video using the YouTube API. To do this, the user has to be authenticated. So, I used Google's Google Sign-In to authenticate my users. I followed the implementation guide, and it seems as if the user gets signed in. I can access data from the user such as their profile image, name, etc. Because I am using the YouTube API, I need to add the YouTube scope to Google Sign-In before the user signs in. So, I do that like so...

Google GetAccessToken : Bad Request 400

不问归期 提交于 2020-01-11 12:33:11
问题 I am using (OpenId+OAuth) hybrid protocol. After I redirect user to "https://www.google.com/accounts/o8/ud" with all openid and oauth extension parameters, user is able to see login screen and services I need to access. On successfull login I receive response as following: http://muUrl.com/...&openid.ns.ext2=http://specs.openid.net/extensions/oauth/1.0&openid.ext2.scope=http://docs.google.com/feeds/ &openid.ext2.request_token=4/8GCHDIvtxhbg8gVkfYro7QIFakoB I understand user is properly logged

Oauth provider behind reverse proxy

混江龙づ霸主 提交于 2020-01-11 09:29:14
问题 I try to use OAuth Provider in PHP (PECL Package) behind a apache reverse-proxy the client uses POST https://api.com/resource/oauth/request-token but my oauth provider receives POST http://api.com/mywebservice/resource/oauth/request-token the signature cannot be verified so the request fails have you any idea about resolving this issue? 回答1: I had to do this once. I ended up modifying the OAuth code to pass along the actual URL the provider will receive as well the URL I need to send to from

Google API OAuth for Drive API is not working. Getting Error: origin_mismatch

久未见 提交于 2020-01-11 03:11:08
问题 I am trying to run the quick start code of Real Time API of Google Drive. I believe I did everything right. But I am getting Error: origin_mismatch Request Details openid_connect_request=true cookie_policy_enforce=false scope=https://www.googleapis.com/auth/drive.install https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/plus.me response_type=token access_type=online redirect_uri=postmessage proxy=oauth2relay601571239 origin=http://127.0.0.1 state=811328575|0.818765953