Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > CustomSecurityHandler.OnAuthentication after Third-Party Authentication View modes: 
User avatar
Member
Member
AlexQMN - 5/5/2011 8:10:08 AM
   
CustomSecurityHandler.OnAuthentication after Third-Party Authentication
Hi,

We are using our own Database parallel to the KenticoCMS to store some specific Data.
After a User logs into KenticoCMS we want to do some checks with this User against our own DB.
If he normally logs in with FormsAuthentication i can use the OnAuthentication event of the CustomSecurityHandler. But if he logs in with Facebook or OpenID etc. the event doesnt get fired. Is there any other way of reacting to KenticoCMS User-Login no matter what Service he authenticated against?

Alex


User avatar
Member
Member
kentico_michal - 5/12/2011 7:02:52 AM
   
RE:CustomSecurityHandler.OnAuthentication after Third-Party Authentication
Hi Alex,

The OnAuthentication handler is invoked only in case of form or windows authentication. Regrettably, there is no other handler that could be used for third-party authentication services. So, you will need to modify existing web parts that provide an alternative way how users can log in and register to your site and add custom code that executes before authentication action and check users against another database.

Best regards,
Michal Legen