locked
User restrictions in the starter kit RRS feed

  • Question

  • User-1315129797 posted
    Could anyone please explain how the members_list.aspx is restricted from being databounto the navigation repeaters in case of not logged in users. I thought the

    <location path="member_list.aspx">

    <system.web>

    <authorization>

    <deny users="?"/>

    </authorization>

    </system.web>

    </location>

    lines in web.config is the reason but as I go through creation of my own web site based on the materials I get to know form the starter kip, I realize that all of my users,logged in or not may see the members_list.aspx in the navigation, even when I have added the needed lines I discribed above to the web.config of my project.

     Thank you.

    Thursday, January 11, 2007 12:47 PM

Answers

  • User-1315129797 posted

    Got it.

    Figured out that we needed to redifine

    <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">

    <providers>

    <remove name="AspNetXmlSiteMapProvider"/>

    <add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>

    </providers>

    </siteMap>

     securityTrimmingEnabled="true" is the player in this case.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 12, 2007 7:46 AM

All replies

  • User381524165 posted

    How about this:

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

     

    Thursday, January 11, 2007 6:16 PM
  • User-1315129797 posted

    My way, the one I first showd, prevents not authenticated users to dispay the page if you click on the link but the problem is that the link is still visible.

    Your way let's only the administrators to access the page but it still remains visible(databound) in the repaeter control of the navigation bars.

     The question remains, does anyone knows how the hiding og the member_list in the navigation repeaters is achieved in the starter kit?

    Friday, January 12, 2007 5:02 AM
  • User-1315129797 posted

    Got it.

    Figured out that we needed to redifine

    <siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">

    <providers>

    <remove name="AspNetXmlSiteMapProvider"/>

    <add name="AspNetXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true" siteMapFile="Web.sitemap"/>

    </providers>

    </siteMap>

     securityTrimmingEnabled="true" is the player in this case.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 12, 2007 7:46 AM