Cakephp 3 Creating Custom Authentication Objects

I am doing custom authentication using caekphp 3. I am following below link: https://book.cakephp.org/3.0/en/controllers/components/authentication.html#creating-custom-authentication-objects

I want to use this authentication only for UsersController. How should I do this.

I tried by adding below code in UsersController, but it is always showing “Authentication adapter “Openid” was not found”.

public function beforeFilter(Event $event)
{
$this->loadComponent(‘Auth’);
$this->Auth->config(‘authenticate’, [
‘Openid’, // app authentication object.
‘AuthBag.Openid’, // plugin authentication object.
]);
}