CAS客戶端票據分發問題

    1. 使用memcached解決票據分發
    • 導入jar文件

    <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-client-support-distributed-ehcache</artifactId> <version>3.1.9</version> <scope>compile</scope> <type>jar</type>web

</dependency> - 2. 在客戶端web.xml文件中 <filter> <filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> <init-param> <param-name>proxyGrantingTicketStorageClass</param-name> <param-value>org.jasig.cas.client.proxy.MemcachedBackedProxyGrantingTicketStorageImpl</param-value> </init-param> </filter> - 3. 安裝memcached,而且在classpath目錄下建立/cas/casclient_memcached_hosts.txt 文件格式是<hostname>:<ports> 啓動memcached,啓動客戶端項目就能夠解決退出問題了memcached

具體能夠查看https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+in+a+Distributed+Environmentspa

相關文章
相關標籤/搜索