Skip to content

Allow custom realms to use additional supporting objects #48369

Closed
@tvernum

Description

@tvernum

Currently a SecurityExtension that provides a custom realm must fit into the following limitations:

That means that the only supporting objects that a realm can easily depend on are:

  • ResourceWatcherService
  • RealmConfig

If it wants anything else, it needs to get acces via the Plugin API.
Things that custom-realm-authors have said that they would like to have access to include:

  • An Elasticsearch Client (which they can get from Plugin.createComponents, but then need to save somewhere so the realm can access it)
  • The NativeRoleMappingStore (as a UserRoleMapper, which can be retrieved from Guice, but that's something we're actively working to remove).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions