Use the Custom authentication configuration tab in the Connector Development Kit to define how your connector retrieves
and manages authentication tokens. You can configure one or more steps to generate tokens, send
credentials, and map responses to connection properties.
Before you begin
Before you begin, ensure that:
- The required connection properties to be mapped are defined in the Connection
property configuration tab.
- You have the endpoint details for token generation and refresh.
Procedure
- From the Connector Development Kit home page, open
the connector that you want to work with.
- Go to the Connection Properties tab.
- Click the Custom authentication configuration tab, then click the
Add custom authentication step + button.
- Complete the steps that follow:
- In the Step title field, enter a name that describes the step
(for example, Custom authentication step 1).
- In the URL field, enter the endpoint URL for the token or
session ID. You can use mappings and numeric functions to customize the URL as
necessary.
- Select the HTTP method. Choose
GET or POST depending
on the API requirements.
- Set the content type (
application/json or
application/x-www-form-urlencoded).
- Use the Request properties section to define how the request is
constructed. You can configure the following as necessary:
- Body: The request body parameters.
- Query parameters: The value in the URL after the '?'. Used in filtering,
pagination, and search parameters.
- Header parameters: The value in the HTTP request headers. Used in
authentication tokens, custom metadata, and content negotiation.
- Cookie parameters: The value in the cookie header of the request. Used in
session management and setting user preferences.
For each property type, define the following subfields:
- Parameter name: Enter the name of the parameter as expected by the
API.
- Parameter value
Choose one of the following:
- Map to a connection property.
- Use a complex expression.
- Use an intermediate variable from a previous step.
- Enter a literal value in plain text.
- Use the Response mapping section to define how the response is
processed.
- Output parameters
Define response values to connection properties.
- Response property: Enter the name of the field in the response.
- Located in: Select BODY or HEADER depending on where the value is
returned.
- Target variable name: Select a connection property or enter a new
variable name.
- Click the Configure button.
Results
A custom authentication step is created in the Custom authentication
configuration tab. If you create multiple steps and want to update the flow, you can
drag each step to reorder.Next, configure a token renewal (refresh) step in the
Authentication renewal configuration tab. For more information, see Adding authentication renewal steps.