Authorization with custom role provider

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to implement my own role Provider, by subclassing the RoleProvider
class.
How do I instruct .net 2.0 to use my role provider?
 
Hi Arne,
you will register your new provider in web.config file as follows:

<roleManager enabled="true" defaultProvider="myNewProvider">
<providers>
<clear />
<add name="myNewProvider" type="MyNamespace.MyProvider, MyLibrary,
Version = 1.0.0.0, Culture=neutral, PublicKeyToken = null" ... />
</providers>
</roleManager>

Regards,
Ladislav
 
Back
Top