Skip to content

Commit

Permalink
Fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Sep 30, 2024
1 parent 5a5c574 commit dcd9351
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ Collection<Object> createComponents(
scriptService,
new ReservedRoleMappings(clusterStateRoleMapper)
);
final UserRoleMapper userRoleMapper = getUserRoleMapper(nativeRoleMappingStore, clusterStateRoleMapper);

final AnonymousUser anonymousUser = new AnonymousUser(settings);
components.add(anonymousUser);
Expand All @@ -869,7 +870,7 @@ Collection<Object> createComponents(
client,
clusterService,
resourceWatcherService,
nativeRoleMappingStore
userRoleMapper
);
Map<String, Realm.Factory> realmFactories = new HashMap<>(
InternalRealms.getFactories(
Expand All @@ -878,7 +879,7 @@ Collection<Object> createComponents(
resourceWatcherService,
getSslService(),
nativeUsersStore,
nativeRoleMappingStore,
userRoleMapper,
systemIndices.getMainIndexManager()
)
);
Expand All @@ -900,7 +901,6 @@ Collection<Object> createComponents(
);
components.add(nativeUsersStore);
components.add(new PluginComponentBinding<>(NativeRoleMappingStore.class, nativeRoleMappingStore));
final UserRoleMapper userRoleMapper = getUserRoleMapper(nativeRoleMappingStore, clusterStateRoleMapper);
components.add(new PluginComponentBinding<>(UserRoleMapper.class, userRoleMapper));
components.add(reservedRealm);
components.add(realms);
Expand Down

0 comments on commit dcd9351

Please sign in to comment.