Debugkit not showing due to missing route

Problem fixed, the solution is:
At /src/Application.php, we need add a function:
public function getAuthenticationService(ServerRequestInterface $request): AuthenticationServiceInterface for Authentication.

I did:
Router::url([‘controller’ => ‘Users’, ‘action’ => ‘login’, ‘plugin’ => null, ‘prefix’ => null])

It was:
Router::url([‘controller’ => ‘Users’, ‘action’ => ‘login’])

Answser is from: DebugKit not loading because of missing login route · Issue #345 · cakephp/authentication · GitHub

1 Like