Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从一个带有基本身份验证的 url 消费一个契约合同文件。JVM @PactUrl 是否提供基本的身份验证选项?如果没有,有没有办法在使用“@pacturl”时在其他地方提供它?
如果您只使用基本身份验证,您不能使用@PactUrl 中的 URL 来获取用户名/密码吗?
像这样https://foo:password@example.com?
https://foo:password@example.com
话虽如此,我认为最好有一种方法对所有协议进行身份验证,这样用户名/密码就不必在整个代码库中一遍又一遍地重复。