linkis icon indicating copy to clipboard operation
linkis copied to clipboard

[Feature][Linkis-Gataway] clear expired cookies when user login

Open leeebai opened this issue 1 year ago • 1 comments

Search before asking

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

Problem Description

When the domain name of linkis gateway is switched, the logged in users will fail to authenticate most of the interfaces because they hold cookies of expired domain names

Description

Whenever the linkis login interface is called, the cookies in the linkis login state under all levels of domain names are cleared

Use case

  1. The linkis domain name is set to wds. linkis. gateway. domain. level = 3

  2. The user logs in to www.linkis.com and calls the login interface

  3. The user obtains a token whose domain is www.linkis.com

  4. The linkis domain name is set to wds. linkis. gateway. domain. level = 2

  5. The user logs in www.linkis.com again and calls the login interface

  6. Automatically clean the tokens corresponding to the links under all domain names

  7. Write a token with a new domain of .linkis.com

solutions

No response

Anything else

No response

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

leeebai avatar Aug 11 '22 08:08 leeebai

:blush: Welcome to the Apache Linkis (incubating) community!! We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

WeChat Group:

image Mailing Lists:

name description Subscribe Unsubscribe archive
[email protected] community activity information subscribe unsubscribe archive

github-actions[bot] avatar Aug 11 '22 08:08 github-actions[bot]