Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Fix authentication creation in example project #86385

Merged
merged 3 commits into from
May 3, 2022

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
4 participants