Authentication
Authentication methods confirm who is calling your endpoint. Enable one or more under Settings > Developer Settings > Webhooks > Security Settings > Authentication.
Basic Authentication
You can protect your webhook endpoint with a username and password using HTTP Basic Authentication. To do this, enable Basic Authentication and enter the username and password your endpoint will validate against.
Note: The credentials are Base64-encoded and sent in the Authorization header with every webhook request.
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
// How the Basic Auth header is constructed:
credentials = "username:password"
encoded = base64(credentials)
header = "Basic " + encoded
OAuth 2.0
Authenticate your webhook using OAuth 2.0. Zoho Sign fetches an access token from your token URL using the Client Credentials grant, then sends it as a Bearer token in the Authorization header with every webhook request.
- Enable OAuth 2.0 and select the Provider.
- Enter the Token URL, Client ID, and Client Secret.
- (Optional) Enter a Scope.
- (Optional) Under Additional Parameters, add any custom name/value pairs to be sent as-is in the token request body (for example, audience). Click the + icon to add more.
Note: OAuth 2.0 and Basic Authentication cannot be enabled together; enabling one disables the other.
Example authorization header:
Authorization: Bearer <access_token>
// The access token is fetched from the Token URL via the Client Credentials
// grant using the Client ID/Secret, and cached until it expires.
Mutual TLS (mTLS)
You can authenticate your webhook endpoint using client certificates for mutual TLS verification. To do this, enable Mutual TLS (mTLS) and provide your certificate in one of two formats:
- Client Certificate (.pem) and Private Key (.pem / .key), plus the Key password if your key is encrypted; (or)
- A PFX / P12 Certificate file, plus its Key password.
Note: Only one of the two formats of the client certificates can be active at a time.
You can attach custom HTTP headers to every webhook request for additional authentication or routing.
To do this:
- Enable Custom Request Headers and enter a Header Name and Header Value.
- To add another header, click the + icon. You can add up to five custom headers.
Integrity
Integrity options confirm that the payload is genuine and unaltered. Configure them under Settings > Developer Settings > Webhooks > Security Settings > Integrity.