Click here to Skip to main content
15,891,689 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" standalone="yes"?>
<NewDataSet>
  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="UsersInRoles">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Users" type="xs:string" minOccurs="0" />
                <xs:element name="Roles" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <UsersInRoles>
    <Users>pippo</Users>
    <Roles>resf</Roles>
  </UsersInRoles>
  <UsersInRoles>
    <Users>pluto</Users>
    <Roles>apps</Roles>
  </UsersInRoles>
  <UsersInRoles>
    <Users>user1</Users>
    <Roles>roleFunction1</Roles>
  </UsersInRoles>
  <UsersInRoles>
    <Users>user2</Users>
    <Roles>roleFunction2</Roles>
  </UsersInRoles>
</NewDataSet>

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