人的知识就好比一个圆圈,圆圈里面是已知的,圆圈外面是未知的。你知道得越多,圆圈也就越大,你不知道的也就越多。

0%

Spring Security框架原理--概览

SecurityFilterChain

Spring Security 过滤器链 UML

  • 表单认证
    Spring Security过滤器(表单认证)

  • Http Basic认证
    Spring Security过滤器(Http Basic认证)

AuthenticationManager

AuthenticationManager UML

Authentication

Authentication UML

  • UsernamePasswordAuthenticationToken

    • JaasAuthenticationToken
  • AnonymousAuthenticationToken

  • RememberMeAuthenticationToken

  • PreAuthenticatedAuthenticationToken

  • BearerTokenAuthenticationToken

  • OAuth2AuthenticationToken

  • OAuth2LoginAuthenticationToken

  • OAuth2AuthorizationCodeAuthenticationToken

  • OpenIDAuthenticationToken

  • CasAuthenticationToken

  • CasAssertionAuthenticationToken

  • RunAsUserToken

  • TestingAuthenticationToken

  • AbstractOAuth2TokenAuthenticationToken

    • JwtAuthenticationToken
    • OAuth2IntrospectionAuthenticationToken

AuthenticationProvider

AuthenticationProvider UML

UsernamePasswordAuthenticationToken:

  • AbstractUserDetailsAuthenticationProvider

    • DaoAuthenticationProvider
  • AbstractJaasAuthenticationProvider

    • JaasAuthenticationProvider
    • DefaultJaasAuthenticationProvider
  • RemoteAuthenticationProvider

  • AbstractLdapAuthenticationProvider

    • ActiveDirectoryLdapAuthenticationProvider
    • LdapAuthenticationProvider
  • AnonymousAuthenticationProvider

  • RememberMeAuthenticationProvider

PreAuthenticatedAuthenticationToken:

  • PreAuthenticatedAuthenticationProvider
  • GoogleAccountsAuthenticationProvider

BearerTokenAuthenticationToken:

  • JwtAuthenticationProvider
  • OAuth2IntrospectionAuthenticationProvider

OAuth2LoginAuthenticationToken:

  • OAuth2LoginAuthenticationProvider

  • OidcAuthorizationCodeAuthenticationProvider

  • OAuth2AuthorizationCodeAuthenticationProvider

  • OpenIDAuthenticationProvider

  • CasAuthenticationProvider

  • RunAsImplAuthenticationProvider

  • TestingAuthenticationProvider

SecurityContext

SecurityContext UML

UserDetails

UserDetails

UserDetailsService

UserDetailsService UML

AuthenticationEntryPoint

AuthenticationEntryPoint

AuthenticationEntryPoint UML

form login -> LoginUrlAuthenticationEntryPoint
basic login -> BasicAuthenticationEntryPoint
undefined -> Http403ForbiddenEntryPoint
resource server -> OAuth2AuthenticationEntryPoint

小礼物走一走,来 Github 关注我