Copied to clipboard

Flag this post as spam?

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


  • Hardy Wang 91 posts 112 karma points
    Jul 12, 2011 @ 18:32
    Hardy Wang
    0

    Restrict content visible to certain users

    Hi all,

    I am building content site with Umbraco, one of the requirement is that content should not be accessed by any anounymous user.

    In order to achieve it, I am thinking to build following items:

    • A new landing page to take request from referral page, take parameters from query string or form post. Create session object after authenticated.
    • The landing page redirect to Umbraco pages.
    • Create a HttpModule and wire up with Umbraco, the HttpModule will detect the session object created by landing page. If not available just kick the user out.

    I am not sure if I am doing something stupid, maybe Umbraco has some built-in features already.

    Another thing is that I am not 100% for sure, if I wire my own HttpModule with Umbraco, does it screw the entire Umbraco site?

    Thanks for any input.

    Hardy

  • Rich Green 2246 posts 4008 karma points
    Jul 12, 2011 @ 18:38
    Rich Green
    0

    Hey Hardy,

    Umbraco already handles this for you, you can just right click the content node and click 'Public Access' 

    Then you just need to add the 'login' page where users can login, then you'll be good to go.

    Rich

  • Hardy Wang 91 posts 112 karma points
    Jul 12, 2011 @ 21:46
    Hardy Wang
    0

    Thanks Rich.

    Do you also happen to know some single-sign-on solution for Umbraco?

Please Sign in or register to post replies

Write your reply to:

Draft