GithubHelp home page GithubHelp logo

Comments (10)

SpringStudent avatar SpringStudent commented on September 16, 2024 1

为了做前后端分离或者说我们有客户端给客户端开登陆接口

from sso.

kawhii avatar kawhii commented on September 16, 2024

为什么要这么考虑,使用出场景是什么?

from sso.

kawhii avatar kawhii commented on September 16, 2024

单点登录的情况下做前后端分离都是比较牵强的,没有找到一个很好的方案,目前方法可以采用rest在客户端进行调用,jwt在业务系统生成

from sso.

SpringStudent avatar SpringStudent commented on September 16, 2024

嗯,我目前的做法是开一个接口返回tgt实现,另外一个接口根据tgt和serviceId生成st,然后客户端或者浏览器铜鼓serviceId?ticket=st的方法

from sso.

SpringStudent avatar SpringStudent commented on September 16, 2024

不然只有改源码,rest接口模拟cas登录

from sso.

kawhii avatar kawhii commented on September 16, 2024

无需那么复杂,cas支持rest对接 官方文档地址:https://apereo.github.io/cas/5.1.x/protocol/REST-Protocol.html
客户端cas-client也支持这样的做法,而spring-security应该也是支持的,但我没尝试过

from sso.

SpringStudent avatar SpringStudent commented on September 16, 2024

如果是webservice方式的登录接口呢?

from sso.

kawhii avatar kawhii commented on September 16, 2024

webservice只是业务系统对外开放的一种方式,跟cas无关,只要对接上了cas。以什么方式都是一样

from sso.

SpringStudent avatar SpringStudent commented on September 16, 2024

嗯,我已经实现了

from sso.

SpringStudent avatar SpringStudent commented on September 16, 2024

感谢

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.