dotnetopenauth

How do i moq this DotNetOpenAuth Response object?

Hi folks, i have a method which takes in a DotNetOpenAuth (formally known as DotNetOpenId) Response object. My method extracts any claimed data, checks to see if this user exists in our system, yadda yadda yadda... and when finished returns the auth'd user instance. Now .. how can i use moq to mock up this response object, to test my a...

rpxnow vs dotnetopenid, What do you think ?

I read a couple of posts about this but i was really more confused about what shall i use or what would be better, or even am i missing some other solutions ? Please advice, Thanks ...

WSS and OpenID

I have configured WSS with OpenID to enable FBA authentication. I have added a custom login page. Im able to authenticate using the OpenID account, however when i return back to the default.aspx page i get the 'Access Denied' page. The Question is how can i tell WSS to allow OpenID authentication into the web application? I have used ...

Implementing multi-database, multi-provider authentication system...

We have started building an asp.net mvc application. Application will consist with one main database with users, projects, common tables etc... and many databases (all with the same structure) with a data relevant to a particular project. Use can have some global roles (stored in a main database) and some project specific roles (stored i...

Having problems with Attributes and DotNetOpenID

Hi folks, i'm trying to set up my code to request some attributes from the OpenID Service Provider. At the same time, I wish to return an ActionResult. Here's the code in the OpenId sample MVC project (that comes straight out of the DotNetOpenId / DotNetOpenAuth website) ... try { return openid.CreateRequest(Request.Form["openid_i...

Is there a list of which OpenID Providers use which schema Attributes?

Hi Folks, I'm using OpenId in my website. Love it. Currently, I'm testing my code with my own openId account, which i have with MyOpenId. Whenever I tried to retrieve any data handed to me from MyOpenId, it was empty/null. After further analysis, Google led me to this post which suggests that, even though there is an official schema, ...

How do i extract data from an DotNetOpenID AX attribute?

Hi folks, Andrew Arnott has a post here about how to extract the attribute exchange extension data, from an OpenId proivder. Here's a snippet of the code :- var fetch = openid.Response.GetExtension<FetchResponse>(); if (fetch != null) { IList<string> emailAddresses = fetch.GetAttribute (Well...

Request for Tutorial to add Openid Support to NerdDinner ASP.NET MVC application

I'm looking learn about ASP.NET MVC and OpenId using the ASP.NET MVC NerdDinner tutorial. I would like to replace the Authentication system in NerdDinner to be OpenId only. I've downloaded the latest DotNetOpenAuth libraries but I'm not sure how to put it all together. Can anyone help with a quick step-by-step tutorial? Is this as simp...

How do I assign a Role to an OpenId user for an ASP.NET MVC site?

Hi Folks, I'm using OpenId in my ASP.NET MVC application. Works great :) Once i have the user's OpenId Identifier (once they have authenticated and returned to my site), i load up the users data (to get display name, etc). From here, i also know their roles. I'm not sure how to assign the role to the current Forms.Identity. here's my...

Page.User.Identity.IsAuthenticated return always false in safari

I am using DotNetOpenId and Asp.NET MVC. I have the following problem: When using IE not problem I can login and when I check the Page.User.Identity.IsAuthenticated I get true. If I test this in Safari for Windows the Page.User.Identity.IsAuthenticated is false. If I use Safari in Mac I can Login without a problem. Any Idea? What Other...

Best way to use OpenID authentication with Azure?

I'm struggling to get OpenID working on a Windows Azure application. I'm currently using DotNetOpenAuth (used to be DotNetOpenID) and first I had a problem with the relay step since Azure uses port 20000 internally and that was getting passed back and forth. I found a workaround for this (I'll write a blog post for it). Next issue is ...

Implementing .Net OpenId with ASP.Net MVC

The sample I downloaded from DotNetOpenId has different files than the MVC 1.0 application I get when I create a new application. I am new to MVC and openId, all the examples I have come across are very old. Can anyone point me to examples of implementing Openid with ASP.net MVC using DotNetOpenId. ...

How do I unit test an ASP.NET MVC controller that uses DotNetOpenId?

I have an AccountController whose constructor takes an object derived from my custom IOpenIdAuthentication interface. By default, this is an OpenIdAuthenticationService object that wraps an OpenIdRelyingParty. The interface looks like this: public interface IOpenIdAuthentication { IAuthenticationResponse Response { get; } IAuthe...

Implementing OpenID: identifying users

Company I work for wants to publish an internal website to the outside world, but also wants to identify the visitors in some easy way. Some functionality will be visible for all visitors but most must be visible for authenticated visitors. (And some functionality is restricted to admin-visitors.) While management is considering to imple...

How to logout from Relying Party ?

I am using Dotnetopenid for login. I am logs in my application by using dotnetopenid provider suppose google. At the time of logout I am ending the my application user's session by FormsAuthentication.SignOut(); but if I am not closing the browser and logs in using google it will not ask me for id-password and land me on secured page ...

Is google generating new openid claimed identifier for localhost?

Hi all, I am running an issue with google openid identifier. I am using dotnetopenauth library (successor of dotnetopenid) in simple asp.net mvc project. During tests on localhost I noticed that from time to time google generates new claimed identifier. Why is that? Is it just with localhost? Everything looks okay with different provide...

Why DotnetOpenID have not implemented the logout from Openid Provider ?

Why DotnetOpenID have not implemented the logout from Openid Provider ? There current version is DotNetOpenId-2.5.5.9153 and DotNetOpenAuth-3.1.0.9122 Are they planning to implement logout in next version ? ...

Issues using openid-selector/ dotnet openid

I'm using openid-selector based UI to authenticate user using dotnet openid API. I'm having a small issue, when i select google and cancel and close browser and then open link and select yahoo it redirects me google but not yahoo. i checked that when i click button at bottom on browser status bar it shows correct parameter being sent to...

Cannot get attributes from DotNetOpenId response

I'm trying to figure out how to get the users information after validating via open id. It doesn't matter if I supply a ClaimsRequest or FetchRequest whenever I call response.GetExtension<ClaimsResponse> //Or response.GetExtension<FetchResponse> //Or response.GetUntrustedExtension<ClaimsResponse> // OR response.GetUntrustedExtens...

How to pass password given by user for openid without going to openid site in .Net?

Hi , I am using the below code. OpenIdRelyingParty createRelyingParty() { OpenIdRelyingParty openid = new OpenIdRelyingParty(); int minsha, maxsha, minversion; if (int.TryParse(Request.QueryString["minsha"], out minsha)) { openid.Settings.MinimumHashBitLength = minsha; } if (int.TryParse(Request.QueryStr...