public void doBrowserSSO() throws HiveJdbcBrowserException {
    logDebugInfoUri(clientContext.getSsoUri());
    openBrowserWindow();
    try {
      waitForServerResponse(timeoutInMs);
    } catch (InterruptedException e) {
      throw new HiveJdbcBrowserException(e);
    }
    if (serverResponse == null) {
      throw new HiveJdbcBrowserException(TIMEOUT_ERROR_MSG);
    }
    if (!serverResponse.isValid()) {
      throw new HiveJdbcBrowserException(
          "Received invalid response from server. See driver logs for more details");
    }
  }
This class is used to execute a browser based SSO workflow with the authentication mode
is browser.
jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcBrowserClient.java