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 underlyingjavax.servlet.http.HttpServletRequest.Delegates to the underlyingjavax.servlet.http.HttpServletRequest.Delegates to the underlyingjavax.servlet.http.HttpServletRequest.String[]getParameterValues(String name) Delegates to the underlyingjavax.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, getRequestedSessionId, getServerName, getServerPort, getSessionId, getUserDirectory, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure
-
Method Details
-
getParameter
Delegates to the underlyingjavax.servlet.http.HttpServletRequest.- Parameters:
name- aStringspecifying the name of the parameter- Returns:
- a
Stringrepresenting the single value of the parameter - Since:
- 7.8
- See Also:
-
getParameterNames
Enumeration<String> getParameterNames()Delegates to the underlyingjavax.servlet.http.HttpServletRequest.- Returns:
- an
EnumerationofStringobjects, each String containing the name of a request parameter; or an emptyEnumerationif the request has no parameters - Since:
- 7.8
- See Also:
-
getParameterValues
Delegates to the underlyingjavax.servlet.http.HttpServletRequest.- Parameters:
name- aStringspecifying the name of the parameter- Returns:
- an array of
Stringobjects containing the parameter's values - Since:
- 7.8
- See Also:
-
getParameterMap
Delegates to the underlyingjavax.servlet.http.HttpServletRequest.- Returns:
- an immutable
java.util.Mapcontaining parameter names as keys and parameter values as map values - Since:
- 7.8
- See Also:
-
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
-