Skip to main content
An auth is how a client proves it may act as a consumer. Create entities under Identity → Auth, then attach them to consumers. Distinct from a registry’s upstream credential (how TrustGate calls the model provider or MCP server). Manage entities at Agent Gateway → Identity → Auth. Attach them on the consumer Auth tab, or during consumer create. Roles live on the other Identity tab — see Roles.

Types

An Identity-based LLM consumer carries exactly one identity auth (OIDC or OAuth2).

API keys

  1. Identity → Auth → New Auth → API Key, or create the key on the consumer Auth tab.
  2. Set expiry (Never, 30 days, 90 days, 1 year). Copy the secret once.
  3. Use it in requests or in the consumer Connect snippets.
Keys are prefixed ag_. TrustGate stores a hash; the secret cannot be recovered. Rotate by creating a new key, updating clients, then revoking the old one.

OAuth2 setup modes

OIDC fields: issuer, JWKS URL, audiences, required scopes, allowed algorithms, subject claim, optional public keys / certificate constraints.

Two IdP patterns

Same Okta or Entra tenant can back both. They are two TrustGate auth types, not two IdPs.

Rules for every provider

  • Audiences is required and must match the token’s aud claim.
  • Required scopes must not include openid, profile, email, or offline_access.
  • Scope matching uses scp/scope and Auth0/Entra-style permissions and roles arrays.
  • Interactive MCP: Setup → Interactive login · IdP with discovery, Session mode off, Okta app type Web Application (not API Services).
  • JWKS URL can stay under Token validation · advanced; TrustGate resolves keys from the issuer when needed.

Provider manuals

Okta

Custom authorization server, scopes, groups claim, and both app patterns.

Entra ID

App registration, exposed API scopes, app roles, and both app patterns.