Search in sources :

Example 6 with AuthHandlerManager

use of io.pravega.shared.rest.security.AuthHandlerManager in project pravega by pravega.

the class FailingSecureStreamMetaDataTests method setup.

@Override
@Before
public void setup() throws Exception {
    this.authManager = new AuthHandlerManager(GRPCServerConfigImpl.builder().authorizationEnabled(true).tlsCertFile(SecurityConfigDefaults.TLS_SERVER_CERT_PATH).tlsKeyFile(SecurityConfigDefaults.TLS_SERVER_PRIVATE_KEY_PATH).userPasswordFile(SecurityConfigDefaults.AUTH_HANDLER_INPUT_PATH).port(1000).build());
    ServerBuilder<?> server = ServerBuilder.forPort(TestUtils.getAvailableListenPort());
    GrpcAuthHelper.registerInterceptors(authManager.getHandlerMap(), server);
    super.setup();
}
Also used : AuthHandlerManager(io.pravega.shared.rest.security.AuthHandlerManager) Before(org.junit.Before)

Aggregations

AuthHandlerManager (io.pravega.shared.rest.security.AuthHandlerManager)6 Before (org.junit.Before)3 RESTServer (io.pravega.shared.rest.RESTServer)2 RESTAuthHelper (io.pravega.shared.rest.security.RESTAuthHelper)2 StrongPasswordProcessor (io.pravega.shared.security.crypto.StrongPasswordProcessor)2 FileWriter (java.io.FileWriter)2 AuthFileUtils.credentialsAndAclAsString (io.pravega.auth.AuthFileUtils.credentialsAndAclAsString)1 FakeAuthHandler (io.pravega.auth.FakeAuthHandler)1 SocketConnectionFactoryImpl (io.pravega.client.connection.impl.SocketConnectionFactoryImpl)1 ControllerService (io.pravega.controller.server.ControllerService)1 LocalController (io.pravega.controller.server.eventProcessor.LocalController)1 StreamMetadataResourceImpl (io.pravega.controller.server.rest.resources.StreamMetadataResourceImpl)1 StreamSegmentStore (io.pravega.segmentstore.contracts.StreamSegmentStore)1 TableStore (io.pravega.segmentstore.contracts.tables.TableStore)1 CacheManagerHealthContributor (io.pravega.segmentstore.server.CacheManager.CacheManagerHealthContributor)1 TokenVerifierImpl (io.pravega.segmentstore.server.host.delegationtoken.TokenVerifierImpl)1 AdminConnectionListener (io.pravega.segmentstore.server.host.handler.AdminConnectionListener)1 PravegaConnectionListener (io.pravega.segmentstore.server.host.handler.PravegaConnectionListener)1 SegmentContainerRegistryHealthContributor (io.pravega.segmentstore.server.host.health.SegmentContainerRegistryHealthContributor)1 ZKHealthContributor (io.pravega.segmentstore.server.host.health.ZKHealthContributor)1