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()
Set<String>
getCentralClients()
Map<String,String>
getClientInfo(String clientName)
String
getLogoutUrl()
static boolean
isNativeClient(org.pac4j.core.context.WebContext context)
static boolean
isSecure(javax.servlet.http.HttpServletRequest request)
static boolean
isXHR(javax.servlet.http.HttpServletRequest request)
static boolean
isXHR(org.pac4j.core.context.WebContext context)
void
requireAbsoluteUrl()
void
setAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator authenticator)
void
setClientInfo(String clientName, Map<String,String> info)
-
-
-
Method Detail
-
requireAbsoluteUrl
public void requireAbsoluteUrl()
-
getBaseUrl
public String getBaseUrl()
-
getCallbackUrl
public String getCallbackUrl()
-
getLogoutUrl
public String getLogoutUrl()
-
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)
-
isSecure
public static boolean isSecure(javax.servlet.http.HttpServletRequest request)
-
-