public interface SSOTokenExtractor
The Presto interface for custom filters for single sign-on solutions. The token extractor is the
first filter step that extracts the user identify token added by the SSO solution in an HTTP request.
The extracted string is then passed to StringTransformation
to produce
a valid user ID that Presto can use to perform authorization.
java.lang.String getToken(HttpServletRequest req) throws SSOTokenNotFoundException
Returns the SSO token from the specified request.
req
- The HTTP request that contains a token from the SSO solution with user identity information.SSOTokenNotFoundException
java.lang.String findToken(HttpServletRequest req)
Finds the SSO token in the specified request.
req
- The HTTP request that contains a token from the SSO solution with user identity information.