Package org.codelibs.fess.sso
Class SsoManager
java.lang.Object
org.codelibs.fess.sso.SsoManager
Manager class for coordinating SSO (Single Sign-On) authentication operations.
This class serves as the central coordinator for SSO authentication in Fess.
It manages registered SSO authenticators, determines when SSO is available,
and delegates authentication operations to the appropriate SSO provider based
on the current configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<SsoAuthenticator> List of registered SSO authenticators. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether SSO authentication is available and configured.protected SsoAuthenticatorGets the SSO authenticator instance for the configured SSO type.Gets all registered SSO authenticators.org.lastaflute.web.login.credential.LoginCredentialAttempts to obtain login credentials using the configured SSO authenticator.org.lastaflute.web.response.ActionResponsegetResponse(SsoResponseType responseType) Gets the appropriate response for the specified SSO response type.protected StringGets the configured SSO type from the system configuration.logout(org.codelibs.fess.mylasta.action.FessUserBean user) Performs logout operations for the specified user using SSO.voidregister(SsoAuthenticator authenticator) Registers an SSO authenticator with this manager.
-
Field Details
-
authenticatorList
List of registered SSO authenticators.
-
-
Constructor Details
-
SsoManager
public SsoManager()Default constructor for creating a new SsoManager instance.
-
-
Method Details
-
available
public boolean available()Checks whether SSO authentication is available and configured.- Returns:
- true if SSO is configured and available, false otherwise
-
getLoginCredential
public org.lastaflute.web.login.credential.LoginCredential getLoginCredential()Attempts to obtain login credentials using the configured SSO authenticator.- Returns:
- The login credential from SSO authentication, or null if SSO is not available or no credential could be obtained
-
getResponse
Gets the appropriate response for the specified SSO response type.- Parameters:
responseType- The type of SSO response required (e.g., METADATA, LOGOUT)- Returns:
- The action response from the SSO authenticator, or null if SSO is not available
-
logout
Performs logout operations for the specified user using SSO.- Parameters:
user- The user to logout- Returns:
- The logout URL from the SSO authenticator, or null if SSO is not available
-
getAuthenticator
Gets the SSO authenticator instance for the configured SSO type.- Returns:
- The SSO authenticator instance, or null if not found
-
getSsoType
Gets the configured SSO type from the system configuration.- Returns:
- The SSO type string from configuration
-
getAuthenticators
Gets all registered SSO authenticators.- Returns:
- Array of all registered SSO authenticators
-
register
Registers an SSO authenticator with this manager.- Parameters:
authenticator- The SSO authenticator to register
-