Hi!
I’m doing an upgrade from 7.4 to 7.12. Is there a way to disable the AuthenticatorMiddleware.php that sets auth0-session as default?
/**
* Attaches the Auth0 session authenticator as the guard for requests.
*
* @api
*/
final class AuthenticatorMiddleware extends MiddlewareAbstract implements AuthenticatorMiddlewareContract
{
public function handle(
Request $request,
Closure $next,
): Response {
auth()->shouldUse('auth0-session');
return $next($request);
}
}
I set ‘registerMiddleware’ => false, but I had an error: Requests to this controller must be routed through a Guard configured with an Auth0 driver.
And I have this defaults setting in auth.php as well
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
I want to keep Web guard as default, there are others integrations that needs that setting.