By default the new authentication plugins deny access to all actions if you are not logged in. See here
So you would have to specifically allow actions to be accessed as not logged in users (which we recommend to not unintentionally publish stuff you don’t want to)
public function beforeFilter(\Cake\Event\EventInterface $event)
{
parent::beforeFilter($event);
$this->Authentication->allowUnauthenticated(['login', 'index', 'view']);
}
But if you want to invert that behavior so that everything is allowed as not logged in users besides specific actions you need to set this config
Also please watch my workshop talking about the new auth plugins.