Reputation: 21
I find out the official demo about the pac4j for JEE: jee-pac4j-demo in github (https://github.com/pac4j/jee-pac4j-demo)
The configuration for each Authentication mechanisms have defined in the org.pac4j.demo.jee.DemoConfigFactory, refer to the picture below: org.pac4j.demo.jee.DemoConfigFactory
However, many configs are hardcode in the ConfigFactory which is not flexible, is it any ways to define those configs in a property file such as oidc.properties / samls.properties, then we can load these properties and set to the ConfigFactory in order to adapt to diff environment (dev/sit/uat/prod).
Expect to define configs in external property file(s) such as oidc.properties / samls.properties, then we can load these properties and set to the ConfigFactory instead of hardcode configs in the implementation of ConfigFactory
Upvotes: 0
Views: 137
Reputation: 2699
You can of course implement your own loading of properties in the DemoConfigFactory
via the loading of a java.util.Properties
component.
But you also have many other options:
pac4j-config
moduleDelegatingFilterProxy
)Upvotes: 0