Consolidate the authentication result caches #70900
Labels
>enhancement
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
Team:Security
Meta label for security team
As discussed over a comment of #70543, there is an opportunity to consolidate existing caches used for authentication results. These are the one used for
CachingUsernamePasswordRealm
,ApiKeyService
andCachingServiceAccountsTokenStore
. Their implementations are largely identical. The different authentication result can be generialised. We should be able to have a common implementation for all of them. We could also consider using composition over inheritance when we are at it.The text was updated successfully, but these errors were encountered: