I am new to parasoft virtualize and wanted to know if we can validate token for particular customer? I want to see if token is matching with customer otherwise throws error message.
Welcome to the forums!
Yes, you can do this using responder correlation or data source correlation.
Is the token static?
Is the token found within the payload or as a header value?
token is dynamic and it is in the header value.
If the token is dynamic, you'll likely want to use a data source to keep a list of tokens you'll want to successfully respond to. Below is a quick example to get you started.
First, we can add a "Table" data source to keep a list of the available tokens. We then configure our responder>data source correlation to match based on request headers as shown below (Right-click>View Image).
Give this a try and let us know if you have any questions.