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

PAYARA-3386: Update login.conf with login module #3837

Merged
merged 12 commits into from
Mar 25, 2019

Conversation

pdudits
Copy link
Contributor

@pdudits pdudits commented Mar 14, 2019

Login Module registration can be requested via --login-module parameter to create-auth-realm. In such case property jaas-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)

@arjantijms
Copy link
Contributor

Jenkins test please

attrMap.put("fileJaax", "fileRealm");
attrMap.put("ldapJaax", "ldapRealm" );
attrMap.put("solarisJaax", "solarisRealm");
attrMap.put("jdbcJaax", "jdbcRealm");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

<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>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

if (testtype.match('none')){
var loginModuleJaax = document.getElementById('#{loginModuleJaax}');

loginModuleJaax.style.display = 'none';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For predefined classes, that already have an attribute for JAAS Context, it is not displayed for login module configuration:

image

@pdudits pdudits requested a review from Pandrex247 March 18, 2019 09:07
@pdudits
Copy link
Contributor Author

pdudits commented Mar 18, 2019

jenkins test please

Copy link
Contributor

@arjantijms arjantijms left a 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

@Pandrex247 Pandrex247 changed the title Payara-3386: Update login.conf with login module PAYARA-3386: Update login.conf with login module Mar 18, 2019
@pdudits pdudits requested a review from arjantijms March 19, 2019 07:28
@pdudits
Copy link
Contributor Author

pdudits commented Mar 19, 2019

jenkins test please

Copy link
Contributor

@Cousjava Cousjava left a 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

@Cousjava
Copy link
Contributor

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

@mulderbaba mulderbaba added this to the 5.192 milestone Mar 22, 2019
@pdudits
Copy link
Contributor Author

pdudits commented Mar 25, 2019

@Cousjava, I improved the UI a bit, try again, please

@pdudits pdudits requested a review from Cousjava March 25, 2019 07:23
@pdudits
Copy link
Contributor Author

pdudits commented Mar 25, 2019

jenkins test

Copy link
Contributor

@Cousjava Cousjava left a 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

@arjantijms arjantijms merged commit 6488cbd into payara:master Mar 25, 2019
@pdudits pdudits deleted the payara-3386 branch May 20, 2019 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants