Forum Discussion

gpeeters's avatar
gpeeters
Occasional Contributor
12 years ago

Basic authentication on project level

Dear support.

I use soapui Pro 5.0
I have 3 environments : dev, test and stage
Each environment has its REST service endpoint
I specified login and password at service endpoint level

<service endpoint> <user> <password> COMPLEMENT

When I send a REST request with dev environment, no credentials are sent with it, so I get back a 401.

I enabled "Authenticate Preemptively in soapui HTTP preferences

I would expect the request I send takes over login and password from service endpoint.
It does not.

What am I missing?
Do I have to specify something at each request level?
Goal is to run test suite on Jenkins with soapui pro plugin for each environment.
But as long as authentication is not working I'm not able to.

thanks,

Geert Peeters

1 Reply

  • Hi,

    You need to configure WS security,
    http://www.soapui.org/SOAP-and-WSDL/app ... urity.html

    Project > WS-Security configurations
    Add Outgoing WS-Security configurations

    Go to environments > REST Services > Outgoing WSS > Select the profile

    and click Ok and then try to run the testcase.

    When you add environments on project level you need to add authentication information on project level.

    Thanks,
    Jeshtha