-
1. Re: What is the workaround for bug [WFLY-3221] in Wildfly 8.2.0 Final?
nitin.shukla Jul 18, 2016 8:34 AM (in response to nitin.shukla)Hello,
Finally I have got this but this may not be the best way to flush the authentication cache to workaround this bug in Wildfly 8.2.0 FINAL.
Implemented the HTTPSessionListener overriding the method sessionDestroyed(). From this method issue the System Command using ProcessBuilder to call the jboss-cli.bat command as below:
jboss-cli.bat -c command="/subsystem=security/security-domain=<SECURITY_DOMAIN_NAME>:flush-cache()"
The undesired effect of this command is that it flushes full authentication cache for all users logged and not just the user whose sessions is being destroyed(expired/logging out). I could not find if the flush-cache() method above can be passed the Principal User as an argument so as to specifically flush the cache for that user. Any suggestion to flush-cache for specified user is appreciated.
Thanks.