Permissions are stored in the database - the table name is sf_SecPermission. This is another way to store permissions, apart from storing data
in an XML file and using the Sitefinity Security module. The only requirement is that the items with these permissions have an ID of type
Guid.
Another option is to write a Security data provider that stores permission data in XML instead of a database and still uses it through Sitefinity’s API and interfaces. The
custom data provider must inherit from Telerik.Security.SecurityProvider class. Once the provider is implemented, it should be declared in the
web.config as shown in the following code:
| Security |
Copy Code |
|
<security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity">
<roles>
<clear/>
<add name="Administrators" permission="Unrestricted"/>
<add name="PublicUsers" permission="None"/>
</roles>
<providers>
<clear/>
<add name="DefaultSecurityProvider" connectionStringName="DefaultConnection" type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" membershipProvider="Sitefinity" roleProvider="Sitefinity"/>
<add name="MyCustomSecurityProvider" connectionString="~/App_Data/Security.xml" type="MyApplication.CustromSecurityProvider" membershipProvider="Sitefinity" roleProvider="Sitefinity"/>
</providers> </security>
|
See Also