-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Conversation
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
Pinging @elastic/es-security (Team:Security) |
There was a problem hiding this 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
Done. I was going to but your PR wasn't merged when this one got raised. |
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")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
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