简体   繁体   English

Apache Shiro 和 SSO

[英]Apache Shiro and SSO

Apache Shiro is a Java security framework and support SSO. Apache Shiro 是一个 Java 安全框架并支持 SSO。 And I have multiple sub-domains, each of which has separate application running.我有多个子域,每个子域都有单独的应用程序运行。 How can I use Apache Shiro web filters(or any other) to provide single sign on.我如何使用 Apache Shiro Web 过滤器(或任何其他过滤器)来提供单点登录。

Should I need a SSO server or service (like CAS?) before I use Apache Shiro ?在使用 Apache Shiro 之前,我是否需要 SSO 服务器或服务(如 CAS?)? Or Apache Shiro do not need SSO server or service (like CAS) ?或者 Apache Shiro 不需要 SSO 服务器或服务(如 CAS)?

Thanks谢谢

I am not Shiro expert, but I will try to help you.我不是 Shiro 专家,但我会尽力帮助你。
According to my understanding Shiro does not provide SSO service out of the box.据我了解,Shiro 不提供开箱即用的 SSO 服务。 You need to use CAS filter as SSO service.您需要使用 CAS 过滤器作为 SSO 服务。 Please look the following page that explain you how to define Shiro CasFilter: http://shiro.apache.org/cas.html请查看以下解释您如何定义 Shiro CasFilter 的页面: http ://shiro.apache.org/cas.html

为了让 Shiro 支持 SSO,Cas 现在已被弃用,您需要使用buji-pac4j库来支持使用多种协议(如 SAML、OpenIdConnect 等)的 SSO。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM