Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom Event Handler - How to Best Approach View modes: 
User avatar
Member
Member
Peter - 3/17/2011 3:16:38 PM
   
Custom Event Handler - How to Best Approach
1st Question

I am looking to do a simple external data check when a user authenticates. I know this can be handled through a Custom Event Handler DLL BUT I was wondering if there might be a simpler way such as is used when handling user events:

UserInfo.TYPEINFO.OnAfterUpdate += new TypeInfo.ObjectActionEventHandler

Is there anything similar for the standard authentication model for the OnAuthenticate event or do I HAVE to create a Custom Event Handler DLL?

2nd Question:

If I HAVE to create a Custom Event Handler DLL do I NEED to include all of the other handler files if all I really need is the CustomSecurityHandler? My preference would be to get rid of any handlers I do not currently need for simplicities sake. For instance I would delete the CustomDataHandler file, etc. from the project.

I'm just not sure if Kentico expects ALL of the various custom handlers to be present in the DLL even if they effectively do nothing?

User avatar
Member
Member
Peter - 3/22/2011 10:18:29 AM
   
RE:Custom Event Handler - How to Best Approach
No thoughts on this?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/29/2011 5:27:18 AM
   
RE:Custom Event Handler - How to Best Approach
Hi,

I discussed your questions with our developer and unless you have the full source code you will need to use Custom security handler. Alternatively, you could develop custom membership provider, but it could be more difficult.

As for your second question - you will need to add the whole custom event handler project and modify only the security handler.

Best regards,
Ivana Tomanickova