Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Aug 21, 2023
1 parent b12b0f7 commit 24e1433
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public class Security extends Plugin
private final SetOnce<ThreadContext> threadContext = new SetOnce<>();
private final SetOnce<TokenService> tokenService = new SetOnce<>();
private final SetOnce<SecurityActionFilter> securityActionFilter = new SetOnce<>();
private final SetOnce<CrossClusterAccessAuthenticationService> crossClusterAccessAuthcServiceRef = new SetOnce<>();
private final SetOnce<CrossClusterAccessAuthenticationService> crossClusterAccessAuthcService = new SetOnce<>();

private final SetOnce<SharedGroupFactory> sharedGroupFactory = new SetOnce<>();
private final SetOnce<DocumentSubsetBitsetCache> dlsBitsetCache = new SetOnce<>();
Expand Down Expand Up @@ -994,13 +994,8 @@ Collection<Object> createComponents(
final RemoteClusterCredentialsResolver remoteClusterCredentialsResolver = new RemoteClusterCredentialsResolver(settings);

DestructiveOperations destructiveOperations = new DestructiveOperations(settings, clusterService.getClusterSettings());
final CrossClusterAccessAuthenticationService crossClusterAccessAuthcService = new CrossClusterAccessAuthenticationService(
clusterService,
apiKeyService,
authcService.get()
);
crossClusterAccessAuthcServiceRef.set(crossClusterAccessAuthcService);
components.add(crossClusterAccessAuthcService);
crossClusterAccessAuthcService.set(new CrossClusterAccessAuthenticationService(clusterService, apiKeyService, authcService.get()));
components.add(crossClusterAccessAuthcService.get());
securityInterceptor.set(
new SecurityServerTransportInterceptor(
settings,
Expand All @@ -1010,7 +1005,7 @@ Collection<Object> createComponents(
getSslService(),
securityContext.get(),
destructiveOperations,
crossClusterAccessAuthcServiceRef.get(),
crossClusterAccessAuthcService.get(),
remoteClusterCredentialsResolver,
getLicenseState()
)
Expand Down

0 comments on commit 24e1433

Please sign in to comment.