ported basic AuthActions functionality to CakePHP 3