dotnetopenauth

null ClaimsResponse with DotNetOpenAuth in ASP.NET MVC 2 application

折月煮酒 提交于 2019-12-08 19:36:28
I'm trying to get DotNetOpenAuth (latest version) to work with ASP.NET MVC 2 website. I get the first part working, the action is invoked when user selects OpenID provider, I get correct identifier passed in, I then get correctly redirected to the provider website, I get redirected back to my website but here's the problem. The claims I requested are null (see the code below). public ActionResult TryAuth(string openid_identifier) { var openid = new OpenIdRelyingParty(); var response = openid.GetResponse(); if(response== null) { var req = openid.CreateRequest(openid_identifier); req

Single Sign On— SSO

六月ゝ 毕业季﹏ 提交于 2019-12-08 11:35:02
问题 Please I would like someone to tell me if dotNetOpenAuth single-sign-on. All I want to achieve is to be able to seamlessly logging to all domains without redirect to third party system for authorisation or Authentication within a mixture programming platforms e.g (PHP or .Net) 回答1: DotNetOpenAuth library is a simple library to implement Single Sign On for .NET based application. The only issue I faced was related to performance. It was found to be a known issue with a particular API that

null ClaimsResponse with DotNetOpenAuth in ASP.NET MVC 2 application

谁说胖子不能爱 提交于 2019-12-08 07:39:20
问题 I'm trying to get DotNetOpenAuth (latest version) to work with ASP.NET MVC 2 website. I get the first part working, the action is invoked when user selects OpenID provider, I get correct identifier passed in, I then get correctly redirected to the provider website, I get redirected back to my website but here's the problem. The claims I requested are null (see the code below). public ActionResult TryAuth(string openid_identifier) { var openid = new OpenIdRelyingParty(); var response = openid

DotNetOpenAuth OAuth 1.0a Consumer automation

时光怂恿深爱的人放手 提交于 2019-12-07 23:45:03
问题 I've question regarding automation with oAuth 1.0a. I need to access a REST API at a oAuth provider on behalf of a user. The provider has oAuth version 1.0a implemented. At forehand excuse my ignorance on oAuth, it's new territory for me. I'm working on a .NET MVC 5 project and installed the NuGet Package as follows: "Install-Package DotNetOpenAuth.OAuth.Consumer". This installed the following: Attempting to gather dependencies information for package 'DotNetOpenAuth.OAuth.Consumer.4.3.4

DotNetOpenAuth OAuth2 for Basecamp API

情到浓时终转凉″ 提交于 2019-12-07 16:59:34
问题 I'm having some difficulties getting the OAuth2 working for the Basecamp API with DotNetOpenAuth, here's what I have so far, this is a ASP.NET MVC 4 web app. public ActionResult Basecamp() { var server = new DotNetOpenAuth.OAuth2.AuthorizationServerDescription(); server.AuthorizationEndpoint = new Uri("https://launchpad.37signals.com/authorization/new"); server.TokenEndpoint = new Uri("https://launchpad.37signals.com/authorization/token"); var client = new DotNetOpenAuth.OAuth2

ActionResult redirect renders using ToString()

别说谁变了你拦得住时间么 提交于 2019-12-07 14:39:21
问题 Using the following sample: http://www.west-wind.com/Weblog/posts/899303.aspx The following line... return req.RedirectingResponse.AsActionResult(); renders the string "DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult". This is the class being returned as ActionResult in the line as posted. Does anyone know why I get the class name as string instead of a actual redirect? Thnx in advance! 回答1: Could it be that you have multiple versions of MVC in your Bin directory and your web server?

Two legged OAuth using DotNetOpenAuth

…衆ロ難τιáo~ 提交于 2019-12-07 11:12:18
问题 I have read up on two legged OAuth and understand the principals behind it - my question is specific to the DotNetOpenAuth library. Is there sample code or supporting documentation on how to use DotNetOpenAuth via two legged authentication? Three legged appears to be supported quite well and since two legged is simply a reduction in the number of steps I would assume this would be easy - so far, this isn't the case. 回答1: No, there's no samples of 2-legged OAuth with DotNetOpenAuth. If you're

claimsResponse Return Null

删除回忆录丶 提交于 2019-12-07 04:48:10
问题 hello i have a following code in asp.net. i have used DotNetOpenAuth.dll for openID. the code is under protected void openidValidator_ServerValidate(object source, ServerValidateEventArgs args) { // This catches common typos that result in an invalid OpenID Identifier. args.IsValid = Identifier.IsValid(args.Value); } protected void loginButton_Click(object sender, EventArgs e) { if (!this.Page.IsValid) { return; // don't login if custom validation failed. } try { using (OpenIdRelyingParty

Invalid message signature when running OpenId Provider on Cluster

隐身守侯 提交于 2019-12-07 04:38:24
问题 Introduction We have an OpenID Provider which we created using the DotNetOpenAuth component. Everything works great when we run the provider on a single node, but when we move the provider to a load balanced cluster where multiple servers are handling requests for each session we get issue with the message signing as the DotNetOpenAuth component seems to be using something unique from each cluster node to create the signature. Exception DotNetOpenAuth.Messaging.Bindings

DotNetOpenAuth vs Owin OAuth

≯℡__Kan透↙ 提交于 2019-12-07 03:46:13
问题 I am new the webAPI2, so please excuse me if my question is trivial. I want to implement token based security for my webAPI, so that other applications (apart from my SPA) can also call my webAPIs. I started with Owin OpenAuth and implemented a POC. Everything worked well. But when I had to send client to Authorization to Authorization server, I could not find any inbuilt function to do that. I had to build this my self. Then I came across DotNetOpenAuth that provides APIs to set the