杞绘澗鎼缓CAS 5.x绯诲垪-鐧诲綍鍚庢樉绀洪€氱煡淇℃伅

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了杞绘澗鎼缓CAS 5.x绯诲垪-鐧诲綍鍚庢樉绀洪€氱煡淇℃伅相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e7%bc%96%e5%86%99' title='缂栧啓'>缂栧啓   github   racket   rup   楠岃瘉   lse   瀵嗙爜   seconds   art   

姒傝堪璇存槑


鐢ㄦ埛鍦ㄨ处鍙峰悕瀵嗙爜璁よ瘉閫氳繃鍚庯紝CAS鍙互璺宠浆鍒扮櫥闄嗗畬鎴愰〉闈㈠墠锛屾樉绀虹浉鍏崇殑閫氱煡椤甸潰銆?/span>

鎼缓姝ラ


`1. 棣栧厛锛屾偍闇€瑕佹湁涓狢AS Server绔?/strong>

濡傛灉鎮ㄦ病鏈夛紝鍙互鎸夌収鎴戜箣鍓嶅啓鐨勬枃绔犮€婅交鏉炬惌寤篊AS 5.x绯诲垪鏂囩珷銆嬬郴鍒楃殑鍓?绡囨枃绔犳惌寤哄ソCAS Server銆?/span>

 

`2. 鍦╬om.xml澧炲姞渚濊禆鍖?/strong>

1         <!-- Authentication Interrupt Begin -->     
2         <dependency>
3           <groupId>org.apereo.cas</groupId>
4           <artifactId>cas-server-support-interrupt-webflow</artifactId>
5           <version>${cas.version}</version>
6         </dependency>
7         <!-- Authentication Interrupt End -->  

 

-3. 缂栧啓涓柇鐨勯厤缃枃浠?/strong>

D:casoverlaycas-overlay-templatesrcmain esourcesinterrupt.json

{
  "admin" : {
    "message" : "Announcement message <strong>goes here</strong>.",
    "links" : {
      "Go to Location1" : "https://www.location1.com",
      "Go to Location2" : "https://www.location2.com"
    },
    "block" : false,
    "ssoEnabled" : false,
    "interrupt" : true,
    "autoRedirect" : false,
    "autoRedirectAfterSeconds" : -1
  }
}

 

`4. application.properties澧炲姞閰嶇疆鏂囦欢

1 cas.interrupt.json.location=classpath:/interrupt.json

 

-5. OK锛屽彲浠ユ墦鍖呬簡

1 mvn package

 

-6. 鎵撳寘鍚庢墦targetcas.war閮ㄧ讲鍒皌omcat

 

鎼缓OK浜嗭紝鎴戜滑鏉ラ獙璇佷笅鍔熻兘

 

鍔熻兘婕旂ず


鍚姩tomcat锛岀湅涓嬫晥鏋?/span>

鎶€鏈垎浜浘鐗? src=

 

鍙傝€冩枃绔?/strong>


1.CAS涓枃鏂囨。绔欑偣#notifications

 

鏈€鍚庯紝澶у鎯虫洿澶欳AS浜嗚В鐨勮瘽锛屽彲浠ユ潵CAS涓枃鏂囨。绔欑偣锛?span class="token link">http://www.cassso-china.cn锛夋潵鐬呯瀰

鎶€鏈垎浜浘鐗? src=

 



以上是关于杞绘澗鎼缓CAS 5.x绯诲垪-鐧诲綍鍚庢樉绀洪€氱煡淇℃伅的主要内容,如果未能解决你的问题,请参考以下文章

sparksql绯诲垪(涓€)鐜鎼缓

鏂伴椈鐧诲綍椤甸潰鍒朵綔

jQuery瀹炰緥-璁颁綇鐧诲綍淇℃伅

Spring+ Spring cloud + SSO鍗曠偣鐧诲綍搴旂敤璁よ瘉

java 鎵弿寰俊鍏紬鍙蜂簩缁寸爜锛屽叧娉ㄥ苟鐧诲綍閫昏緫

娣卞叆瀛︿範 Redis绯诲垪