How can we validate token for customer

Hi,

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.

Comments

  • OmarROmarR Posts: 224 admin
    edited January 3

    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?

  • jithenderreddyjithenderreddy Posts: 3

    token is dynamic and it is in the header value.

  • OmarROmarR Posts: 224 admin
    edited January 3

    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.

  • jithenderreddyjithenderreddy Posts: 3

    thank you

Sign In or Register to comment.