Sub application within umbraco –managed in the umbraco CMS – Umbraco security integration

We here at wiliam had the use case of integrating an asp.net MVC 3 sub applciation that was required to be managed through the same portal i.e Umbraco CMS.

This involved overcoming the obvious hurdle “Security Integration”.

Firstly we deployed the MVC application in the plugins folder and created it as a sub application in IIS.

 

 

 

 

 

 

 

 

 

 

 

We had config inheritance issues so we employed the location tags inheritInChildApplications='false' in the root webconfig to overcome this.

 

 

We integrated the access in umbraco by creating a separate plugin following the umbraco plugin pattern with the root menu node calling the sub application in the right side iframe in umbraco.

 

 

We integrated the security by creating a http module that is referenced by the subapplication that checked the umbraco user context to see if the user was logged in and created our own session for the login storage. The validation happens in Application_PostAcquireRequestState So that session is accessible

 

We validated the user by checking the umbraco user login table against the logout.umbracoUserContextID which Is a reference to the umbraco library.

 

 

We shared the umbraco style sheet with the sub application to get it somewhat looking similar.

 

 

 

 

 

Done!