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
- Tenant Admin, Secondary Admin, or Trusted Issuer Manager (write/delete). Trusted Issuer Viewer may read.
- Access token with the matching scopes:
cidaas:trusted_issuer_readcidaas:trusted_issuer_writecidaas:trusted_issuer_delete(delete and revoke grant)
- Partner issuer URL over HTTPS (no userinfo, query, or fragment).
- At least one allowed scope that already exists in the tenant scope catalog.
- Optional: app
clientIdvalues 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" }
]
}'
| Field | Required | Description |
|---|---|---|
issuer | Yes | HTTPS issuer URL. Stored as the resource id. |
allowedScopes | Yes | Non-empty list of scopes that may be minted from this issuer’s assertions. |
isActive | No | When omitted on create, the issuer is stored inactive (false). Set true to enable. |
grants | No | Clients 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:
- Parses the JWT and requires
iss,sub, and headerkid. - Looks up an active trusted issuer for
iss. - Checks the calling client is in that issuer’s
grants. - Loads keys from OIDC discovery for that issuer and verifies the signature.
- Bounds requested scopes to the issuer’s
allowedScopesand the client’s allowed scopes. - Resolves the cidaas user for
suband mints tokens.
Troubleshooting
| Symptom | Typical cause | What to do |
|---|---|---|
| 404 on management APIs | Impersonation feature off | Enable the feature for the tenant |
| 409 on create | Issuer already registered | Update the existing record or delete first |
invalid_grant / issuer not registered | Missing or inactive registry entry | Create/activate the issuer; check iss spelling |
invalid_grant / could not retrieve signing keys | JWKS unreachable or discovery failure | Check partner JWKS HTTPS and discovery document |
unauthorized_client | Client not in grants | Add a grant for that clientId |
Explore related topics
Contact cidaas support or [email protected].