SenseCrypt Docs
API ReferenceOIDC applications

Revoke a client certificate

POST/v1/admin/oidc-apps/{client_id}/revoked-certificates

Revokes one client certificate the application presents, for example a tls_client_auth certificate its CA issued that must stop working before it expires. Send the certificate or its thumbprint. From then on the application cannot authenticate with it or bind a new token to it, the refresh tokens bound to it are revoked, and an access token already bound to it is refused. It cannot be undone: the client needs a new certificate.

It is accepted whatever the application authenticates with today, because an application that stopped using certificates can still hold tokens bound to one.

Authorization

ManagementToken
AuthorizationBearer <token>

An access token of a machine-to-machine application, from the token endpoint with the client credentials grant. Send it as Bearer and the token, or as DPoP and the token with a DPoP proof when the application's tokens are DPoP-bound.

In: header

Path Parameters

client_id*Client ID

The application's client ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A client certificate to revoke for this application. Send the certificate the client presents (certificate_pem) or its SHA-256 thumbprint (thumbprint, the x5t#S256 value a certificate-bound token carries in cnf), not both. From then on the application cannot authenticate with that certificate or bind a new token to it, and a token already bound to it is refused and introspects as inactive. The certificate may be expired. A CA certificate is refused: to stop a CA, rotate the trust anchor.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/oidc-apps/string/revoked-certificates" \  -H "Content-Type: application/json" \  -d '{}'
Example responses
{  "id": "string",  "thumbprint": "string",  "subject_dn": "string",  "issuer_dn": "string",  "serial_number": "string",  "not_after": "2019-08-24T14:15:22Z",  "reason": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "revoked_by": "string"}
{  "error": "unauthorized",  "message": "Invalid management token"}
{  "error": "forbidden",  "message": "Missing capability: auth_users:update",  "capability": "auth_users:update"}
{  "error": "not_found",  "message": "Tenant not found"}
{  "error": "string",  "message": "string"}
{  "error": "validation_error",  "message": "Request validation failed",  "details": [    {      "loc": [        "body",        "name"      ],      "msg": "Field required",      "type": "missing",      "field": "name",      "code": "missing"    }  ]}
{  "error": "rate_limited",  "message": "Too many attempts. Please wait and try again",  "retry_after_seconds": 30}