A customer IdP token is not automatically a gateway credential. Use the
organization sign-in settings shown by Forge for supported interactive clients.
Use a configured attribution verifier when an application sends an IdP token
alongside its gateway key.
Create and rotate a gateway key
- In Gateway, configure a provider and an active access profile with the intended routes and model allowlist.
- Create a gateway key for that profile. Set its subject and limits for the application or workload that will use it.
- Copy the key when it is shown and store it in the application’s secret manager. Provider API keys stay in the provider connection; do not give clients the upstream provider credential.
- Test model discovery and a small inference request with the same key.
- When rotating, install and test the replacement key before revoking the old key. A revoked key must stop authorizing new requests.
Interactive sign-in settings
Gateway → Connect an app → Connection details and manual setup shows the values for the selected application and environment.
Supported clients use the authorization-code flow with PKCE. The setup file
contains public connection settings and no shared employee secret. Each person
completes their own sign-in. Refresh behavior belongs to the client and issuer.
Forge verifies the token signature, issuer, expiration, audience, registered
client, and selected organization. Tokens issued for another API or environment
do not grant inference access.
Organization and directory identity
Interactive inference requires all of the following:- The selected sign-in organization is linked to the Forge organization.
- The signed-in account is linked to an existing Forge user and organization membership.
- The membership is linked to an active directory identity.
- The person’s managed-access identity is active.
- A current assignment authorizes the selected active access profile.
Direct requests and automatic network selection
For direct Gateway requests, organization sign-in can provide several eligible profiles.X-Forge-Gateway-Profile explicitly selects one; without it, the most
specific assignment set to Use by default under Direct requests applies. Conflicting direct-request defaults
require an explicit selection, and selecting a profile never grants access.
See Profile selection.
Automatic network access is separate. In Manage access, only assignments
with Network traffic set to Use automatically participate. Forge selects
an explicit person or workload assignment first, then one matching group
assignment, then the organization default. Multiple eligible assignments at the
winning level block automatic access. An unusable winning assignment does not
fall back to another profile, a lower level, a direct-request default or a request
header.
API clients use hostedOnly for Direct requests only and hostedDefault
for Use by default under Direct requests. Omit either property to preserve its current
value when editing an assignment.
Keep one assignment eligible at each intended network scope. For example, use
Leadership Team for automatic traffic and choose Direct requests only
on General Use. General Use remains available through an authorized direct
Gateway request with its profile selector. Overlapping groups can still create
ambiguity; an explicit person assignment takes precedence over those groups.
Turning off network access does not remove direct access or its budget, and
the profile’s models, providers and request restrictions remain in effect.
Gateway-key attribution
An application can send a verified end-user token inX-Forge-Identity-JWT
while authenticating with its gateway key. Configure the token issuer,
audience, JWKS URL, and claim mappings before relying on that identity.
Unverified identity headers do not establish user or group permission. This
attribution method is separate from the interactive access token used by
Claude Desktop and other supported organization-sign-in clients.
Diagnose a denied request
See Connect apps to Forge for client setup and
Claude Desktop with Forge for deployment.