For the complete documentation index, see llms.txt. You can also append .md to any page URL to get its markdown version.
Skip to main content
For the complete documentation index, see llms.txt.

For the complete documentation index, see llms.txt

Rotate an OIDC client secret

You can rotate your application's OIDC client secret using the Signicat Dashboard or the OIDC Configuration API.

An OIDC client in the Signicat Dashboard supports multiple active secrets. This allows you to rotate a client secret without downtime.

To rotate a client secret, do the following:

  1. Add a new client secret.
  2. Update and verify your application.
  3. Revoke the old secret.

1. Add a new client secret​

To add a new secret on your OIDC client, do the following:

  1. In the Signicat Dashboard, go to Products > eID and Wallet Hub > OIDC clients.
  2. Next to your OIDC client, select Edit.
  3. On the Secrets tab, select + Add secret.
  4. Enter a name for your client secret, then select Generate secret.
  5. Copy your new client secret immediately and store it securely.
Copy and store the secret immediately

Make sure you copy and store your client secret securely. You can view your client secret only once, when you generate it.

If you lose your secret or need to replace an existing one, repeat the steps in this guide.

2. Update and verify your application​

After you have generated the new secret, you need to update your application's secrets store or configuration with the new value and deploy or reload your application so all running instances use the new credential.

Before you revoke the old secret, you must verify that your application successfully completes a fresh token request through its usual OIDC flow.

To complete the verification:

  1. Start a new login in your application to trigger a fresh token request at the /auth/open/connect/token endpoint.
  2. In the Signicat Dashboard, go to Products > eID and Wallet Hub > Audit logs.
  3. Confirm that the token request succeeded and that no invalid_client errors appear for your OIDC client.
Cached tokens and active sessions

Note that existing signed-in sessions may use cached tokens that rely on the old secret. To verify that the new secret is in effect, make sure to start a new authentication session with a fresh token request.

3. Revoke the old client secret​

Once you have confirmed that your application uses the new secret successfully, you are ready to revoke the old secret. To revoke a secret, follow these steps:

  1. In the Signicat Dashboard, go to Products > eID and Wallet Hub > OIDC clients.
  2. Next to your OIDC client, select Edit.
  3. On the Secrets tab, locate the old secret and select Revoke.
  4. In the Revoke secret dialogue, enter the exact name of the old secret to confirm, then select Yes, revoke it.
Revoking a secret is permanent

Revoking a secret invalidates it immediately and cannot be undone. Applications that still use the revoked secret will fail.

Rotate a client secret with the API​

You can automate client secret rotation using the OIDC Configuration API.

Prerequisites​

Before making requests, you need to obtain an OAuth 2.0 Bearer access token using an API client with permissions to manage OIDC clients on your account. For setup instructions, see the Quick start guide for Signicat APIs.

API client permissions

Ensure that you set the following permissions for your API client:

  • OIDC Client Viewer gives read-only access to OIDC clients.
  • OIDC Client Editor gives write access to OIDC clients.

1. List existing secrets​

Optional. Retrieve the active secrets on your OIDC client to find the id of the secret you plan to revoke:

Example: List client secrets
curl --request GET https://api.signicat.com/auth/open/config/clients/<CLIENT_ID>/secrets \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Accept: application/json'

Signicat returns 200 OK with metadata for each active secret:

Example: List client secrets response
[
{
"id": "old-secret-id",
"name": "prod-secret-2026-01-15",
"version": "00000001_2a43947f32e7820a2b567c3351a37046",
"createdDate": "2026-01-15T10:20:00.0000000+00:00",
"userCreator": "1234"
}
]

2. Generate a new client secret​

Send a POST request with a descriptive name for the new secret:

Example: Generate a new client secret
curl --request POST https://api.signicat.com/auth/open/config/clients/<CLIENT_ID>/secrets \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "prod-secret-2026-12-03"
}'

Signicat returns 201 Created with the new secret id and plainText value:

Example: Generated secret response
{
"id": "new-secret-id",
"name": "prod-secret-2026-12-03",
"plainText": "fakeCl13n7S3Cr3T1234567890"
}

Store the plainText value securely right away. Subsequent GET requests return only secret metadata without the plaintext value.

3. Deploy and verify the new secret​

Roll out the plainText value to your application and confirm that authentication succeeds, following the checks in Update and verify your application.

4. Revoke the old client secret​

Once all application instances authenticate with the new secret, send a DELETE request with the id of the old secret:

Example: Revoke the old client secret
curl --request DELETE https://api.signicat.com/auth/open/config/clients/<CLIENT_ID>/secrets/<OLD_SECRET_ID> \
--header 'Authorization: Bearer <ACCESS_TOKEN>'

Signicat returns 204 No Content and invalidates the old secret immediately.