Relying party documentation
Document signing quickstart
Fifteen-minute validation path after SSO works and admin enabled esign_sign for your catalog client.
- Citizen completed SSO at your RP (access token available server-side)
- Citizen issued eSignature at /citizen/signing
- Admin updated OidcClients scopes (esign_sign, eid) for your RP catalog client
- EID_API_BASE_URL points to https://sxm-eid-dev.eastus.cloudapp.azure.com
- eID API DocumentSigning enabled on the server
1. Health check (ops)
curl -sS https://sxm-eid-dev.eastus.cloudapp.azure.com/api/rp/esign/health | jqExpect documentSigningEnabled, maxFileSizeBytes, and toolchain flags. This check is for operators. Do not disable the citizen PDF upload when it fails; the sign call returns the error.
2. Citizen access token
Use the access token your RP stored during WSO2 SSO. Send it only from the server. Approve, retry, migrate, and production promotion write oidc_wso2_relay_mappings with your WSO2 client id mapped to itself, which is also OidcClients.ClientId.
3. Sign a PDF
curl -sS -X POST https://sxm-eid-dev.eastus.cloudapp.azure.com/api/rp/esign/documents/sign \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "X-Sso-Client-Id: YOUR_WSO2_CLIENT_ID" \
-F "file=@sample.pdf" | jq -r '.signedDocumentBase64' | head -c 40This is the required call. Decode signedDocumentBase64 to a .pdf file. Keep the upload enabled; show error and message from this response.
4. Optional validate
curl -sS -X POST https://sxm-eid-dev.eastus.cloudapp.azure.com/api/rp/esign/documents/validate \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "X-Sso-Client-Id: YOUR_WSO2_CLIENT_ID" | jqSame headers as sign, without running the signing toolchain. COCI does not call it. Success is { "valid": true, "rpClientId": "YOUR_WSO2_CLIENT_ID" }.
5. Wire your application
Follow the stack guide: Laravel (COCI reference) or ASP.NET Core.