“Un nuevo proveedor de autenticación con un objetivo en mente: poner todo lo que necesitas para cualquier autenticación en un punto.” @weaverryan https://github.com/symfony/symfony/pull/14673
si puedes acceder donde quieres acceder Es quien comprueba si eres quien dices que eres y si puedes acceder donde quieres acceder Es quien comprueba si eres quien dices que eres y si puedes acceder donde quieres acceder COMPONENTE DE SEGURIDAD AUTENTICACIÓN AUTORIZACIÓN
autenticación. ‣ Los listeners se componen: ‣ Authentication Manager: autentica mediante los authentication providers que tenga el firewall. ‣ Authentication Provider: es quien se encarga de comprobar las credenciales del token. COMPONENTE DE SEGURIDAD AUTENTICACIÓN - ELEMENTOS INVOLUCRADOS
la autenticación falla. ‣ security.interactive_login: sólo cuando el usuario hace login. ‣ security.switch_user: se ha activado la impersonación. COMPONENTE DE SEGURIDAD AUTENTICACIÓN - EVENTOS
“Un nuevo proveedor de autenticación con un objetivo en mente: poner todo lo que necesitas para cualquier autenticación en un punto.” @weaverryan https://github.com/symfony/symfony/pull/14673 ¡ES UN PROVEEDOR DE AUTENTICACIÓN MÁS! COMO PUEDEN SER EL DE FORMULARIO, LOGOUT, ETC.
autenticar extendiendo de AbstractGuardAuthenticator. 2. Configuramos el nuevo autenticador como servicio. 3. Añadimos el servicio en el firewall correspondiente en `guard`.
start(Request $request, AuthenticationException $authException = null) {} public function getCredentials(Request $request) {} public function getUser($credentials, UserProviderInterface $userProvider) {} public function checkCredentials($credentials, UserInterface $user) {} public function onAuthenticationFailure(Request $request, AuthenticationException $exception) {} public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) {} public function supportsRememberMe() {} }
function getCredentials(Request $request) {} public function getUser($credentials, UserProviderInterface $userProvider) {} public function checkCredentials($credentials, UserInterface $user) {} [...] }