Class AuthPac4jInfo

java.lang.Object
com.axelor.auth.pac4j.AuthPac4jInfo

@Singleton public class AuthPac4jInfo extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.pac4j.core.credentials.authenticator.Authenticator
     
    Return the main callback endpoint for users authentication
    Return the default post logout url.
    Optional<org.pac4j.core.profile.UserProfile>
    getUserProfile(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)
     
    static boolean
    isNativeClient(org.pac4j.core.context.WebContext context)
     
    static boolean
    isWebSocket(jakarta.servlet.http.HttpServletRequest request)
     
    static boolean
    isXHR(jakarta.servlet.http.HttpServletRequest request)
     
    static boolean
    isXHR(org.pac4j.core.context.CallContext ctx)
     
    static boolean
    isXHR(org.pac4j.core.context.WebContext context)
     
    void
    setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator authenticator)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthPac4jInfo

      public AuthPac4jInfo()
  • Method Details

    • getCallbackUrl

      public String getCallbackUrl()
      Return the main callback endpoint for users authentication
      Returns:
      url form where the users are authenticated
    • getLogoutUrl

      public String getLogoutUrl()
      Return the default post logout url.
      Returns:
      url where the users will be redirected after logout
    • setAuthenticator

      public void setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator authenticator)
    • getAuthenticator

      public org.pac4j.core.credentials.authenticator.Authenticator getAuthenticator()
    • getUserProfile

      public Optional<org.pac4j.core.profile.UserProfile> getUserProfile(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)
    • isXHR

      public static boolean isXHR(org.pac4j.core.context.CallContext ctx)
    • isXHR

      public static boolean isXHR(org.pac4j.core.context.WebContext context)
    • isXHR

      public static boolean isXHR(jakarta.servlet.http.HttpServletRequest request)
    • isNativeClient

      public static boolean isNativeClient(org.pac4j.core.context.WebContext context)
    • isWebSocket

      public static boolean isWebSocket(jakarta.servlet.http.HttpServletRequest request)