oauth

Desktop applications only support the oauth_callback value 'oob'/oauth/request_token

放肆的年华 提交于 2019-12-29 18:17:11
问题 I'm trying to authenticate with OAuth on NodeJS and I'm getting this error: Error getting OAuth request token : { statusCode: 401, data: '\n\n Desktop applications only support the oauth_callback value \'oob\'\n /oauth/request_token\n\n' } Here is my code (server.js) var express = require('express'); var util = require('util'); var oauth = require('oauth'); var app = express.createServer(); // Get your credentials here: https://dev.twitter.com/apps var _twitterConsumerKey = "1"; var

OAuth? ,OpenID? Neither? Which one should my site support?

纵然是瞬间 提交于 2019-12-29 14:15:30
问题 I working on a new website and wanted some advice/feedback on OAuth vs OpenID vs Standard site owned username/password. 回答1: You may want to read this article by Malcom Tredinnick which explains what openid and oauth are, and do. They serve different purposes. In summary, openid would be used to uniquely identify users - it's an identity solution. oAuth would provide a means to interact with data that your site's users have access to by allowing the user to grant your site temporary access to

Getting (omniauth-facebook) and (omniauth-twitter) work

假装没事ソ 提交于 2019-12-29 11:43:43
问题 I'm using: Ruby on Rails 4 devise 3.0.3 omniauth (1.1.4) omniauth-facebook (1.4.1) omniauth-twitter (1.0.0) I recently set up my omniauth-facebook and everything works fine. Now i want to add omniauth-twitter but somehow i mess things up, pretty bad. 1.) To set up my Omniauth-Facebook i did this (in a nutshell): gem 'omniauth' gem 'omniauth-facebook' 2.) Added the columns " provider " and " uid " to my User model. 3.) Next, i declared the provider in my config/initializers/devise.rb: require

Difference between Claims vs OAuth

ぃ、小莉子 提交于 2019-12-29 11:35:54
问题 What is the difference between Claims based authentication vs What is provided by OAuth. I am looking for conceptual difference and not technical difference. When do I choose Claims over OAuth and vice versa. Claims based authentication is proposed by Microsoft and build on top of WS-Security. But OAuth is more a open source protocol that is being proposed to allow fetching resources from different portals based on a security token. Claims also has this concept of token (SAML encoded or X509

How to get the Google user ID (email) when using Google Account OAuth API

≯℡__Kan透↙ 提交于 2019-12-29 07:42:14
问题 I am new to OAuth, and want to get the user ID (an email address) from Google using OAuth. But I don't want to get the user's Google Contacts Information. 回答1: We can get google Email address only not the contacts by making the scope of request token Like : "https://www.google.com/accounts/OAuthGetRequestToken?scope=https://www.googleapis.com/auth/userinfo#email"; Now do a authorized call to get the response like : var responseText = oAuthConsumer.GetUserInfo("https://www.googleapis.com

Unable to use Laravel / Socialite with Lumen

纵饮孤独 提交于 2019-12-29 07:18:25
问题 I try to use the package Laravel\Socialite in my system in Lumen (5.1) I added this in the config\services.php file : <?php //Socialite 'facebook' => [ 'client_id' => '##################', 'client_secret' => '##################', 'redirect' => 'http://local.dev/admin/facebook/callback', ], In bootstrap\app.php file : class_alias(Laravel\Socialite\Facades\Socialite::class, 'Socialite'); $app->register(Laravel\Socialite\SocialiteServiceProvider::class); Then I created a controller for the

Is it possible to get an access_token from Spring OAuth2 server without client secret?

隐身守侯 提交于 2019-12-29 05:35:34
问题 I am using Spring Security's OAuth2 server implementation. I am trying to get the access_token from the servers' /oauth/token endpoint using the OAuth2 "Password" grant type by only supplying username and password and the client id without the client secret. This works fine as long as I provide the client id and the client secret in the Authorization header of my HTTP request like so: curl -u clientid:clientsecret http://myhost ... -d "grant_type=password&username=user&password=pw&client_id

Specify multiple redirect URIs for facebook OAuth2

别说谁变了你拦得住时间么 提交于 2019-12-29 05:23:08
问题 My web application is deployed to a production site, but I also need to perform local development. Besides, I have a couple of test servers where I perform different testing activities. I would like to specify all these URIs for Facebook OAuth2. With Google OAuth2 there is no problem: I can specify as many redirect URIs as I need. Is this possible with Facebook? How? I am using the "Website with Facebook Login" option to integrate with Facebook. Currently I am getting: { error: { message:

How can I get UIWebView to open Facebook login page in response to the OAuth request on iOS 5 and iOS 6?

老子叫甜甜 提交于 2019-12-29 04:54:08
问题 We have: (1) Facebook API-based web application with Facebook OAuth functionality (“the FB web app”) (2) UIWebView -based browser on iPad (“the Browser”) Our objective is to open the Facebook Login page to sign in to the FB web app (1) inside the UIWebView-based Browser (2) on iPad. There is a somewhat similar issue here: http://facebook.stackoverflow.com/questions/11337285/no-longer-able-to-login-to-ios-app-via-oauth-the-page-requested-was-not-found However, the issue of that question

OAuthWebSecurity with Facebook not using email permission as expected

人走茶凉 提交于 2019-12-29 03:24:29
问题 Using the new OAuthWebSecurity for authenticating with Facebook, I added the email permission on my Facebook application. Now, as I can read, I need to define a scope to be able to actually get the email in the result. So far without the scope I'm not getting the users' email and am not sure why as I can not see where to define the "scope". It's just a rip of the ASP.NET MVC 4 default authenticationcontrollers external login. 回答1: Firstly, the extraData parameter is not passed to facebook. It