Create Variable Block

This block provides the ability to create multiple variables that can be used in constraint chains.


Name

Specify the name for the block.


Description

Provide a description for this block.


Creating Variables

Click on "Add New Variable" button to create a variable and fill in the following fields:

Variable Name *

Specify the variable name.

What is the Data type of this Variable?

Specify the data type for the variable from one of the following options:

  • Auto Detect (default)
  • Number
  • String
  • Boolean
  • Date
  • Timestamp

Following fields can be used to compute the variable value:


Where is the value Location? *

Select the variable value from one of the following options:

  • Headers - System will look for the variable value from Headers that are passed from resource server. The variable name that will be searched in headers for the value extraction is specified in field below.
  • Query Parameters - System will look for the variable value from Query Params that are passed from resource server. The variable name that will be searched in query paramteres for the value extraction is specified in field below.
  • Authorization Context - System will look for the variable value from the authorization Context that is passed from resource server. The variable name that will be searched in authorization context for the value extraction is specified in field below.
  • Message Context - System will look for the variable value from the current message context. The variable name that will be searched in message context for the value extraction is specified in field below.
  • AuthScope Data Services - System will look for the variable value from AuthScope Data Store. The variable name that will be searched in AuthScope Data Store for the value extraction is specified in field below.
  • Others - This option can be used to specify the attribute location in the format specified in next field.
  • Value - Use this option if you would like to specify a hard coded value for the variable. The following field can be used to specify the value.

What is the name of the Attribute that holds the value? *

Specify the attribute name that should be selected from the location above if you selected one of the following options:

  • Headers
  • Query Parameters
  • Authorization Context
  • Message Context

If you selected the "Other" option in above field then enter the attribute value as follows:

Example Inputs Value selected
messageContext.allowedGroups.name {"messageContext": {"allowedGroups": {"name" : "teller"}}} teller
authzContext.amount {"authzContext": {"amount": 10000}} 10000

if you selected the "Value" option above then specify the hard coded attribute value here. Example 10000,john.doe etc.


What is the default value, in case value is not found in the specified attribute?

Specify the default string value that should be set for this variable in case the value extracted from above selection is null.

results matching ""

    No results matching ""