Best Practices
General > Best Practices > Custom Authentication View modes: 
User avatar
Member
Member
Nelson.Lin@euroka.com.au - 6/4/2008 11:23:45 PM
   
Custom Authentication
Hi,

I wonder if there are Kentico developers out there who have done any custom authentication with Kentico CMS 3.0.

I'm new to this platform and having problems understand the steps required to override the default security handler in order to talk to an external source.

The things I tried.

- Created a CustomSecurity class that inherits the CMS.CustomEventHandler.CustomSecurityHandler and override the OnAuthentication method like the following and set a breakpoint on the return statement inside the OnAuthentication method in Visual Studio. But the breakpoint is never hit when I try to login from the website.

I'm must be doing something wrong. Please help.

Nelson
public class CustomSecurity : CustomSecurityHandler
{
public CustomSecurity()
{
}

public override object OnAuthentication(object userInfo, string username, string password)
{
return base.OnAuthentication(userInfo, username, password);
}
}

User avatar
Member
Member
Nelson.Lin@euroka.com.au - 6/5/2008 2:55:19 AM
   
RE:Custom Authentication
Hi,

Looks like I needed to RTFM.

http://www.kentico.com/docs/devguide/events_overview.htm.

Big thanks to Martin from Kentico for pointing me to the right place to look.

Nelson