类 CustomLoginUrlAuthenticationEntryPoint
java.lang.Object
org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
cn.bbwres.biscuit.security.oauth2.web.CustomLoginUrlAuthenticationEntryPoint
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean,org.springframework.security.web.AuthenticationEntryPoint
public class CustomLoginUrlAuthenticationEntryPoint
extends org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
自定义的CustomLoginUrlAuthenticationEntryPoint
针对与非code认证的请求,返回json数据
- 作者:
- zhanglinfeng
-
构造器概要
构造器构造器说明CustomLoginUrlAuthenticationEntryPoint(String loginFormUrl, org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messageSourceAccessorObjectProvider) -
方法概要
修饰符和类型方法说明voidcommence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) Performs the redirect (or forward) to the login form URL.从类继承的方法 org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint
afterPropertiesSet, buildHttpsRedirectUrlForRequest, buildRedirectUrlToLoginPage, determineUrlToUseForThisRequest, getLoginFormUrl, getPortMapper, getPortResolver, isForceHttps, isUseForward, setFavorRelativeUris, setForceHttps, setPortMapper, setPortResolver, setUseForward
-
构造器详细资料
-
CustomLoginUrlAuthenticationEntryPoint
public CustomLoginUrlAuthenticationEntryPoint(String loginFormUrl, org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings authorizationServerSettings, org.springframework.beans.factory.ObjectProvider<org.springframework.context.support.MessageSourceAccessor> messageSourceAccessorObjectProvider) - 参数:
loginFormUrl- URL where the login page can be found. Should either be relative to the web-app context path (include a leading/) or an absolute URL.
-
-
方法详细资料
-
commence
public void commence(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, jakarta.servlet.ServletException Performs the redirect (or forward) to the login form URL.- 指定者:
commence在接口中org.springframework.security.web.AuthenticationEntryPoint- 覆盖:
commence在类中org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint- 抛出:
IOExceptionjakarta.servlet.ServletException
-