...肯定要对这个token进行一个认证,那UsernamePasswordAuthenticationFilter中就必须要有一个认证管理器(AuthenticationManager),来处理我们这个token的认证。
基于1个网页-相关网页
The purpose of the authenticationManager property is to authenticate a user.
authenticationManager 属性的作用是对用户进行身份验证。
Recall that you configured the authenticationManager property while configuring the authentication processing filter in the first article of this series.
回忆一下,您在本系列第 1 部分的 配置身份验证处理过滤器 中曾对 authenticationManager 属性进行了配置。
The method security interceptor uses the authenticationManager and accessDecisionManager properties to authenticate and authorize a user before allowing access to a secure bean.
在允许对一个安全 bean 进行访问之前,方法安全拦截器使用 authenticationManager 和 accessDecisionManager 属性对用户进行身份验证和授权。
应用推荐