Git Product home page Git Product logo

Comments (5)

Gahon1995 avatar Gahon1995 commented on September 24, 2024 1

登录时返回写入的cookie只是对应登录页面域名的cookie,并没有保存到当前client端对应域名下的cookie,所以只能通过url携带token,通过拦截验证再次跳转的方式来将token写到当前域名的cookie中

from smart-sso.

ybbbzZ avatar ybbbzZ commented on September 24, 2024

其实这里我也一直不理解,不知道您现在有没有搞懂,搞懂的话可以解释下吗?
image

其实这里的代码逻辑对应的sso校验流程图里的-->本地token不存在,要去服务端去校验<--这一步的吧,就是下图的这部分逻辑,但为什么这里却没有走rpc调用去检测服务端是否存在token,而是从request里直接取值,百思不得其解。看到作者说request.getParameter(SSO_TOKEN_NAME)里的SSO_TOKEN_NAME是sso授权回调的参数token名称,但在哪里回调的代码又找不到,实在费解,您现在懂得话,还请指点一下。
image

from smart-sso.

ybbbzZ avatar ybbbzZ commented on September 24, 2024

@a466350665

from smart-sso.

a466350665 avatar a466350665 commented on September 24, 2024

from smart-sso.

lizhengjun1982 avatar lizhengjun1982 commented on September 24, 2024

from smart-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.