Implement Authentication tokens for the git client

未关闭
#38 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

该 issue 未指明文件、测试或入口点。首先定位 GitProxy UI 账户页面,以及处理 Clone、Pull 和 Push 请求的代理路径;追踪用户和仓库授权是如何表示的。完成的标准是:用户可以获取 token,通过 git client 使用它,并在不让代理存储 Git 凭据的情况下,持续以透明方式通过目标 Git server 的身份验证。

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

描述

enhancement protocol

The developers git client uses the target GIT servers authentication/authorization mechanism - and this is pass-through/transparent to the proxy.

  • We need to tie the developer making a 'push' or 'pull' with a GitProxy user (which ties to the corporate account)
  • We cannot interfere with the authentication with the target git-server (i.e. GitHub)
  • We do not want to hold Git credentials for the user

Therefore a Proxy user will be issued a token -

Getting a Token before working with the proxy through a git client

  1. The developer logs into the GitProxy UI, navigates to their account page
  2. The user enacts 'get token' - this reveals a token to the user. e.g. abc12345
  3. Through the users git-client the user will run (replace finos/git-proxy.git with the repo they want to work with)
git remote add origin https://[email protected]/finos/git-proxy.git

When Clone, Pull, Push requests are made through the proxy, the proxy will take the token and tie that to the git-proxy user. The proxy will then check that the token is valid and the user is allowed to work with the repository.

主要语言
TypeScript
星标
263
派生
185
平均合并
2 天 15 小时
30 天内合并 PR
39

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

finos/git-proxy 的其他 Issue

查看 finos/git-proxy 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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