use of io.cdap.cdap.security.server.ExternalAuthenticationServer in project cdap by caskdata.
the class MasterServiceMainTestBase method getAuthenticationBaseURI.
/**
* Returns the base URI for the authentication.
*/
static URI getAuthenticationBaseURI() {
ExternalAuthenticationServer externalAuthenticationServer = getServiceMainInstance(AuthenticationServiceMain.class).getInjector().getInstance(ExternalAuthenticationServer.class);
InetSocketAddress addr = externalAuthenticationServer.getSocketAddress();
return URI.create(String.format("https://%s:%d/", addr.getHostName(), addr.getPort()));
}
Aggregations