3 pages tagged with "asp-net-mvc"

Basic Auth with a Web API 2 IAuthenticationFilter

February 27, 2014 - 334 words - 2 mins
MVC5/Web API 2 introduced a new IAuthenticationFilter (as opposed the the IAuthorizationFilter we needed to dual-purpose in the past), as well as a substantial overhaul of the user model with ASP.NET Identity. Unfortunately, the documentation is abysmal, and all the blog articles focus on the System… read more

Azure AD Single Sign On with multiple environments (Reply URLs)

July 17, 2013 - 323 words - 2 mins
As part of an effort to move some internal applications to the cloud (sorry, The Cloud™), I recently went through the process of implementing Azure AD single sign on against our Office365 tenant directory. Working through the excellent MSDN tutorial, I hit the following (where it was describing how … read more

MVC unit testing error

January 06, 2011 - 56 words - 1 mins
I was trying to run a unit test on an MVC 3 controller and check the output of a RedirectToRouteResult when I got the following compiler error: Cannot apply indexing with [] to an expression of type 'System.Web.Routing.RouteValueDictionary' This confusing and clearly incorrect error message actually… read more