coder / coder/code-server

Improve authentication flow with auth token

未关闭
#3,546 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement security
主要语言
TypeScript
星标
79.3k
派生
6.8k
平均合并
2 天 6 小时
30 天内合并 PR
41

描述

Add token exchange. Create token on server and use as a cookie on the client.

We should use this as a default and issue a deprecation warning to anyone using the old methods.

See: https://github.com/cdr/code-server/pull/3422#issuecomment-853297900

**Edit**: VS Code web already has token auth that we disable, could we make use of this? Then it should be pretty easy.

贡献指南

打开贡献指南

调研方向

首先查看所链接 pull request 的讨论,以及 VS Code web 现有的令牌身份验证。然后跟踪当前服务器和客户端的身份验证方法,再定义令牌交换和 Cookie 流程。完成的标准是令牌身份验证成为默认方式,旧方法发出弃用警告,并且现有的身份验证行为仍然有覆盖。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
authentication, full-stack
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。