Click here to Skip to main content
15,891,473 members
Articles / Web Development / ASP.NET

RoleProvider for web applications that use XML files for roles

Rate me:
Please Sign up or sign in to vote.
4.63/5 (13 votes)
16 Oct 2006Ms-PL7 min read 73.7K   689   59  
Use a personal provider to manage users and roles in a web application.
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
      <authorization>
        <allow roles="roleFunction1"/>
        <deny users="*"/>
      </authorization>
    </system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Team Leader
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions