dereuromark / cakephp-tinyauth

CakePHP TinyAuth plugin for an easy and fast user authentication and authorization. Single or multi role. DB or config file based.
MIT License
126 stars 43 forks source link

Problem when using new Cakephp Authentication Plugin #124

Closed majaMH closed 3 years ago

majaMH commented 4 years ago

I followed the Instruction to use tinyauth with new Authentication Plugin by cakephp4...

in AppController.php: $this->loadComponent('TinyAuth.Authentication', []);

in Application.php use Authentication\Middleware\AuthenticationMiddleware;

inside public function middleware $middlewareQueue->add(new AuthenticationMiddleware($this));

On Site following error occurs Subject must be an instance of Authentication\AuthenticationServiceInterface or Authentication\AuthenticationServiceProviderInterface, App\Application given.

dereuromark commented 3 years ago

This looks like a unrelated issue - some developer error with namespaces or alike.