Code Monkey home page Code Monkey logo

Comments (4)

wklken avatar wklken commented on May 7, 2024

发生了什么, 这一步中 登录页面 的url地址是什么?
(默认url地址中带了c_url是登录成功之后跳转的地址, 例如/login/?c_url=/app/list)

from bk-paas.

yangbojun avatar yangbojun commented on May 7, 2024

返回的ip是这个http://www.bking.com/login/?app_id=bk_cmdb&c_url=http://127.0.0.1:8083/

在cmdb的cmdb_webserver.conf配置的

from bk-paas.

yangbojun avatar yangbojun commented on May 7, 2024

简单来说就是我用cmdb调用paas的login页面实现用户登陆,但是调用到paas的login页面后输入用户名密码都会跳转到paas的用户管理页面

from bk-paas.

wklken avatar wklken commented on May 7, 2024
  • cmdb和paas是通过 cookie 共享登录态的, 所以其必须使用相同的一级域名, cmdb会取请求的cookie中的登录态, 发往paas进行登录态校验, 校验失败跳转到登录页面
  • 假设给cmdb配置 cmdb.bking.com, 才能正确跳转 c_url=http://cmdb.bking.com/

from bk-paas.

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.