Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does JBoss cache authentication information?

When testing various authentication solutions (my own LoginModule etc) in JBoss, it seemed to me that sometimes when I redeployed a change or otherwise provoked the login form to show, that JBoss didn't actually call the authentication module.

Just wondering if there is some type of short term caching going on?

I tested both from a web application (taking care to delete cookies etc) and from a fat RMI java client.

Of course, If I restarted JBoss, the full authentication process was followed.

Is there a cache, and if so, can it be disabled for development purposes?

like image 627
Brummo Avatar asked Jul 16 '09 17:07

Brummo


People also ask

How does JBoss Cache work?

JBoss Cache is a replicated and transactional cache. It is replicated since multiple JBoss Cache instances can be distributed (either within the same JVM or across several JVMs whether they reside on the same machine or on different machines on a network) and data is replicated across the whole group.

What is auth cache?

User authentication caching refers to storing the users' Verify credentials in Verify after their first-time successful authentication. Enable and configure the caching of user credentials to improve performance and to avoid any impact on user login during an MaaS360® release downtime.


1 Answers

Yes, JBoss caches authentication information by default for a few minutes.

To disable caching, set DefaultCacheTimeout to 0 in the configuration for the JaasSecurityManagerService. The configuration is in the "jboss-service.xml" file.

For more info and various ways to flush the cache, see CachingLoginCredentials at jboss.org.

like image 198
Brummo Avatar answered Oct 11 '22 20:10

Brummo