Sitefinity 5.1 Custom Membership / Role Providers
Hello, I'm trying to implement a custom membership / role providers in Sitefinity 5.1 to validate users against an external MS CRM server.
I've read a lot of posts but it still not clear for me how to proceed. I just need my widgets to have access to my custom providers through Membership.Providers as usual.
1) What classes should I inherit from?
2) Where should I register my dlls? (web.config, security.config, both)
3) Please point me to any suitable example for SF 5.1
Any help would be appreciated.
Thanks in advance
I didn't know this was such a difficult issue on SF. My team implemented the same solution in several CMSs like Sharepoint, DotNetNuke, Kentico, Sitecore, etc. In Sitefinity things are not going so well which is a pitty because I think it's a wonderful product.
<
roleManager
enabled
=
"true"
defaultProvider
=
"Custom"
>
<
providers
>
<
clear
/>
<
add
name
=
"Custom"
type
=
"CustomType, CustomType, etc"
/>
</
providers
>
</
roleManager
>
<
membership
defaultProvider
=
"Default"
>
<
providers
>
<
clear
/>
<
add
name
=
"Default"
type
=
"Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"
/>
<
add
name
=
"Custom"
type
=
"CustomType, CustomType, etc."
/>
</
providers
>
</
membership
>
Juan.
Any response yet? I tool am looking to do something similar.
1. set of users who will be using sitefinity to configure stuff. And they have sitefinity "Default" role anager and membership provider
2.set of users who will be actually using the site. I have custom membership provider ( assuming that I need custom role manager as well for this, with the same name).. which does all the login information through "web services" (instead of external database)
Its not very clear how to differentiate these two things and didn't find much resource online as well.
Thanks.
Hi Kedar & Juan,
Your cases could be set up. You could take a look in the official documentation here in order to understand how to create a custom membership provider, where to register it etc.
If you follow the steps (e.g. the ones from the tutorial) and if you still have questions - don't hesitate to ask.
Have a nice day,
DimBo
Telerik