Forum Discussion

gvr_'s avatar
gvr_
Occasional Visitor
2 years ago

How to use basic authorization on all requests with multiple endpoints

Hi all. Hopefully someone can help me out with this, to make it easier to create and maintain project files.

 

I'm using SoapUI 5.7.0 with a project with multiple rest resources in it. For each resource I defined a couple of endpoints with different credentials per endpoint. I have the "Authenticate Preemptively" option enabled in Preferences. Because of the fact that the credentials are different per endpoint I don't want to assign one endpoint with autorization to all requests. When I would do that, and I want to switch endpoint for a request, I manually have to change the inheritted credentials.

To succesfully execute requests I have to enable the basic authorization.

Is there a way to default enable basic auth for all requests in a project? The only way I know is doing a find/replace with a (multiline) text editor. Maybe there's a possibility with global properties or some scripting? 

No RepliesBe the first to reply