Shibboleth SP with Windows IIS7 and MVC

Andrew Webb andrew.webb at statpro.com
Tue Jul 17 10:11:28 EDT 2012


Raymond Lam wrote
> 
> In IIS, I moved the .sso file extension to the top of the list in "Handler
> Mappings"
> 

A solution that works for me, and which I find less messy than manipulating
the order of the handler mappings at site level (which modifies your
Web.config) is to tell MVC to ignore .sso routes in code.  The syntax for
ignoring routes is complicated and not very well documented, but Microsoft
provide an example for the .axd extension in every newly-created MVC
project.  So I copied what MS do, and have added this to my MVC web app (in
Global.asax.cs):-

routes.IgnoreRoute("{resource}.sso/{*pathInfo}");

With this in place, Shibboleth.sso runs correctly wherever the .sso handler
mapping is in the ordered list.  Also I don't have to set
runAllManagedModulesForAllRequests (RAMMFAR) to "false" (although it's a
good idea to do so, if you can - and I can).


--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Shibboleth-SP-with-Windows-IIS7-and-MVC-tp7560582p7580709.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.


More information about the users mailing list