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?
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!!!
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.
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!!!
is working on a reply...
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.