Custom Roles
I know that there are two classes I can extended to provide custom roles: SitefinityRoleProvider (compatible with ASP.NET) and RoleDataProvider. When I extended RoleDataProvider, then I can see my custom roles in the admin interface, but I can't use them in ASP.NET forms (together with membership class). But when I extend SitefinityRoleProvider, then I can successfully use custom role (and membership) in the login form, but administrative tool doesn't list them then. What would be correct way?
Hello Max,
You could inherit from OpenAccessRoleProvider which is implementation of RoleDataProvider. The provider uses OpenAccess as an underlying storage. For some completely custom solutions you could inherit from RoleDataProvider and implement your own provider - for instance XML data provider.
SitefinityRoleProvider is a "wrapper" for the standard ASP.NET RoleProvider. The RoleManager class initialize providers of type SitefinityRoleProvider which can be declared in the root web.config file.
Sincerely yours,
Ivan Dimitrov
the Telerik team
Thanks, Ivan. That's what I did in the end: I extended RoleDataProvider.