'What to use instead of org.jboss.security.auth.spi.DatabaseServerLoginModule?

We are switching to new Java 17 and new WildFly 26. Using older Java, we had a custom login module class which extended org.jboss.security.auth.spi.DatabaseServerLoginModule. In that class, we authenticate user wit ha custom authentication mechanism. Also that class did authorization, using rolesQuery configured in standalone.xml.

We can not use DatabaseServerLoginModule any more, as it is using java.security.acl.Group inside, which was deprecated and removed from Java.

The question is, are there other APIs to use, to create a custom login module? Especially to authorize user against security constrains defined in web.xml.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source