Skip to content

Conversation

@ywangd
Copy link
Member

@ywangd ywangd commented May 3, 2022

In #86206, we closed down Authentication constructors to favour
dedicated convenient methods for instantiation. The constructor usages
in the example project were however left out (another refactor fallout).

Relates: #86206
Resolves: #86378

In elastic#86206, we closed down Authentication constructors to favour
dedicated convenient methods for instantiation. The constructor usages
in the example project were however left out (another refactor fallout).

Relates: elastic#86206
Resolves: elastic#86378
@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Security/Security Security issues without another label v8.3.0 labels May 3, 2022
@ywangd ywangd requested a review from n1v0lg May 3, 2022 09:07
@elasticmachine elasticmachine added the Team:Security Meta label for security team label May 3, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

Copy link
Contributor

@breskeby breskeby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert my changes to ignore this example project as part of this PR? 177b0fa

@ywangd
Copy link
Member Author

ywangd commented May 3, 2022

Can you revert my changes to ignore this example project as part of this PR? 177b0fa

Done. I was going to but your PR wasn't merged when this one got raised.

@ywangd ywangd requested a review from breskeby May 3, 2022 09:25
new RealmRef("test", "test", "node"), new RealmRef("test", "test", "node"));
Authentication authentication = Authentication
.newRealmAuthentication(new User("bar", "not_superuser"), new RealmRef("test", "test", "node"))
.runAs(new User("joe", "custom_superuser"), new RealmRef("test", "test", "node"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

Copy link
Contributor

@breskeby breskeby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@ywangd ywangd merged commit 210ce86 into elastic:master May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Security/Security Security issues without another label Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] CustomAuthorizationEngineTests.java:56: error: no suitable constructor found for Authentication(User,RealmRef,RealmRef)

4 participants