Calling APIs Registered in digiRunner with Basic Auth

After obtaining the client registration in digiRunner, TSP can utilize the associated permissions stored within this client to call APIs registered in digiRunner.

Workflow

Example request:

Parameters with details:

Parameter
Type
Requirement
Description

client_secret_2

String

Required

1. After registering the client ID with digiRunner, append ":" and the client password, then encode it in Base64 and use it as the Value.

2. Example:

Client ID: tspclient

Client Password: tsp123abcd

Formula for generating the value:

Base64 Encode(ClientID+":"+Client Password)

Base64 Encode(tspclient:tsp123abcd)

Output for client_secret_2:

dHNwY2xpZW50OnRzcDEyM2FiY2Q=

Example of Error Response

If the client password is incorrect, a 401 Unauthorized HTTP status code and JSON response will be returned.

Example:

Was this helpful?