External Authentication
External Authentication
APIs called from a third-party backend must be authenticated and authorized using a clientKey
and clientSecret
provided by Saladin. In certain scenarios where the API is called from the third party's client (e.g., mobile app or frontend), Saladin will issue a short-lived access token (approximately 10 minutes). This token allows the third-party client to securely access Saladin's APIs within a limited time frame.
Signature request
For API calls between a third-party backend and Saladin’s backend, Saladin requires a signature to identify which backend is making the request. This signature is generated by computing the SHA checksum of specific request data combined with an API secret provided to the third-party backend.
Header
X-Sld-Timestamp
the request timestamp, mesured in seconds
X-Sld-ClientKey
The client key was provided by Saladin
X-Sld-Signature
Signature is generated based on request body
How to generate the signature
Below is the pseudocode used to generate the signature:
POST request
GET request
When generating the signature:
Use only the path part of the URL (do not include the base URL).
Last updated