Package com.axelor.auth.pac4j
Class AuthPac4jInfo
- java.lang.Object
-
- com.axelor.auth.pac4j.AuthPac4jInfo
-
@Singleton public class AuthPac4jInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthPac4jInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.core.credentials.authenticator.AuthenticatorgetAuthenticator()StringgetBaseUrl()StringgetCallbackUrl()Return the main callback endpoint for users authenticationStringgetLogoutUrl()Return the default post logout url.static booleanisNativeClient(org.pac4j.core.context.WebContext context)static booleanisXHR(javax.servlet.http.HttpServletRequest request)static booleanisXHR(org.pac4j.core.context.WebContext context)voidsetAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator authenticator)
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
-
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()
-
isXHR
public static boolean isXHR(org.pac4j.core.context.WebContext context)
-
isXHR
public static boolean isXHR(javax.servlet.http.HttpServletRequest request)
-
isNativeClient
public static boolean isNativeClient(org.pac4j.core.context.WebContext context)
-
-