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.Authenticator
getAuthenticator()
String
getBaseUrl()
String
getCallbackUrl()
Return the main callback endpoint for users authenticationSet<String>
getCentralClients()
Map<String,String>
getClientInfo(String clientName)
String
getLogoutUrl()
Return the default post logout url.static boolean
isNativeClient(org.pac4j.core.context.WebContext context)
static boolean
isXHR(javax.servlet.http.HttpServletRequest request)
static boolean
isXHR(org.pac4j.core.context.WebContext context)
void
setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator authenticator)
void
setClientInfo(String clientName, Map<String,String> info)
-
-
-
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)
-
-