public class HiveJdbcSamlRedirectStrategy
extends org.apache.http.impl.client.DefaultRedirectStrategy
RedirectStrategy to intercept the HTTP redirect
response received from the server in a browser mode auth flow. This is mainly used
to get the redirect URL from the HTTP redirect response since HttpThrift client does
not expose such information when the server throws a HTTP 302 redirect as response.
The redirect URL is then used to initialize the IJdbcBrowserClient so that it
can do the browser based SSO.| Constructor and Description |
|---|
HiveJdbcSamlRedirectStrategy(IJdbcBrowserClient browserClient) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getLocationURI(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
boolean |
isRedirected(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
public HiveJdbcSamlRedirectStrategy(IJdbcBrowserClient browserClient)
public boolean isRedirected(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.ProtocolException
isRedirected in interface org.apache.http.client.RedirectStrategyisRedirected in class org.apache.http.impl.client.DefaultRedirectStrategyorg.apache.http.ProtocolExceptionpublic URI getLocationURI(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
getLocationURI in class org.apache.http.impl.client.DefaultRedirectStrategyorg.apache.http.ProtocolExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.