I plan on migrating my application from jboss to openliberty. In jboss, I have a authentication and role mapping done using DatabaseServerLoginModule and configuring in standalone.xml file. How do I achieve the same thing using openliberty? I am using java as the backend.
Also, I need help on the below -
Wanted to know how to configure the below code in liberty? In jboss inside standalone.xml, I can provide a class name which is called automatically and i can specify the password and role query -
<security-domain name="APPRealm" cache-type="default">
<authentication>
<login-module code="com.applayer.common.security.AppLoginModule" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/APPDS"/>
<module-option name="principalsQuery" value="select password from ScUser where loginName=?"/>
<module-option name="rolesQuery" value="select r.jaasRoleName, 'Roles' from ScJAASRole r where r.jaasRoleTypeName = 'systemUser' OR ? LIKE 'SystemUser'"/>
</login-module>
</authentication>