{"agent":"claude","input":"Add login to this CakePHP 5 app with the cakephp/authentication plugin. Read composer.json, config/plugins.php, config/routes.php, src/Application.php, src/Controller/AppController.php, src/Controller/PagesController.php, templates/layout/default.php, tests/bootstrap.php, tests/TestCase/ApplicationTest.php and tests/TestCase/Controller/PagesControllerTest.php first. Require the plugin with Composer and read its installed version before configuring it. Add a migration under config/Migrations for a users table with a unique email and a password hash, bake the table, entity and fixture, hash passwords in the entity with DefaultPasswordHasher and hide the password field. Implement AuthenticationServiceProviderInterface in Application with session and form authenticators on email and password, add AuthenticationMiddleware after routing and the body parser, load the Authentication component in AppController, keep PagesController::display public, and add a UsersController with login, logout and add plus their templates and nav links. Extend ApplicationTest for the new middleware and write UsersControllerTest covering a wrong password, a right one, a guest redirected to login with the target kept, logout, and a redirect value on another host. Run composer check and PHPStan at the level in phpstan.neon, paste their output into a pull request, and say in it whether sign-up should stay open. Change no existing route.","resources":[{"url":"https://github.com/your-org/your-app"}]}