Class LocalWebAuthenticationPlugin
java.lang.Object
io.vertigo.vega.plugins.authentication.local.LocalWebAuthenticationPlugin
- All Implemented Interfaces:
io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,WebAuthenticationPlugin<AuthenticationResult>
public class LocalWebAuthenticationPlugin
extends Object
implements WebAuthenticationPlugin<AuthenticationResult>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoHandleCallback(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) Handle the callback request after login on the ssobooleandoLogout(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) voiddoRedirectToSso(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) Handle the redirect to the sso login pageReturns the url for callbackReturn an optional external url of the application (if it is behind a firewall or a proxy)Returns the url for logoutgetRequestedUri(jakarta.servlet.http.HttpServletRequest httpRequest) Return the original request a user wanted before beeing redirected to the ssoUrl prefix of request directly handled by the pluginMap<String,BiFunction<jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, io.vertigo.core.lang.Tuple<Boolean, jakarta.servlet.http.HttpServletRequest>>> Register additionnal handler for specific request necessary for the pluginUrl prefix of urls that are protected with this authentication pluginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.vega.impl.authentication.WebAuthenticationPlugin
doInterceptRequest
-
Constructor Details
-
LocalWebAuthenticationPlugin
-
-
Method Details
-
getUrlPrefix
Url prefix of urls that are protected with this authentication plugin- Specified by:
getUrlPrefixin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- the prefix
-
getUrlHandlerPrefix
Url prefix of request directly handled by the plugin- Specified by:
getUrlHandlerPrefixin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- the prefix
-
getCallbackUrl
Returns the url for callback- Specified by:
getCallbackUrlin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- url for callback
-
getLogoutUrl
Returns the url for logout- Specified by:
getLogoutUrlin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- url for logout
-
getExternalUrlOptional
Return an optional external url of the application (if it is behind a firewall or a proxy)- Specified by:
getExternalUrlOptionalin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- the external url of the app : as seen by the end user
-
doHandleCallback
public AuthenticationResult doHandleCallback(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) Description copied from interface:WebAuthenticationPluginHandle the callback request after login on the sso- Specified by:
doHandleCallbackin interfaceWebAuthenticationPlugin<AuthenticationResult>- Parameters:
httpRequest- the requesthttpResponse- the response to consume- Returns:
- result of login challenge, providing info of the logged in user
-
doRedirectToSso
public void doRedirectToSso(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) Description copied from interface:WebAuthenticationPluginHandle the redirect to the sso login page- Specified by:
doRedirectToSsoin interfaceWebAuthenticationPlugin<AuthenticationResult>- Parameters:
httpRequest- the requesthttpResponse- the response to consume
-
doLogout
public boolean doLogout(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) - Specified by:
doLogoutin interfaceWebAuthenticationPlugin<AuthenticationResult>
-
getUrlHandlers
public Map<String,BiFunction<jakarta.servlet.http.HttpServletRequest, getUrlHandlers()jakarta.servlet.http.HttpServletResponse, io.vertigo.core.lang.Tuple<Boolean, jakarta.servlet.http.HttpServletRequest>>> Description copied from interface:WebAuthenticationPluginRegister additionnal handler for specific request necessary for the plugin- Specified by:
getUrlHandlersin interfaceWebAuthenticationPlugin<AuthenticationResult>- Returns:
- le map of specific handlers
-
getRequestedUri
Description copied from interface:WebAuthenticationPluginReturn the original request a user wanted before beeing redirected to the sso- Specified by:
getRequestedUriin interfaceWebAuthenticationPlugin<AuthenticationResult>- Parameters:
httpRequest- the request- Returns:
- the uri
-