Search in sources :

Example 1 with ExternalAuthenticationServer

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()));
}
Also used : ExternalAuthenticationServer(io.cdap.cdap.security.server.ExternalAuthenticationServer) InetSocketAddress(java.net.InetSocketAddress)

Aggregations

ExternalAuthenticationServer (io.cdap.cdap.security.server.ExternalAuthenticationServer)1 InetSocketAddress (java.net.InetSocketAddress)1