Create Trust
CreateTrust creates a trust policy for a service principal. Validates the CEL condition_expression at creation time.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Path Parameters
The service principal ID to create the trust for (from URL path).
Body
The WorkloadFederationServiceCreateTrustRequest message.
IP allowlist for token exchange requests matching this trust. Accepts IPv4 (e.g. 10.0.0.0/24) or IPv6 (e.g. 2001:db8::/32) CIDRs.
CEL expression evaluated against JWT claims. Must return bool. Compiled and validated before storage.
A description of what this trust policy matches.
The display name for the trust.
JWT claim names from the subject token to copy into the issued C1 token.
The provider this trust references.
Scoped role IDs. Effective permissions = min(SP roles, trust.scoped_role_ids).
Response
Successful response
The WorkloadFederationServiceCreateTrustResponse message.
WorkloadFederationTrust represents a per-SP trust policy that references a tenant-level provider and defines a CEL condition for claim matching.