TelerikProfileProvider with custom Membership Provider
Posted
by Larsenal
on Stack Overflow
See other posts from Stack Overflow
or by Larsenal
Published on 2009-09-29T16:26:40Z
Indexed on
2010/04/19
10:33 UTC
Read the original article
Hit count: 475
sitefinity
|asp.net-membership
I've setup two membership providers: my custom provider and the Sitefinity provider. My custom membership provider is set as the default.
I want to use Sitefinity's Profile provider for both sets of users. However, the profile provider only seems to work for the users that I pull out of the Sitefinity membership provider.
After poking around with Reflector a bit, it seems that the Telerik Profile Provider assumes that the username exists in its own DB.
User userByName = this.Application.GetUserByName(userName);
if (userByName != null)
{
// magic happens here...
}
All the magic only happens if it was able to retrieve the user locally. Seems to violate the principles of the providers. Shouldn't I be able to arbitrarily add properties to any user regardless of the membership provider?
(I've also posted this on the Sitefinity forum, but haven't got a response yet. SO has spoiled me. I've come to expect an answer in minutes, not days.)
© Stack Overflow or respective owner