I recently changed the authentication for our application from the built-in username/password authentication to the microsoft MFA / azure authentication, and that changes the flow a bit.
The logging in works just fine, but when a user needs to log out of the application, Nova redirects them to the login page, which then kicks off the Azure MFA process, and because the user is logged in on microsoft, the Laravel auth session gets recreated and they are logged in again.
I'm trying to figure out how to force nova to redirect a user to the "/" route after clicking "logout". In my Nova.php config file, I have added this:
'routes' => [
'login' => '/auth/login',
'logout' => '/auth/logout',
],
and those /auth/login and /auth/logout routes point to the AuthenticatedSessionController::create and AuthenticatedSessionController::destroy methods. In the destory method, I destroy the session, log the user out, and then it should redirect to '/', but that doesn't seem to be happening. Nova keeps trying to redirect the users to the login page, and I'm not sure how to stop it.