-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added commands for security subsystem #55
Conversation
Not assigning a milestone just yet, this might take long and I don't want to block any particular release with this. |
On the first sight, there's quite a lot of standalone builder classes. Typically, builders are embedded in the class of the command they are building. Any reason why not to do that? Also, see the EDIT: I see that the tests are structured in a slightly more coarse grained way -- one test class (or two, actually) for given command. This is how the commands/builders could be structured as well, as I said above. Could help with review, too. |
These standalone builders only extends common builder for adding login module. They serve as facade for AddLoginModule.Builder. Only reason for them is simplifying usage of AddLoginModule command for some commonly used login modules. They can be wrapped to own command classes, but since they serve as facade then these commands will not added any new functionality or something. They will become just an empty wrappers. I am not sure if it will be better to wrap them to that command classes. WDYT? I have also taken a look on Logging class. It is nice entry point to subsystem. I can add similar entry point to Security subsystem. |
If the standalone builders just simplify usage of the "generic" builder and don't add any functionality, maybe these builders could just be folded to the |
They can be folded to
If you think these inconveniences are insignificant I will move those builders to |
/** | ||
* Add a new authorization classic policy module to given security domain. | ||
*/ | ||
public class AddAuthorizationModule implements OnlineCommand, OfflineCommand { |
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.
final
?
Comments are minor, this is a really good work. Does it work with EAP 6 as well? |
OK, I really like this in the current form. I found two small issues: The class The @Test
public void removeOneOfMoreLoginModules() throws Exception {
client.apply(ADD_LOGIN_MODULE_1);
assertTrue("The login module should be created", ops.exists(TEST_LOGIN_MODULE1_ADDRESS));
client.apply(ADD_LOGIN_MODULE_2);
assertTrue("The login module should be created", ops.exists(TEST_LOGIN_MODULE2_ADDRESS));
client.apply(new RemoveLoginModule(TEST_SECURITY_DOMAIN_NAME, LOGIN_MODULE1_CODE));
assertFalse("The security domain should be created", ops.exists(TEST_LOGIN_MODULE1_ADDRESS));
} The assert message on the last line should reflect that this is about login modules, not security domains, and about removing, not creating. So: And things like this are all over the But these are pretty small issues and I believe we don't have to have an extra round of review on that. So when you fix it, please also rebase and squash. I'll happily merge. |
One other thing: the |
Added online commands for authentication-configuration and authentication-context
No description provided.