dotnetopenauth

Using DotNetOpenAuth OAuth 2 with Azure - Reading Certificate - difficulty extracting keys

北战南征 提交于 2019-12-04 11:14:30
The DotNetOpenAuth OAuth 2 Library requires RSAParameters to access public and private keys (example in DotNetOpenAuth OAuth 2 - UriStyleMessageFormatter which uses RSAParameters to construct an RSACryptoServiceProvider). I came across an Azure Security Whitepaper which noted that Azure installs certificates in a "certificate store with a flag indicating that the private key can be used but not exported". Which I believe may be at the heart of this problem. While I have been able extract the public and private keys from the cert while developing and debugging locally by referencing the

Best way to handle authentication on .NET WCF Web API

痴心易碎 提交于 2019-12-04 10:38:10
问题 I'm mildly familiar with DotNetOpenAuth and OAuth in general, but in terms of Web API development, what is the best way to lock down a web service in terms of the following criteria: Ease of implementation Interoperability/compatibility with end-user facing platforms (iOS, Android, Win Phone, Flex...) Whether or not it is clearly standards-based (like OAuth for example) Thanks! 回答1: please take a look here: OAuth 2.0 in Web API Inside the WebApiContrib project there are also Basic

Looking for samples of using DotNetOpenAuth with WebAPI [closed]

一曲冷凌霜 提交于 2019-12-04 10:30:48
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm trying to secure my WebAPI project, and would like to use DotNotOpenAuth, but I'm unable to find any quality samples or tutorials. I've tried grabbing the sample that come with the DNOA source on GitHub, but can't seem to get those

Retrieve OpenId User Information (Claims) across providers

限于喜欢 提交于 2019-12-04 09:12:23
I'm using DotNetOpenAuth to log in as part of my login process. It works great for handling authentication but the process of retrieving user information from various openId providers is not working very well. Using MyOpenId I do get full information that I request using a ClaimsRequest with DotNetOpenAuth. It apparently uses the SREG protocol to request and retrieve this content. This works great with MyOpenId, but doesn't do anything for Google or Yahoo and other providers that do not support this protocol (yet?). Is there a way to retrieve cross provider user information using

DotNetOpenAuth RP fails behind SSL appliance

允我心安 提交于 2019-12-04 04:53:38
I'm having trouble getting a DNOA RP working behind an SSL appliance (terminates the client HTTPS connection and reverse-proxies HTTP to the webserver behind it). The problem is that the RP is incorrectly guessing the recipient endpoint from the incoming request (since it's not HTTPS by the time it hits the webserver) and comparing the endpoint with scheme on the return_to url (which is HTTPS)- it fails with the stacktrace below. I've spelunked around in the code a bit and I don't see a way to change this behavior without a custom build or a non-trivial subclass. I'm already passing the HTTPS

Does an OpenID realm have to be the base URL of the web site?

我是研究僧i 提交于 2019-12-04 03:15:35
问题 As a continuation of this question, there's an issue I'm having with dotnetopenauth. Basically, I'm wondering if the realm specified in the RP has to be the actual base URL of the application? That is, ( http://localhost:1903 )? Given the existing architecture in place it is difficult to remove the redirect - I tried setting the realm to the base OpenId controller ( http://localhost:1903/OpenId ) and testing manually did generate the XRDS document. However, the application seems to freeze,

dotnetopenid tutorial [closed]

蓝咒 提交于 2019-12-04 02:46:31
Pretty basic question, but can someone please point me to a constructive tutorial on how to implement and use dotnetopenid? I'm struggling to find any real documentation that explains how to implement the thing. I couldn't find anything on their website, and I've gone through a couple of the samples, but still can't work it out, and the included .chm file is just reference material, rather than a "getting started" guide. Google searches are also failing me :( That depends on what you're trying to accomplish, as DotNetOpenAuth does a lot of things for a lot of people. Perhaps I'll start a

Releasing an ASP.NET MVC 3 OpenId StarterKit under Open Source License [closed]

久未见 提交于 2019-12-03 15:11:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I've build a ASP.NET MVC 3 (RC at the moment) site that uses OpenID login system. I was still learning about OpenID while implementing this so I commented the code heavily. The result is a site that let's users login/register with OpenID, add other OpenIDs to their account and also remove them. This little

OpenID provider on localhost with DotNetOpenAuth

限于喜欢 提交于 2019-12-03 15:01:20
问题 I have the DotNetOpenAuth sample provider running locally and it appears to correctly handle requests via the web browser. I can step through the handler for authorisation in the debugger. I have a project which can authenticate with Google and other providers but fails with the sample provider. The sample provider never sees a request at all and the relying party throws an exception complaining No OpenID endpoint found. Say I do the following in the relying party: string providerURL = "http:

FormsAuthentication object obsolete [using MVC5]

纵然是瞬间 提交于 2019-12-03 12:14:43
I'm using the following code in an MVC5 site: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel loginModel) { if (ModelState.IsValid) { var authenticated = FormsAuthentication.Authenticate(loginModel.UserName, loginModel.Password); if (authenticated) { FormsAuthentication.SetAuthCookie(loginModel.UserName, true); return RedirectToAction("AdminPanel"); } ModelState.AddModelError("", "The username and password combination were incorrect"); } return View(loginModel); } Which throws up the following warning: System.Web.Security.FormsAuthentication.Authenticate(string,