On 25/03/2024 01:36, Justin Bertram wrote:
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.
That's not great, to be honest. I'm essentially building what amounts to a reusable library that embeds a broker. Although I doubt many people would be creating multiple broker instances in the same application when using the library, it would mean that the library would have to set that system property (which might conflict with something the user has already set for their own application), and then create a file in the filesystem that otherwise wouldn't exist, and multiple brokers would likely step on each other's state.
Is there no other way to pass in a list of login modules? -- Mark Raynsford | https://www.io7m.com