@Override
  public URI getLocationURI(HttpRequest request, HttpResponse response, HttpContext context) throws ProtocolException {
    // add our own check to super-call
    return checkSsoUri(super.getLocationURI(request, response, context));
  }
This is an implementation of {@link 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 {@link IJdbcBrowserClient} so that it
can do the browser based SSO.
jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcSamlRedirectStrategy.java