Class AuthPac4jInfo

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

@Singleton public class AuthPac4jInfo extends Object
  • 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()
    • getClientInfo

      @Nullable public Map<String,String> getClientInfo(String clientName)
    • setClientInfo

      public void setClientInfo(String clientName, Map<String,String> info)
    • getCentralClients

      public Set<String> getCentralClients()
    • 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)