从GitHub上托管的Spring Cloud Config Server访问回购的身份验证问题 [英] Authentication issue with repo accessed from Spring Cloud Config Server hosted on GitHub
本文介绍了从GitHub上托管的Spring Cloud Config Server访问回购的身份验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在GitHub上的仓库中托管配置.如果我将回购交易公开,那么一切都会很好,但是如果我将其私有化,我将面临:
I'm hosting a configuration in a repo on GitHub. If I keep the repo public all's good, but if I make it private I face:
org.eclipse.jgit.errors.TransportException:
https://github.com/my-user/my-repo:
Authentication is required but no CredentialsProvider has been registered
我用于定位回购协议的属性是
the property I use to target the repo is
spring.cloud.config.server.git.uri=https://github.com/my-user/my-repo
我应该怎么做才能用私人仓库正确配置它,谢谢
What should I do to configure this properly with the private repo, thanks
推荐答案
您需要添加
spring.cloud.config.server.git.username=your_github_username
spring.cloud.config.server.git.password=your_github_password
事情应该为您锻炼
这篇关于从GitHub上托管的Spring Cloud Config Server访问回购的身份验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文