I am using cakephp (version 4.1.4) and trying to do authentication with cakephp/authentication plugin (version 2.3.0). Based on the documentation, everything worked out for me,