{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/docs/issues/2746","labels_url":"https://api.github.com/repos/cakephp/docs/issues/2746/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/docs/issues/2746/comments","events_url":"https://api.github.com/repos/cakephp/docs/issues/2746/events","html_url":"https://github.com/cakephp/docs/issues/2746","id":77647303,"number":2746,"title":"A note about using custom authentication objects with plugin notation","user":{"login":"elboletaire","id":153305,"avatar_url":"https://avatars.githubusercontent.com/u/153305?v=3","gravatar_id":"","url":"https://api.github.com/users/elboletaire","html_url":"https://github.com/elboletaire","followers_url":"https://api.github.com/users/elboletaire/followers","following_url":"https://api.github.com/users/elboletaire/following{/other_user}","gists_url":"https://api.github.com/users/elboletaire/gists{/gist_id}","starred_url":"https://api.github.com/users/elboletaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elboletaire/subscriptions","organizations_url":"https://api.github.com/users/elboletaire/orgs","repos_url":"https://api.github.com/users/elboletaire/repos","events_url":"https://api.github.com/users/elboletaire/events{/privacy}","received_events_url":"https://api.github.com/users/elboletaire/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/docs/milestones/1","html_url":"https://github.com/cakephp/docs/milestones/3.0","labels_url":"https://api.github.com/repos/cakephp/docs/milestones/1/labels","id":629438,"number":1,"title":"3.0","description":"","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":909,"state":"open","created_at":"2014-04-14T15:44:13Z","updated_at":"2015-05-24T20:05:28Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-18T12:55:59Z","updated_at":"2015-05-24T20:05:28Z","closed_at":"2015-05-24T20:05:28Z","body":"I'm not sure about adding this issue here. Probably would be better an issue directly to the CakePHP core source code, but I'm not sure if this is a documentation issue or a code issue.\r\n\r\nIn [Using Custom Authentication Objects](http://book.cakephp.org/3.0/en/controllers/components/authentication.html#using-custom-authentication-objects) it states that you can configure a plugin authentication object using plugin notation:\r\n\r\n```php\r\n    $this->Auth->config('authenticate', [\r\n        'Openid', // app authentication object.\r\n        'AuthBag.Combo', // plugin authentication object.\r\n    ]);\r\n```\r\n\r\nBut this doesn't seem to work, unless I specify the full namespace of the class:\r\n\r\n```php\r\n    $this->Auth->config('authenticate', [\r\n        'AuthBag\\Auth\\Combo', // plugin authentication object.\r\n    ]);\r\n```\r\n\r\nBTW, I think that the \"Creating Custom Authentication Objects\" and \"Using Custom Authentication Objects\" examples should be the same. Having multiple examples is confusing (the example creates an `OpenidAuthenticate` class and in the other example we configure `AuthBag.Combo`)."}}