Skip to main content
Version: 4.1.0

Trusted Issuer Registry

The Trusted Issuer Registry lets you register partner or external identity providers so cidaas can verify their JWTs during token exchange (RFC 8693).

Available from cidaas 4.1.0.

Management APIs live under /apps-srv/trusted-issuers (app-srv). They require the impersonation feature to be enabled for the tenant; otherwise the API answers 404.

See also the Trusted Issuers OpenAPI reference.


Prerequisites​

  1. Tenant Admin, Secondary Admin, or Trusted Issuer Manager (write/delete). Trusted Issuer Viewer may read.
  2. Access token with the matching scopes:
    • cidaas:trusted_issuer_read
    • cidaas:trusted_issuer_write
    • cidaas:trusted_issuer_delete (delete and revoke grant)
  3. Partner issuer URL over HTTPS (no userinfo, query, or fragment).
  4. At least one allowed scope that already exists in the tenant scope catalog.
  5. Optional: app clientId values to grant which clients may use the issuer in token exchange. Each granted client must already allow those scopes.

Management API​

Path parameter {issuer} is the URL-encoded issuer URL (the natural key).

Create​

curl -X POST "https://your-tenant.cidaas.de/apps-srv/trusted-issuers" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"issuer": "https://identity.partner-enterprise.com",
"allowedScopes": ["resource:invoice:read"],
"isActive": true,
"grants": [
{ "clientId": "customer-backend" }
]
}'
FieldRequiredDescription
issuerYesHTTPS issuer URL. Stored as the resource id.
allowedScopesYesNon-empty list of scopes that may be minted from this issuer’s assertions.
isActiveNoWhen omitted on create, the issuer is stored inactive (false). Set true to enable.
grantsNoClients allowed to use this issuer. Max 500. Omit or [] for none.

Duplicate issuer → 409 (APP10137).

cidaas resolves signing keys for token exchange via the issuer’s OIDC discovery document ({issuer}/.well-known/openid-configuration) and its jwks_uri. You do not send jwks_uri on the registry record.

Search / list​

curl -X POST "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/-/search" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Filter template: GET /apps-srv/trusted-issuers/-/search.

Get / update / patch / delete​

# Get
curl -X GET "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN"

# Full replace (PUT). Omitting grants clears the grant list.
curl -X PUT "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"allowedScopes": ["resource:invoice:read", "resource:invoice:write"],
"isActive": true,
"grants": [{ "clientId": "customer-backend" }]
}'

# Delete
curl -X DELETE "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN"

Grants (per client)​

curl -X POST "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com/grants" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "clientId": "customer-backend" }'

curl -X GET "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com/grants/customer-backend" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN"

curl -X DELETE "https://your-tenant.cidaas.de/apps-srv/trusted-issuers/https%3A%2F%2Fidentity.partner-enterprise.com/grants/customer-backend" \
-H "Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN"

Token exchange (using a trusted issuer)​

Present the partner JWT as subject_token on the token endpoint with the appropriate token-exchange grant. cidaas:

  1. Parses the JWT and requires iss, sub, and header kid.
  2. Looks up an active trusted issuer for iss.
  3. Checks the calling client is in that issuer’s grants.
  4. Loads keys from OIDC discovery for that issuer and verifies the signature.
  5. Bounds requested scopes to the issuer’s allowedScopes and the client’s allowed scopes.
  6. Resolves the cidaas user for sub and mints tokens.

Troubleshooting​

SymptomTypical causeWhat to do
404 on management APIsImpersonation feature offEnable the feature for the tenant
409 on createIssuer already registeredUpdate the existing record or delete first
invalid_grant / issuer not registeredMissing or inactive registry entryCreate/activate the issuer; check iss spelling
invalid_grant / could not retrieve signing keysJWKS unreachable or discovery failureCheck partner JWKS HTTPS and discovery document
unauthorized_clientClient not in grantsAdd a grant for that clientId

Need Support?