Home » Interview Question » Cake Php » How to use authComponents in cakephp

How to use authComponents in cakephp

How to use authComponents in cakephp

Identifying, authentication and authorizing to users is a common part of all web application. In CakePHP AuthComponent provides a functnality to authenticate and authorized the user.

Authentication is the process of identify the users by provided credentials and ensuring that users are who which have the access permission. By default in cakephp  this is done through a username and password that are checked against a known list of users.

How to use  AuthComponent in cake php

When you are using authComponents in cakephp to authenticate the user, first of all to initialize the authComponents in your controller or app controller (useable  for all controller)

You can define Auth Component in AppController as below


, , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">