Copied to clipboard

Flag this post as spam?

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


  • GregMerraine 1 post 21 karma points
    Jan 11, 2013 @ 14:29
    GregMerraine
    0

    web.config <location>-section and ActiveDirectoryRoleProvider

    Hi all,

    I've written an ActiveDirectoryRoleProvider for Umbraco; which implements GetRolesForUser and IsUserInRole. Added to web.config, the provider works fine, while loggin in into Umbraco backend. When a user is not in the allowed role, he can not log in.

    Now I want to set access restrictions via webconfig, like this:

    ...
    </system.web>
    <
    location path="file.aspx">
    <system.web>
    <authorization>
    <allow roles="specialGroup" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>

    Unfortunately this does not work. Even when the user is in the right role, I'll get a permission denied message when opening the location.

    My questiens:

    # Who processes the location section? Umbraco? Does anybody know, where in code?

    # Any hints, what I could do, to get this work? Or did I have forgotten something?

    I hope my english is adeqaute, so that you can understand, what I'm meaning.

    Thanks in advance,

    Greg

  • 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