我有一个测试设置,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=....\nRun Code Online (Sandbox Code Playgroud)\n\n有人对如何让它发挥作用有什么建议吗?
\n\n参考:
\n\n\n