public class OneClickLoginAuthenticationFilter
extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
| 构造器和说明 |
|---|
OneClickLoginAuthenticationFilter(OneClickLoginService oneClickLoginService,
OneClickLoginProperties oneClickLoginProperties,
org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected Map<String,String> |
getOtherParamMap(List<String> otherParamNames,
javax.servlet.http.HttpServletRequest request)
从 request 中获取 otherParamNames 的 paramValue
|
protected String |
obtainAccessToken(javax.servlet.http.HttpServletRequest request)
获取 access token;
|
protected void |
setDetails(javax.servlet.http.HttpServletRequest request,
OneClickLoginAuthenticationToken authRequest)
Provided so that subclasses may configure what is put into the auth
request's details property.
|
void |
setPostOnly(boolean postOnly)
Defines whether only HTTP POST requests will be allowed by this filter.
|
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthenticationpublic OneClickLoginAuthenticationFilter(@NonNull
OneClickLoginService oneClickLoginService,
@NonNull
OneClickLoginProperties oneClickLoginProperties,
@Nullable
org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
public org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException
attemptAuthentication 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterorg.springframework.security.core.AuthenticationException@Nullable protected Map<String,String> getOtherParamMap(@NonNull List<String> otherParamNames, @NonNull javax.servlet.http.HttpServletRequest request)
otherParamNames - 参数名称列表request - requestprotected String obtainAccessToken(javax.servlet.http.HttpServletRequest request)
request - so that request attributes can be retrievedprotected void setDetails(javax.servlet.http.HttpServletRequest request,
OneClickLoginAuthenticationToken authRequest)
request - that an auth request is being created forauthRequest - the auth request object that should have its details
setpublic void setPostOnly(boolean postOnly)
Defaults to true but may be overridden by subclasses.
Copyright © 2021. All rights reserved.