public static String resolveLoopbackAddress(int port) {
    return String.format("http://%s", IPStackUtils.concatHostPort(LOOP_BACK_INTERFACE, port));
  }
Gets the configured callback url path for the SAML service provider. Also, makes sure
that the port number is same as the HTTP thrift port.
@param conf Hive server configuration.
@return the Callback URL http path.
@throws Exception In case the URL is invalid or if the port doesn't match http port.
service/src/java/org/apache/hive/service/auth/saml/HiveSamlUtils.java