小编Jan*_*und的帖子

如何在 MFA(Azure 应用程序代理)后面使用 Git?

我有一个测试设置,Bitbucket 服务器在 Intranet 上运行,并通过 Azure 应用程序代理发布,以允许在使用 MFA 时访问 Internet。

\n\n

这对于 Web 界面来说效果很好,我已经能够通过将新的 cookie 从 Web 会话复制到http.cookiefile来确认 git 功能来确认 git 功能。

\n\n

然而,我希望能够使用 Microsoft 的git-credential-manager来处理 MFA 步骤,但到目前为止还没有运气。如果我理解正确的话,凭证管理器永远不会介入,因为我从未因缺乏凭证而被拒绝。相反,我的 git 客户端会重定向到 login.microsoftonline.com。

\n\n
\xe2\x97\x8b git clone https://git.foo.bar/scm/foo/example.git\nCloning into \'example\'...\nfatal: unable to update url base from redirection:\n  asked for: https://git.foo.bar/scm/foo/example.git/info/refs?service=git-upload-pack\n   redirect: https://login.microsoftonline.com/xxxx-some-guid-xxxx/oauth2/authorize?response_type=id_token&client_id=....\n
Run Code Online (Sandbox Code Playgroud)\n\n

有人对如何让它发挥作用有什么建议吗?

\n\n

参考:

\n\n\n

git bitbucket azure azure-devops

8
推荐指数
0
解决办法
1405
查看次数

标签 统计

azure ×1

azure-devops ×1

bitbucket ×1

git ×1