dotnetopenauth

DotNetOpenAuth: Webforms, Getting Started

I am trying to figure out how to get DotNetOpenAuth(http://www.dotnetopenauth.net/) working in my webforms app I don't understand where to begin. I have an OpenIDSelector on my Login.aspx that lets you choose google or Yahoo. You can choose one, then a popup comes up, and lets you login. Once you login the program hangs because it i...

Test/Mock DotNetOpenAuth Controller

Hello, I trying to test an AccountController that uses DotNetOpenAuth but I am running into a problem. I want to test the Logon Actionresult to see that it is returning the correct views. The test fails because realm(I think) has a contract that requires the HttpContext.Current not to be null. I think I have to mock the request somehow ...

DotNetOpenAuth 3.4: calls to Yahoo! stop returning responses, sometimes affects Google too.

DotNetOpenAuth 3.4.1.10044 Windows 7 (64-bit) VS 2008 SP1, .NET 3.5, C# Windows Azure ASP.NET code behind fragment around OpenID call: OpenIdRelyingParty rp = new OpenIdRelyingParty(null); string discoveryUri = ""; if (provider == "google") { discoveryUri = "https://www.google.com/accounts/08/id"; Application.Set("Provider",...

Unit Test Url.Action

I am trying to unit test the code I got from an DotNetOpenAuth example but I have a hard time getting the UrlHelper to work in my tests. Somewhere on the LogOn ActionResult on my controller it calls the following UrlHelper. The following example is a simplified version of that ActionResult. public ActionResult TestUrlHelper() { var...

Send Data Using the WebRequest Class to DotNetOpenAuth website

I am trying to send data to DotNetOpenAuth website as described here http://msdn.microsoft.com/en-us/library/debx8sh9.aspx Sender receive (500) Internal Server Error. The same code for blank website without DotNetOpenAuth works fine. Should I tweak something? Here is an exception: System.ArgumentNullException was unhandled by user cod...

Session management and linking user accounts with OpenID, in ASP.NET

I am currently playing with DotNetOpenAuth to make an ASP.NET (C#) website use OpenID instead of the normal login-password routine for user and session handling. Up till now, I have added the DotNetOpenAuth.dll into my project and tried a test login page with the following: <rp:OpenIdLogin ID="OpenIdLogin1" runat="server" /> When I r...

Retrieve OpenId FullName from Google

I'm using DotNetOpenAuth lib to work with Google(only) OpenId. And I'm retrieving Email without any problem. But I can't get FullName, it is always null. request.AddExtension(new ClaimsRequest { Email = DemandLevel.Require, FullName = DemandLevel.Require }); ClaimsResponse claimsResponse = rel...

Tutorial on creating your own OpenId provider using dotnetopenauth?

Has anyone found a tutorial on how to create Your Own OpenId provider using dotnetopenauth? I'm not just looking to be a consumer of other openId providers. ...

DotNetOpenAuth RelayParty not working on load balanced cluster

We're trying to move an ASP.NET MVC application, which uses DotNetOpenAuth OpenID Version 3.4.1, from a single server web garden to a physical server cluster held behind a hardware load balancer. Our old setup (OpenID RP working): Browser => SHTTP => Server => WebGarden => Nonce/Session Store Our new setup (OpenID RP not working): Br...

How do DotNetOpenAuth whitelist and blacklists work?

Does anyone have any documentation on DotNetOpenAuth and the way it handles while lists and black lists? My config <untrustedWebRequest> <blacklistHosts> <add name="*" /> </blacklistHosts> <whitelistHosts> <add name="www.mysite.ca" /> <add name="mysite.ca" /> <add name="devel...

DotNetOpenAuth: Message signature was incorrect

I'm getting a "Message signature was incorrect" exception when trying to authenticate with MyOpenID and Yahoo. I'm using pretty much the ASP.NET MVC sample code that came with DotNetOpenAuth 3.4.2 public ActionResult Authenticate(string openid) { var openIdRelyingParty = new OpenIdRelyingParty(); var authenticationResponse = op...

Invalid message signature when running OpenId Provider on Cluster

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...

No OpenID endpoint found

I am trying to use the DotNetOpenId library to add OpenID support on a test website. For some reason it keeps giving me the following error when running on FireFix. Keep in mind that I am using localhost as I am testing it on my local machine. using System; using System.Collections.Generic; using System.Linq; using System.Web; using Sy...

How do I get other claims of the user using ADFS?

Hi I am able to authenticate the user using ADFS and succeded in getting the user alias using the below statement. Since some time, i am looking for a way in getting the other claims of the authenticated user, like email, name, roles, username etc. Any help on this would be appreciated. string alias = ((MicrosoftAdfsProxyRP.Microsof...

ASP.NET MVC: Implementing an OpenID sign-in page ala NerdDinner v2

Consider the log in page on NerdDinner.com: http://www.nerddinner.com/Account/LogOn Some nice features: jQuery effects on the OpenID choice popups for the other major providers Is this revision of the NerdDinner AccountController and its View available for public download? How would you reinvent this implementation? Any code you can...

dotnetopenauth with asp.net mvc proving too frustrating to use.

I've been trying excessively hard to implement a good open id solution into asp.net mvc - and everywhere I turn is absolute dead ends. DotNetOpenAuth is just too big and I have been thusfar unable to get even the most simplistic, basic, absolute cut and dry implementation of it to work. NerdDinner had a promising implementation, but it...

Google's OpenID identifier is different depending on the "consumer" domain name. How to avoid potential problems if domain name needs to change in the future?

I'm currently testing an OpenID implementation, and I'm noticing that Google sends a different identifier for different consuming host name / domain name, even for the same user. For example, Google sends a different identifier when the requesting site is localhost, compared to the identifier they send when the requesting site is 127.0....

Stopping DotNetOpenAuth from redirecting the URL.

Whenever a call is made to a RelyingParty, DotNetOpenAuth gives a redirect (as expected). This looks something like this ... return request.RedirectingResponse.AsActionResult(); This works alright - but I'd like to catch it and put it in a dialog, not redirect the existing page. Is there any way to do this? I'm trying to use jQuery UI...

What does error "Precondition failed: this.TokenManager is IOpenIdOAuthTokenManager" mean?

I'm using the DotNetOpenAuth samples, particularly the OpenIdRelyingPartyWebForms. When I use loginPlusOAuthSampleOP it fails on the LoggedIn event with the error: "Precondition failed: this.TokenManager is IOpenIdOAuthTokenManager" mean? Any ideas what this could be? ...

DotNetOpenAuth: Mock ClaimsResponse

Hello, I was wondering how I can mock the ClaimseReponse class in DotNetOpenAuth? This is the class(remove a few properties): [Serializable] public sealed class ClaimsResponse : ExtensionBase, IClientScriptExtensionResponse, IExtensionMessage, ...