public interface SsoAuthenticator
| Modifier and Type | Interface and Description |
|---|---|
static class |
SsoAuthenticator.LicensingData
Wrapper class for all properties that can be used for enforcing licensing policy.
|
static class |
SsoAuthenticator.Result
Wrapper class for all properties needed by the FWD framework to respond to the auth / spawn request
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FWD_SDK_LOGIN_PARAM_PASS
The form parameter name for the password, when the FWD SDK script is used on the login page.
|
static java.lang.String |
FWD_SDK_LOGIN_PARAM_USER
The form parameter name for the user, when the FWD SDK script is used on the login page.
|
| Modifier and Type | Method and Description |
|---|---|
default SsoAuthenticator.Result |
authenticate(javax.servlet.http.Cookie[] cookies,
SsoAuthenticator.LicensingData licensingData)
Auto-login interface.
|
SsoAuthenticator.Result |
authenticate(java.util.Map<java.lang.String,java.lang.String[]> paramMap,
javax.servlet.http.Cookie[] cookies,
SsoAuthenticator.LicensingData licensingData)
Validates the POST request data against an authentication provider (DB, 3rd party directory, custom
auth server, etc) and returns a container with all details needed by the FWD framework to respond to
the auth request and eventually spawn a new client with the specified authorization.
|
default java.lang.String |
getAuthCookieName()
Returns the name of the cookie used for auto-login.
|
java.lang.String |
getLoginPage(java.lang.String loadedTemplate)
Receives as an argument the html template loaded from the standard location in the custom package or
null if no resource present.
|
default void |
initialize()
The method is called on server startup with the server context, after the default database
connections are initialized, and can be used to read configurations from directory.
|
javax.servlet.http.Cookie |
logout(javax.servlet.http.Cookie[] cookies)
Invalidates the web session associated with the authentication cookie by communicating with the auth
server or updating the DB and returns a cookie with the same name, but invalid value.
|
void |
setOption(java.lang.String option)
Provides options configured in directory under config/auth-mode/ssopluginoption.
|
default void |
terminate()
The method is called on server termination.
|
static final java.lang.String FWD_SDK_LOGIN_PARAM_USER
static final java.lang.String FWD_SDK_LOGIN_PARAM_PASS
void setOption(java.lang.String option)
option - Plain text that can contain any number of configs.default void initialize()
default void terminate()
java.lang.String getLoginPage(java.lang.String loadedTemplate)
loadedTemplate - The html template loaded from the standard location in the custom root package or null.default java.lang.String getAuthCookieName()
null is
returned, that indicates the auto-login function is disabled.default SsoAuthenticator.Result authenticate(javax.servlet.http.Cookie[] cookies, SsoAuthenticator.LicensingData licensingData)
authenticate(Map, Cookie[], LicensingData) will be later called by the login page on form
submission.cookies - All cookies coming with the HTTP request for authentication.licensingData - Data that can be used for enforcing licensing policy.SsoAuthenticator.Result authenticate(java.util.Map<java.lang.String,java.lang.String[]> paramMap, javax.servlet.http.Cookie[] cookies, SsoAuthenticator.LicensingData licensingData)
FWD_SDK_LOGIN_PARAM_USER and
FWD_SDK_LOGIN_PARAM_PASS.paramMap - A map of all query / form params.cookies - All cookies coming with the HTTP request.licensingData - Data that can be used for enforcing licensing policy.javax.servlet.http.Cookie logout(javax.servlet.http.Cookie[] cookies)
cookies - The cookie to be returned to the browser and used in the next auth requests.null if the web session / cookie invalidation failed, otherwise an
authentication Cookie with invalid value.