Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rich Green 2246 posts 4008 karma points
    Oct 25, 2010 @ 13:46
    Rich Green
    1

    Securing custom section

    Hi,

    I've created a custom section at /umbraco/customsection/

    How can I insure that this page cannot accessed directly when the user is not logged into Umbraco? For example

    http://website.com/umbraco/customsection/mypage.aspx

    If the user is not logged in I would like them to be redirected to 

    http://website.com/umbraco/umbraco.aspx

    Thanks

    Rich

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 25, 2010 @ 13:56
    Aaron Powell
    1

    Make the pages inherit from umbraco.BasePages.UmbracoEnsuredPages in the businesslogic assembly.

    That's how the backoffice does its security.

  • Rich Green 2246 posts 4008 karma points
    Oct 25, 2010 @ 15:21
    Rich Green
    0

    Cheers Slace

  • Rob Watkins 369 posts 701 karma points
    Oct 25, 2010 @ 15:27
    Rob Watkins
    0

    Slight typo there, it is umbraco.BasePages.UmbracoEnsuredPage - no "s".

    Thanks for this, exactly what I was looking for.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Oct 26, 2010 @ 00:05
    Aaron Powell
    0

    Ah I was close :P

Please Sign in or register to post replies

Write your reply to:

Draft