Skip to content

AuthPlugin

Registers the authentication foundation: a default PasswordHasherInterface, an empty (no-op) default FirewallMap, and two AuthenticationMiddleware placements (StatelessAuthenticationMiddleware before Quiote\Middleware\SessionMiddleware, so a machine token can flip a request to sessionless before session startup; SessionAuthenticationMiddleware before Quiote\Middleware\SecurityMiddleware, so a successful login is visible to the same request’s authorization decision).

The default FirewallMap has zero firewalls, so both middleware are a complete no-op until an app registers its own FirewallMap (built either by hand or via FirewallFactory from a security.xml) as an earlier-registered service() — see PluginRegistrar::service()’s set-if-absent, first-plugin-wins rule.

final class AuthPlugin implements PluginInterface

ImplementsPluginInterface
Since1.0.0
SourceAuthPlugin.php
MethodDescription
register(PluginRegistrar $registrar): void

public function register(PluginRegistrar $registrar): void

The framework’s plugin-contribution API.

ParameterTypeDescription
$registrarPluginRegistrarThe framework’s plugin-contribution API.