O'Reilly logo

Enhancing Microsoft Content Management Server with ASP.NET 2.0 by Lim Mei Ying, Stefan Goßner, Spencer Harbar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing an MCMS Membership Provider

In order to support MCMS applications, our MCMS Membership Provider has to implement the ValidateUser()method, which performs MCMS Forms Authentication. This is the method that will be called when a user submits his or her credentials from the Login control. The following example shows such an implementation:

public override bool ValidateUser(string strUsername,
Membership ProviderForms Authenticationstring strPassword)
{
bool ValidUser = false;
CmsAuthenticationTicket Ticket =
CmsFormsAuthentication.AuthenticateAsUser(strUsername,
strPassword);
if (Ticket != null)
{
ValidUser = true;
}
return ValidUser;
}

This code will generate an MCMS authentication ticket if authentication is successful. We could now ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required