7 Aralık 2021 Salı

SpringSecurity AuthenticationSuccessHandler Arayüzü

Giriş
Şu satırı dahil ederiz
import org.springframework.security.web.authentication.AuthenticationSuccessHandler;
Açıklaması şöyle
It has the direct responsibility of deciding what to do after a successful authentication (like controlling the navigation based on the authenticated user’s role to the subsequent destination using a redirect or a forward).

You can also set headers to response or save a token value to a cache or save an audit log as a successful login.

Ready to Use Handlers (within Spring Security):

AbstractAuthenticationTargetUrlRequestHandler,
SimpleUrlAuthenticationSuccessHandler
Şeklen şöyle




Hiç yorum yok:

Yorum Gönder