-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement
Description
Currently a SecurityExtension that provides a custom realm must fit into the following limitations:
- Have a no-args constructor
- Provide one or more
Realm.Factoryinstances, using only a ResourceWatcherService - In that factory, construct a realm from a
RealmConfigobject only
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 fromPlugin.createComponents, but then need to save somewhere so the realm can access it) - The
NativeRoleMappingStore(as aUserRoleMapper, which can be retrieved from Guice, but that's something we're actively working to remove).
albertzaharovits and soumendrak
Metadata
Metadata
Assignees
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement