Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] dss访问qualitis和schedulis组件能够实现免密登录 #954

Closed
2 tasks done
xyh15864643181 opened this issue Sep 16, 2022 · 5 comments
Closed
2 tasks done
Labels
enhancement New feature or request

Comments

@xyh15864643181
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

每次从dss访问qualitis和schedulis都需要进行一次登录,对于多个用户就非常麻烦,没有实现用户隔离情况

Description

No response

Use case

No response

solutions

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@xyh15864643181 xyh15864643181 added the enhancement New feature or request label Sep 16, 2022
@zqburde
Copy link
Contributor

zqburde commented Oct 8, 2022

参考这个pr #960 修改,并将数据库中表dss_appconn_instance的enhance_json字段改为{"reqUri":"qualitis/api/v1/redirect"}

@coombe
Copy link
Contributor

coombe commented Oct 8, 2022

schedulis:
参考这个pr #960
重新编译部署schedulis的appconn后,修改表dss_appconn_instance的enhance_json字段改为{"reqUri":"schedulis/api/v1/redirect"}
在azkaban-web-server的LoginAbstractAzkabanServlet类的131行:

if (hasParam(req, "logout")) 里追加:

            final Cookie sessionId = new Cookie(SESSION_ID_NAME, "");
            sessionId.setMaxAge(0);
            sessionId.setPath("/");
            resp.addCookie(sessionId);

session超时后还会跳到登录页面,暂时是修改
azkaban.properties里的session.time.to.live配置项调大session超时时间
感觉应该还有更好的方法,希望大佬补充!

@906460
Copy link

906460 commented Nov 10, 2022

按照上面的建议《参考这个pr #960 修改,并将数据库中表dss_appconn_instance的enhance_json字段改为{"reqUri":"qualitis/api/v1/redirect"}》, 仍然不能免密登陆。

@zqburde
Copy link
Contributor

zqburde commented Nov 15, 2022

@906460 可以看下跳转时候的后台日志

@zqburde
Copy link
Contributor

zqburde commented Nov 27, 2022

在DSS1.1.1中已将该问题完全修复,具体做法只需要修改数据库中dss_appconn_instance表。针对schedulis,enhance_json字段为{"reqUri":""},homepage_uri字段为 /manager ;针对qualitis enhance_json字段为{"reqUri":""},homepage_uri字段为 #/dashboard 。其他地方均无需改动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants