-
Notifications
You must be signed in to change notification settings - Fork 306
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
PAYARA-3386: Update login.conf with login module #3837
Conversation
Jenkins test please |
Handling of property maps as list of maps extracted to helper class
attrMap.put("fileJaax", "fileRealm"); | ||
attrMap.put("ldapJaax", "ldapRealm" ); | ||
attrMap.put("solarisJaax", "solarisRealm"); | ||
attrMap.put("jdbcJaax", "jdbcRealm"); |
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.
<sun:property id="loginModule" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18nc.realm.loginmodule.class}" helpText="$resource{i18nc.realm.loginmodule.classHelp}" > | ||
<sun:textField id="loginModule" text="#{attrMap.loginModuleClass}" columns="$int{57}" maxLength="#{sessionScope.fieldLengths['maxLength.realm.Classname']}" /> | ||
</sun:property> | ||
</sun:propertySheetSection> |
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.
if (testtype.match('none')){ | ||
var loginModuleJaax = document.getElementById('#{loginModuleJaax}'); | ||
|
||
loginModuleJaax.style.display = 'none'; |
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.
jenkins test please |
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.
Looks good, but does need some updating of the license headers
jenkins test please |
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.
If I use a custom realm class name then login.conf is not updated
Further to my review: the issue is that I did not supply all fields and the UI did not indicate that I needed to or throw an error when I submitted it |
@Cousjava, I improved the UI a bit, try again, please |
jenkins test |
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.
Tested and all works
Login Module registration can be requested via
--login-module
parameter tocreate-auth-realm
. In such case propertyjaas-context
is required for the realm.In the Admin UI, the default jaas context is now prefilled when creating a predefined realm. Login modules can be registered by enabling a checkbox and filling in the login module class name (and JAAS context if not provided by predefined class)