Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Role provider View modes: 
User avatar
Member
Member
paolo.enrico.costa-gmail - 8/10/2010 3:49:14 AM
   
Custom Role provider
Hi,

I want to use a custom authentication provider (we have a centralized application that manages credentials for all our applications). Is it possible to develop a custom role provider so role list (as they appear when you configure a web part's visibility) comes from my application and not from Kentico's database?

Thanks

Paolo

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/10/2010 9:39:38 AM
   
RE:Custom Role provider
Hi Paolo,

The role has to be implemented in Kentico CMS if you want to use Display to roles property . You could implement Custom Security Handler class. In following article is described how to integrate external user authentication (this way, you can also copy roles to Kentico):
http://www.kentico.com/Docs/DevGuide/security_handler.htm

How to create a role is described here:
http://www.kentico.com/Docs/DevGuide/managing_roles.htm?zoom_highlightsub=role

and how to assign user to role here:
http://www.kentico.com/Docs/DevGuide/managing_user_roles.htm?zoom_highlightsub=role

To have roles and users synchronized you can create your own scheduled task as described here:
http://www.kentico.com/Docs/DevGuide/scheduling_a_custom_code.htm

Best regards,
Ivana Tomanickova