Copied to clipboard

Flag this post as spam?

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


  • Ales Vozelj 3 posts 23 karma points
    Mar 13, 2010 @ 19:02
    Ales Vozelj
    0

    Umbraco Member provider for custom part of page under umbracoReservedPaths

    Since this is my first post I would like to say many thanks for great Umbraco CMS system.

    I am developing my new web page using umbraco v 4.0.3 (Assembly version: 1.0.3625.27276). What I would like to achieve is to use Umbraco Membership provider to protect (using login control for) my custom application folder wich is now set under umbracoReservedPaths in web.config.

    Example: I have folder CustomAdmin inside Umbraco root directory in web.config I set: <add key="umbracoReservedPaths" value="/umbraco/,/CustomAdmin/" />
    I am using CustomAdmin as folder where I and some other Members will manage custom database, so I want to protect CustomAdmin folder with MemberRole which is set in Umbraco. Is this possible and how?

    Looking forward to hearing from you.

  • Ales Vozelj 3 posts 23 karma points
    Mar 14, 2010 @ 00:09
    Ales Vozelj
    0

    Problem solved.

    I am using multiple domains inside Umbraco. For CustomAdmin I had subdomain set to CustomAdmin (path was set to C:/page/umbraco/CustomAdmin), but this was wrong I changed subdomain path to umbraco root (C:/page/umbraco) and let umbraco handle hostnames. Now I can use Membership provider also for my umbracoReservedPaths. I redirect users to login page which is handled by umbraco (not in CustomAdmin folder!) ->
      <!-- set secure page to reject anonymous users -->
      <location path="CustomAdmin">
        <system.web>
          <authorization>
            <allow roles="CustomAdmin" />
            <deny users="*" />
          </authorization>
        </system.web>
      </location>
    At the end of the day I figure out that sometimes Umbraco is to simple, because I was starting at much more complicated way which led me to that problem. Umbraco rules!!!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies