O'Reilly logo

CakePHP 2 Application Cookbook by Jorge González, James Watts

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

The HTTP authentication

Authentication logic covers the matching between user credentials (usually, a username and password combination) and an existing user defined in your system.

CakePHP is packed with several authentication classes, which provide you with the most widely used types for use in your application:

  • FormAuthenticate: This is used to provide a login page and submit user credentials via a POST request to your login action.
  • BasicAuthenticate: This lets the browser ask you for the credentials, using a standard HTTP basic authentication. The credentials are sent in plain text to the web server. This could be a security risk in your application, so using SSL is strongly advised.
  • DigestAuthenticate: This uses the HTTP digest authentication ...

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