亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - CAS單點登錄接入service可以是多的嗎?
怪我咯
怪我咯 2017-04-18 10:26:18
0
1
382

CAS單點登錄接入service可以是多的嗎?

也就是說service 參數(shù)是否支持?jǐn)?shù)組?

還有認(rèn)證的服務(wù)必須是https開頭的嗎。為什么http:開頭的就不能了?

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(1)
PHPzhong

serviceId 支持正則表達式匹配規(guī)則,向如下的表達式即支持https/http所有的請求。如果這還無法滿足樓主的需求可以自己實現(xiàn)RegisteredService.

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^(https|http)://.*",
  "name" : "HTTPS and IMAPS",
  "id" : 10000001,
  "description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.",
  "evaluationOrder" : 10000
}

The certification authority service can be configured using http的方式。修改時注意修改cookie.secure.
Ticket Granting Cookie

cas.tgc.secure=false

Otherwise, the cookie setting will not be successful when using http, because only https can be used when secure is true . httpcookie設(shè)置不成功,因為securetrue時只能使用https。
不過現(xiàn)在使用https也很好,像StartSSL與其它SSL廠商也提供了免費的SSLBut it’s also good to use https now, as StartSSL and other SSL vendors also provide free SSL certificates .


Login has been implemented in cas, and there are 2 modes. We use back-end exit, that is, when the user clicks to log out cas, it will request the corresponding application server to exit. cas會請求對應(yīng)的應(yīng)用服務(wù)器進行退出。
SingleSignOutFilter
其實就是在請求地址上增加一個特殊的參數(shù),filterSingleSignOutFilter

In fact, it adds a special parameter to the request address. If filter finds this parameter, it will log out in the current application. ??
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template