Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAS相关的问题 #8

Open
Manpj opened this issue Jul 4, 2017 · 1 comment
Open

CAS相关的问题 #8

Manpj opened this issue Jul 4, 2017 · 1 comment

Comments

@Manpj
Copy link

Manpj commented Jul 4, 2017

我想自己重新写一下单点登录流程,可是看网上的CAS配置都是需要证书,而这个项目里面的CAS是不需要证书的,可以说说要打包出这个项目里面的CAS.war需要那些步骤么,还有带证书和不带证书的CAS区别是啥呢?

@tinybyhuang
Copy link
Owner

tinybyhuang commented Dec 12, 2017

ticketGrantingTicketCookieGenerator.xml
<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator" p:cookieSecure="false" p:cookieMaxAge="-1" p:cookieName="CASTGC" p:cookiePath="/cas" />
设置cookieSecure 为false就去掉了https的验证了,带不带证书的区别在于是否需要使用https加密,现在一般的网站都需要使用https,而启用https是需要私钥跟证书的,而我们更多的做法是前端使用nginx做负载均衡(采用https),后面的服务器如tomcat(采用http)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants