Package org.adempiere.base.sso
Class SSOUtils
java.lang.Object
org.adempiere.base.sso.SSOUtils
Utility methods for single sign on support.
- Author:
- Logilite Technologies
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCreateErrorResponce
(String error) Create HTML page for error messagestatic String
getRedirectedURL
(String redirectMode, I_SSO_PrincipalConfig config) The target redirect URL for identity provider after authenticationstatic ISSOPrincipalService
Get single sign on servicestatic ISSOPrincipalService
getSSOPrincipalService
(String uuID) static boolean
isResourceRequest
(javax.servlet.http.HttpServletRequest request, boolean isWebUI) If request is a resource request, do not redirected to identity provider for authentication
-
Field Details
-
ERROR_VALIDATION_URL
- See Also:
-
SSO_MODE_OSGI
- See Also:
-
SSO_MODE_WEBUI
- See Also:
-
SSO_MODE_MONITOR
- See Also:
-
ISCHANGEROLE_REQUEST
- See Also:
-
EVENT_ON_AFTER_SSOLOGIN
- See Also:
-
-
Constructor Details
-
SSOUtils
public SSOUtils()
-
-
Method Details
-
getSSOPrincipalService
Get single sign on service- Returns:
- single sign on service
-
getRedirectedURL
The target redirect URL for identity provider after authentication- Parameters:
redirectMode
-config
-- Returns:
-
getCreateErrorResponce
Create HTML page for error message- Parameters:
error
-- Returns:
- HTML error page
-
isResourceRequest
public static boolean isResourceRequest(javax.servlet.http.HttpServletRequest request, boolean isWebUI) If request is a resource request, do not redirected to identity provider for authentication- Parameters:
request
-isWebUI
-- Returns:
- true if request is a resource request
-
getSSOPrincipalService
-