I use Spring Security in my web application and I use Javaconfig for this. We recently added SAML Spring authentication to the application, and finally got the job done after some hurdles. Inside WebApplicationInitializer onStartUp (), I load the SpringSecurity or SpringSaml configuration based on some preconditions.
Now, how can I do this dynamically? In fact, I will talk about the button, and as soon as the administrator clicks on this admin button, all users will be logged out and the context should be rebooted. At the moment, is this normal if the system is once unavailable and it re-initializes the application context (in fact, this is my goal)?
In other words, how can I call the onStartUp() WebApplicationInitializer ?
source share