GithubHelp home page GithubHelp logo

Comments (2)

kawhii avatar kawhii commented on August 14, 2024

由于最近比较忙,没来得及处理问题,望谅解。
我给出的建议可以是这样:

  1. org.jasig.cas.client.authentication.AuthenticationFilter下的属性casServerLoginUrl配置为客户端的登录地址
  2. 客户端登录页用iframe嵌套这cas的登录页,但service路径要处理好,也就是需要把该参数给到iframe的路径中
  3. 当在客户端登录后,也就是在cas的中登录成功后302回top页面,这个需要特殊处理

需解决问题:

  1. cas的iframe嵌套需要允许否则不能打开
  2. 302回客户单需要对iframe进行处理否则还停留在iframe中

from sso.

X-rapido avatar X-rapido commented on August 14, 2024

@kawhii 楼主好,根据您提出的方案我们在上周做了相关尝试,如果子系统A,B,C没有经过前后端分离,使用Iframe这种方式还是可以的。

另外看到有关JWT的方式,请问下大哥有没有好的思路或Demo来实现多项目之间SSO效果。这样,就可以不使用Iframe嵌套方式了。

我自己看了下官网,流程图是可以看明白的,但是在代码编写上,通过RestAPI方式获取到CAS自动产生的JWT字符串之后,不太明白接下来该怎么操作了,比如Client怎么来验证JWT正确性。

您若有时间可以随时跟我沟通,非常感谢。

参考文章
1、https://apereo.github.io/cas/5.2.x/installation/Configure-ServiceTicket-JWT.html
2、http://blog.csdn.net/cuo9958/article/details/53580466

from sso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.