Skip to content

[Backport 7.x] Support Client and RoleMapping in custom Realms#50950

Merged
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50534-Support-Client-and-RoleMapping
Jan 14, 2020
Merged

[Backport 7.x] Support Client and RoleMapping in custom Realms#50950
tvernum merged 1 commit intoelastic:7.xfrom
tvernum:backport/7.x/50534-Support-Client-and-RoleMapping

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Jan 14, 2020

Previously custom realms were limited in what services and components
they had easy access to. It was possible to work around this because a
security extension is packaged within a Plugin, so there were ways to
store this components in static/SetOnce variables and access them from
the realm, but those techniques were fragile, undocumented and
difficult to discover.

This change includes key services as an argument to most of the methods
on SecurityExtension so that custom realm / role provider authors can
have easy access to them.

Backport of: #50534

Previously custom realms were limited in what services and components
they had easy access to. It was possible to work around this because a
security extension is packaged within a Plugin, so there were ways to
store this components in static/SetOnce variables and access them from
the realm, but those techniques were fragile, undocumented and
difficult to discover.

This change includes key services as an argument to most of the methods
on SecurityExtension so that custom realm / role provider authors can
have easy access to them.

Backport of: elastic#50534
@tvernum tvernum merged commit 33c29fb into elastic:7.x Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant