类 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)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    commence(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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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
      抛出:
      IOException
      jakarta.servlet.ServletException