CAS(Central Authentication Service)——windows上簡單搭建及測試

來源:互聯網
上載者:User

標籤:ptr   dvr   esc   mob   srm   pbm   swp   acm   tsp   


入手文章,大神繞行。


一。服務端搭建


        我使用的服務端版本號碼為:cas-server-3.4.11-release.zip。解壓之後,將\cas-server-3.4.11-release\cas-server-3.4.11\modules\cas-server-webapp-3.4.11.war檔案改名為cas.war,放置到tomcat的Tomcat\webapps檔案夾下,之後啟動tomcat。


       之後進入*****\Tomcat\webapps\cas檔案夾,改動兩個設定檔:

          1。改動Tomcat\webapps\cas\WEB-INF\deployerConfigContext.xml檔案:

<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"p:httpClient-ref="httpClient" p:requireSecure="false"/>
         2,改動Tomcat\webapps\cas\WEB-INF\spring-configuration\ticketGrantingTicketCookieGenerator.xml檔案:

           

<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"p:cookieSecure="false"p:cookieMaxAge="-1"p:cookieName="CASTGC"p:cookiePath="/cas" /></beans>

      之後在瀏覽器中輸入:http://localhost:8099/cas/login ,進行測試。開啟cas登入頁,輸入usernamepassword都為1,進行登入。(CAS-server的預設驗證規則:僅僅要username和password同樣就認證通過)。


   


當出現:



     表示Server端已經ok了。






    

      

CAS(Central Authentication Service)——windows上簡單搭建及測試

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.