use of io.confluent.ksql.security.KsqlUserContextProvider in project ksql by confluentinc.
the class AuthTest method createServer.
@Override
protected void createServer(KsqlRestConfig serverConfig) {
server = new Server(vertx, serverConfig, testEndpoints, new KsqlSecurityExtension() {
@Override
public void initialize(final KsqlConfig ksqlConfig) {
}
@Override
public Optional<KsqlAuthorizationProvider> getAuthorizationProvider() {
return Optional.ofNullable(authorizationProvider);
}
@Override
public Optional<KsqlUserContextProvider> getUserContextProvider() {
return Optional.ofNullable(userContextProvider);
}
@Override
public void close() {
}
}, Optional.ofNullable(securityHandlerPlugin), serverState, Optional.empty());
server.start();
}
Aggregations