Search in sources :

Example 1 with FakeAuthHandler

use of io.pravega.auth.FakeAuthHandler in project pravega by pravega.

the class RESTAuthHelperTest method init.

@Before
public void init() {
    RESTServerConfig config = RESTServerConfigImpl.builder().host("localhost").port(TestUtils.getAvailableListenPort()).authorizationEnabled(true).userPasswordFile("passwd").tlsEnabled(false).build();
    AuthHandlerManager authManager = new AuthHandlerManager(config);
    authManager.registerHandler(new FakeAuthHandler());
    authHelper = new RESTAuthHelper(authManager);
}
Also used : RESTAuthHelper(io.pravega.shared.rest.security.RESTAuthHelper) AuthHandlerManager(io.pravega.shared.rest.security.AuthHandlerManager) FakeAuthHandler(io.pravega.auth.FakeAuthHandler) RESTServerConfig(io.pravega.shared.rest.RESTServerConfig) Before(org.junit.Before)

Aggregations

FakeAuthHandler (io.pravega.auth.FakeAuthHandler)1 RESTServerConfig (io.pravega.shared.rest.RESTServerConfig)1 AuthHandlerManager (io.pravega.shared.rest.security.AuthHandlerManager)1 RESTAuthHelper (io.pravega.shared.rest.security.RESTAuthHelper)1 Before (org.junit.Before)1