7 Aralık 2021 Salı

SpringSecurity AbstractAuthenticationProcessingFilter Sınıfı

Giriş
Şu satırı dahil ederiz
import org.springframework.security.web.authentication
  .AbstractAuthencticationProcessingFilter;
Açıklaması şöyle
This filter will intercept a (browser-based HTTP-based authentication) request and attempt to perform authentication from that request if the request url path matches.

You define a request matcher for matching urls (provided with a direct filter url string value or RequestMatcher object), success and fail handlers and an authentication manager inside which the authentication flow will take place, processing the provided authentication request token.

It has a “attemptAuthentication” method where you can build up your custom “AbstractAuthenticationToken” request class and pass to the authentication manager’s “authenticate” method.
Kalıtan bazı sınıflar şöyle
CasAuthenticationFilter, 
OpenIDAuthenticationFilter, 
UsernamePasswordAuthenticationFilter — default responds to the URL “/login” which used to be “/j_spring_security_check” before.


Hiç yorum yok:

Yorum Gönder