You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/04/03 04:50:56 UTC

[GitHub] [incubator-linkis] CCweixiao opened a new issue #1897: [Feature] [1.1.1] When a GatewaySSOUtils user successfully logs in to generate a cookie, it does not directly set the second-level domain name, but adds a configuration switch. The default configuration is false.

CCweixiao opened a new issue #1897:
URL: https://github.com/apache/incubator-linkis/issues/1897


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.
   
   
   ### Problem Description
   
   When a GatewaySSOUtils user successfully logs in to generate a cookie, it does not directly set the second-level domain name, but adds a configuration switch. The default configuration is false.
   GatewaySSOUtils 用户登录成功生成cookie时,不直接设置二级域名,而是加一个配置开关,默认该配置为false
   
   ### Description
   
   The linkis service is deployed in the intranet environment, and the gateway IP: port is mapped in the form of domain name A. This domain name A is configured for proxy forwarding during front-end development. The domain of the front-end browser is localhost, and the domain where the Gateway generates cookies is set to domain name A. As a result, the front-end cannot receive the cookies generated by the back-end, and the remaining interfaces always report 401 errors.
   
   linkis服务部署在内网环境,网关IP:端口以域名A的形式映射出来,前端开发时配置此域名A进行代理转发,前端浏览器的domain是localhost,Gateway生成Cookie的domain设置的是域名A,这样导致前端无法接收到后端产生的Cookie,导致其余接口始终报401错误。
   
   ### Use case
   
   _No response_
   
   ### solutions
   
   用户登录状态Cookie设置时二级域名设置时用配置控制,默认False
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org