Concurrence access to jsf page with JAAS

93 Views Asked by At

I set security for web application with WildFly JAAS security domain. I have a page with some properties and want to make single user access to for this page.

example: /secured/property.xhtml Ted is login and went to this page. Other user can not login or can login but do not have access to this page an will be redirected to /secured/sorry.xhtml with "Sorry Ted now use property page". When Ted left the page Tobi access to this page and for other users access will be locked again and they will be redirected to sorry.xhtml page.

I was trying to make this with filter and singleton bean with user presence flag. but I failed because JAAS login interceptor works before my filter and user after login redirects on the page even if its in use.

How can I do such concurrency access?

0

There are 0 best solutions below