Create a role
- Open TrustGate → Identity → Roles (or the roles section for your gateway).
- Create a role and set a Name.
- Bind the registries this role may use.
- Optionally set model policies (allowed models + default) per registry.
- For MCP, set MCP policies / toolkit grants as needed.
- Define OIDC mappings — which token claims select this role (for example
groupsorroles, with equals / contains rules). - On the consumer, set routing mode to Identity-based and attach the role(s). Ensure the consumer has an OIDC (or OAuth2) credential.
What a role defines
How selection works
- A client calls an identity-based consumer with
Authorization: Bearer <oidc-jwt>. - TrustGate validates the token (issuer, audience, JWKS, scopes).
- Token claims are matched against each attached role’s OIDC mapping.
- The matched role’s registries, model policies, and MCP policies govern that request.