You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be implemented by adding the authorization header when creating the SimpleRequest (By parsing the url with a simple regex).
Another option could be to parse the url in the implementations of IScalaPactHttpClient.
I've tried to set it up in my pact.sbt like this:
pactBrokerAddress := "http://username:password@pact-broker.local"
and whenever i run
sbt pactPublish
everything seems to go okay until the last second (when the actual publishing happens):If i replace the header here:
scala-pact/sbt-scalapact-shared/src/main/scala/com/itv/scalapact/plugin/shared/Publisher.scala
Line 39 in 602aeb0
With this (
dXNlcm5hbWU6cGFzc3dvcmQ=
is "username:password" base64 encoded):The publish works and everything is fine.
Would you like me to create a pull-request adding basic auth header to requests to a broker?
The text was updated successfully, but these errors were encountered: