Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Using Basic Auth with Parasoft Virtualize

Options
Sindhu
Sindhu Posts: 17

Hi,

I wat to use basic auth with Parasoft virtual service. I am able to add the authentication to the virtual asset, but not able to correlate the incoming request's basic auth to that I have provided in the asset. Any suggestions or a reference document please?

Answers

  • williammccusker
    williammccusker Posts: 645 ✭✭✭
    Options

    Hi,

    Normally authentication would be setup on the container/server (tomcat) level but it sounds like your use case is to have the virtual asset "perform" the authentication of the user and correlate the incoming user to some data?

  • Sindhu
    Sindhu Posts: 17
    Options

    Yes I need virtual asset to perform the authentication

  • williammccusker
    williammccusker Posts: 645 ✭✭✭
    Options

    Hi,

    There isn't an out-of-the-box option on a responder to perform "basic" auth. It could be done using a custom responder correlation that decodes the auth header and then checks if the credentials are valid.

  • Sindhu
    Sindhu Posts: 17
    Options

    Thank you William, at service level and tried it and it worked.

  • williammccusker
    williammccusker Posts: 645 ✭✭✭
    Options

    Glad to hear it worked!