Package com.axelor.auth.pac4j
Class AuthPac4jInfo
java.lang.Object
com.axelor.auth.pac4j.AuthPac4jInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.pac4j.core.credentials.authenticator.Authenticator
Return the main callback endpoint for users authenticationReturn 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)
-
Constructor Details
-
AuthPac4jInfo
public AuthPac4jInfo()
-
-
Method Details
-
getCallbackUrl
Return the main callback endpoint for users authentication- Returns:
- url form where the users are authenticated
-
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)
-