Package com.spotfire.server.security
Interface WebAuthenticationContext
- All Superinterfaces:
AuthenticationContext
The
WebAuthenticationContext
contains information besides the information provided by the
AuthenticationContext
that is only available to CustomWebAuthenticator
implementations.- Since:
- 7.8
-
Method Summary
Modifier and TypeMethodDescriptiongetParameter
(String name) Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.String[]
getParameterValues
(String name) Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.Returns the URI to the endpoint on the Spotfire Server to which the identity provider should redirect the user's browser after authentication.Returns a mutable map, stored as a parameter in the HTTP session associated with this request, that is only available from this interface.Methods inherited from interface com.spotfire.server.security.AuthenticationContext
getAttribute, getAttributeNames, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getQueryString, getRemoteAddr, getRemoteHost, getRemotePort, getRequestContext, getServerName, getServerPort, getSessionId, getUserDirectory, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure
-
Method Details
-
getParameter
Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.- Parameters:
name
- aString
specifying the name of the parameter- Returns:
- a
String
representing the single value of the parameter - Since:
- 7.8
- See Also:
-
ServletRequest.getParameter(String)
-
getParameterNames
Enumeration<String> getParameterNames()Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.- Returns:
- an
Enumeration
ofString
objects, each String containing the name of a request parameter; or an emptyEnumeration
if the request has no parameters - Since:
- 7.8
- See Also:
-
ServletRequest.getParameterNames()
-
getParameterValues
Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.- Parameters:
name
- aString
specifying the name of the parameter- Returns:
- an array of
String
objects containing the parameter's values - Since:
- 7.8
- See Also:
-
ServletRequest.getParameterValues(String)
-
getParameterMap
Delegates to the underlyingjakarta.servlet.http.HttpServletRequest
.- Returns:
- an immutable
java.util.Map
containing parameter names as keys and parameter values as map values - Since:
- 7.8
- See Also:
-
ServletRequest.getParameterMap()
-
getSessionContext
Returns a mutable map, stored as a parameter in the HTTP session associated with this request, that is only available from this interface. Note that the map remains in the session between authentication attempts and may contain information relating to multiple authentication attempts at once.Typically used for storing a CSRF token or similar when implementing for example the Authorization Code Flow of OAuth 2.0.
Requests within the same session are serialized during the authentication phase so the session context can be used without any further synchronization.
All objects placed in the map MUST implement
Serializable
.- Returns:
- the session context
- Since:
- 7.8
- See Also:
-
getReturnEndpoint
URI getReturnEndpoint()Returns the URI to the endpoint on the Spotfire Server to which the identity provider should redirect the user's browser after authentication. The returned URI is an absolute URI on the formhttp[s]://<host>[:<port>]/spotfire/auth/custom/authenticate
.- Returns:
- the URI to the endpoint on the Spotfire Server to which the identity provider should redirect the user's browser after authentication
- Since:
- 11.6
-