I have a unique requirement that users be able to authenticate against an existing datastore, or the sitefinity store. I realized that in order to accomplish this, I could simply override the ValidateUser function of the Telerik Membership provider in Telerik.DataAccess.ASPNetProviders.TelerikMembershipProvider. I wrote the following code to wrap it up:
public class FOOMembershipProvider : Telerik.DataAccess.AspnetProviders.TelerikMembershipProvider
public override bool ValidateUser(string username, string password)
bool success = base.ValidateUser(username, password);
//...custom validation for FOO...
and set the web.config file to use the new membership provider dll.
It compiles, the site runs, but when I log into the admin page -using a sitefinity account (not a custom one) - the admin page doesn't load certain controls.
Essentially, in the Sitefinity/Admin/Default.aspx.cs page, the following line fails
Telerik.Cms.Security.GlobalPermission perm =
// Dashboard box 3 - Users
inTrayInfo = new UsersInTrayInfo("Users", "Recently registered");
inTrayInfo.SortBy = "CreationDate";
inTrayInfo.SortDirection = System.ComponentModel.ListSortDirection.Descending;
dbbUsers.DataSource = inTrayInfo.GetAsDataSource();
I have no idea why that would fail, given that for a sitefinity account, my provider still calls all the telerik functionality.
Any ideas, comments or suggestions you have are appreciated.