It's simple to use login.config with an embedded broker. You just need to set the java.security.auth.login.config system property to the path of your login.config file and it should work.
Justin On Sun, Mar 24, 2024 at 4:27 AM Mark Raynsford <org.apache.activ...@io7m.com> wrote: > On 24/03/2024 03:21, Justin Bertram wrote: > > ActiveMQ Artemis uses JAAS [1] which uses pluggable "login modules" [2] > > configured via the login.config file in the etc directory of the broker > > instance. We ship a handful of our own login modules which you can peruse > > [3] for pointers on how to implement your own. Documentation is here [4]. > > > > > > Justin > > > > [1] > > > https://docs.oracle.com/en/java/javase/11/security/java-authentication-and-authorization-service-jaas-reference-guide.html > > [2] > > > https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/security/auth/spi/LoginModule.html > > [3] > > > https://github.com/apache/activemq-artemis/tree/main/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas > > [4] > > > https://activemq.apache.org/components/artemis/documentation/latest/security.html#authentication-authorization > > Thanks! This looks good. > > I'm actually using an embedded broker, so presumably I'll need to do the > registration in some other way than login.config. > > -- > Mark Raynsford | https://www.io7m.com > >