I am currently implementing the Glassfish area under neo4j DB support, for which I have defined the Realm class and LoginModule .
I can set the scope using the create-auth-realm asadmin . But the scope is recognized by Glassfish only if it is associated with the LoginModule defined in the config/login.conf .
For example, in my case, I should do the following:
Create an authentication scope:
create-auth-realm --classname com.mycompany.security.MyRealm --property jaas-context=MyLoginModule myrealm and then
Define MyLoginModule in this config/login.conf :
MyLoginModule { fr.mycompany.security.MyLoginModule required; };
I can edit the login.conf file manually, but would like to use the asadmin command to automate this step.
Do you know about such an asadmin command?
source share