Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding authentication headers option to PactUrl #1224

Closed
03ayush opened this issue Oct 13, 2020 · 3 comments
Closed

adding authentication headers option to PactUrl #1224

03ayush opened this issue Oct 13, 2020 · 3 comments

Comments

@03ayush
Copy link

03ayush commented Oct 13, 2020

actually i was trying to fetch pacts from a url via @PactUrl notation but the url that i am requesting needs an authorization header to authenticate but i was unable to find a way in Pacturl so as to include in the headers part..

@mefellows
Copy link
Member

You can definitely authenticate. Does this not work for you https://docs.pact.io/implementation_guides/jvm/provider/junit#using-authentication-with-the-with-the-pact-broker?

@mefellows
Copy link
Member

The authentication is for the Pact Broker, the URL is which source to use. I think you may also use a system property https://docs.pact.io/implementation_guides/jvm/provider/junit#more-java-system-properties

@uglyog
Copy link
Member

uglyog commented Oct 18, 2020

4.1.9 released with the auth options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants