Channels
apidays
wiremock-studio
wiremock-go
cdk-avengers
general
introduce-yourself
random
wiremock-cloud
help
wiremock-java
announcements
community-operations
spec
wiremock-dotnet
outreach-and-advocacy
documentation
wiremock-python
Powered by
#help
Title
r
Rahul Verma
06/18/2023, 3:20 PM
Hi folks, just want to know is it possible to enable basic authnetication for all the stubs at one go or at wiremock instance level instead of individual stubs
b
Bas Dijkstra
06/18/2023, 5:23 PM
Hey
@Rahul Verma
, you can do that by creating a custom request filter and loading that when you start your WireMock instance. An example can be found in this repo:
https://github.com/basdijkstra/wiremock-extensions
This video explains what and how, check around the 19 minute mark:
https://www.youtube.com/live/ubmy7DwNqcU?feature=share
Let me know if you need anything else.
Post