I’ve been doing a lot of work with Umbraco lately and I came across a problem this week with regards to password protecting custom sections within the Umbraco CMS. If you want to know how, have a look at the forum post I started on the Umbraco forum.
I found an easier solution to the problem after marking the answer to the solution.
Import umbraco.BusinessLogic on all of your pages within the custom section and then inherit your pages from umbraco.BasePages.UmbracoEnsuredPage