oauth

Web Api 2 with OWIN OAuth Bearer tokens

眉间皱痕 提交于 2019-12-22 05:52:10
问题 I'm in the process of building a web api in visual studio 2013 and want to authenticate using OWIN middleware and bearer tokens. However I already have a database and don't want to use Microsoft's new Identity framework as the majority of tables and columns that it auto generates I simply don't need. Can anyone point me in the right direction of how to apply this type of authentication without having to use the Microsoft Identity framework? 回答1: My suggestion would be to use the framework but

How would I create an access token for the NFL Shield API?

不羁的心 提交于 2019-12-22 05:43:12
问题 The NFL appears to have an API service here: https://api.nfl.com/docs/getting-started/index.html Accessing the API endpoints requires obtaining an OAuth2 access token. Which, if I am not mistaken, requires a client_id and client_secret. I have read through the documentation and I am not sure how I would obtain a client_id and client_secret. Is there something I am missing to create these? 来源: https://stackoverflow.com/questions/40680510/how-would-i-create-an-access-token-for-the-nfl-shield

Youtube oAuth promts authorization window every time I make request

别来无恙 提交于 2019-12-22 05:15:23
问题 Here is my work flow for getting access token and refresh token for youtube api. Im generating authorization url with parameters access_type=offline, response_type=code, redirect_uri=uri, scope=scopes, state=state, client_id=id from authorization url I´m receiving authentication code, then I´m generating another url to get access_token and refresh_token using code from authorization url with these parameters code: code, client_id: CLIENT_ID, client_secret: CLIENT_SECRET, redirect_uri:

Google OAuth with Flask-Dance (always redirect to “choose account” google page)

非 Y 不嫁゛ 提交于 2019-12-22 05:05:22
问题 I have an app written with Flask and try to use Flask-Dance (Flask-Dance Docs - Google Example) to enable Google OAuth. I got the following setup: from flask import redirect, url_for, jsonify, Blueprint from flask_dance.contrib.google import make_google_blueprint, google from server.app import app # Internal auth blueprint auth = Blueprint('auth', __name__, url_prefix='/auth') # Google auth blueprint google_login = make_google_blueprint( client_id=app.config['GOOGLE_CLIENT_ID'], client_secret

Where is the source for DotNetOpenAuth? The primary Sourceforge link contains just samples and the ApplicationBlock

坚强是说给别人听的谎言 提交于 2019-12-22 04:36:11
问题 Now that DNOA may do Call Home Reporting I want to investigate the source to see exactly what is being transmitted to the DNOA servers. The link on Source Forge only gives me the "Application Block" some samples, and a compiled DLL. Where is the source? Am I just overlooking it? 回答1: The DotNetOpenAuth home page has a link directly to the source code. You can download it by clicking the Download button once you're there. Since you've expressed interested in downloading the source code for

Do we really need “oauth_nonce”?

守給你的承諾、 提交于 2019-12-22 03:55:22
问题 Right, I know how oauth works, but I don't know why we need oauth_nonce . The specification says timestamp / nonce has to be unique to solve replay attacks, but what about if consumer_key is unique enough? If consumer_key is not unique, how does it find corresponding oauth_nonce ? 回答1: Keys are unique but don't change often. A nonce on the other hand needs to be unique per request. Consider the following scenario. Prerequisites are: An attacker can spy on your communication but does not know

Instagram API: force prompt during authentication

浪尽此生 提交于 2019-12-22 03:48:18
问题 Is there a way for the instagram auth(login) to always ask for authentication? This is skipped when the user is logged in and has already authorized the app. It would be something like twitter's use_authorize=true or google's approval_prompt=force . 回答1: I believe that the most simple way is to use next url: https://instagram.com/accounts/logoutin/?force_classic_login=&next=URLENCODED_INSTAGRAM_OAUTH_URI_PATH_WITH_YOUR_DATA For example: window.location.assign('https://instagram.com/accounts

Apple ID through OAuth?

我是研究僧i 提交于 2019-12-22 03:47:53
问题 I was using Facebook login and other 3rd Party login in mobile game based on the way that, client integrates Native Facebook SDK (or other native sdk) client login and get OAuth access token client pass access token to server side and server makes a server-side authentication to Facebook if server side get FB Uid, then based on it creates an account or login to existing account for the user. My question is, in order to free user from login to service every time, is it possible to directly use

angular-ui replace'?' with '#' on redirect from facebook oauth

你说的曾经没有我的故事 提交于 2019-12-22 03:38:07
问题 I'm implementing facebook ouath login in angularjs without SDK. Everything works as expected except one thing. When user click on login button, which redirects to facebook login page, after successfull login, facebook fires redirect_uri URL, and user is again in the app. Problem is, that ui-router (probably) replaces '?' with '#' in path, so http://localhost/fbauth?access_token=xxx&code=yyy becomes http://localhost/fbauth#access_token=xxx&code=yyy Because of that, i cannot use $stateParams to

How do you comment on an RFC?

梦想与她 提交于 2019-12-22 03:25:06
问题 I have some comments about the OAuth draft RFC (specifically about some errors it contains), but I'm not sure what the accepted way is to make them. There's an email address at the bottom, so do I simply send mail there with the comments, or is there some IETF tool I should know about for tracking comments/issues? 回答1: The OAuth mailing list would be my first guess. I found this through the IETF home page. 回答2: The best late-process way to report an error is indeed to use the email address at