[英]JBoss jaas session timeout
我想在JBoss EAP 7.1.0中設置jaas會話超時。 我定義了新的安全域:
<security-domain name="management" cache-type="infinispan">
<authentication>
<login-module code="RealmDirect" flag="required">
<module-option name="realm" value="ManagementRealm"/>
</login-module>
</authentication>
</security-domain>
我修改了infinispan來設置會話超時:
<cache-container name="security" default-cache="auth-cache">
<local-cache name="auth-cache">
<eviction strategy="LRU" max-entries="1000"/>
<expiration lifespan="120000" max-idle="60000"/>
</local-cache>
</cache-container>
但是,我的jaas會話永不過期。 在我的應用程序中,我有:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>ManagementRealm</realm-name>
</login-config>
而且我的jboss-web.xml定義了安全域:
<security-domain>management</security-domain>
JBoss只問我一次密碼,然后緩存它,因此不再顯示登錄對話框。
您可能必須將本地緩存名稱設置為安全域的名稱。
<local-cache name="management">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.