Manage Identity Providers
When an agent's endpoint is secured with OAuth, callers must send a token, and the gateway checks the token before it forwards the call to the agent. An identity provider is a token issuer that the gateway trusts. Adding an identity provider lets the callers of your agents use tokens from your own identity provider, for example the one your organization's applications already sign in with.
Identity providers are set for each environment. A token that the gateway accepts in one environment is not automatically accepted in another, so you can trust a test identity provider in development without trusting it in production.
These identity providers secure the calls that come into your agents. They are separate from:
- The sign-in to the Console, which is managed for your organization.
- Agent ID, the identity that an agent uses when it calls out through the gateway.
Decide whether you need an identity provider
The managed gateway already trusts the built-in DefaultKeyManager. Add an identity provider when:
- The applications or users that call your agents already get tokens from another identity provider, and you want the gateway to accept those tokens.
- You want different environments to trust different token issuers.
Add an identity provider
An identity provider is added to a gateway, for one of the environments that the gateway serves.
-
At the organization level, in the left navigation, under Infrastructure, click Gateways, and then click the gateway.
-
Under Token Issuers, click Add identity provider. The Add Identity Provider panel opens for the gateway.
-
Enter the following:
Field Description Example Environment The environment in which the gateway trusts the identity provider. DevelopmentName A name that identifies the identity provider. AcmeIdPDiscover from URL (optional) The URL of the identity provider, or its .well-knownURL. Click Fetch to fill in Issuer and JWKS URI from the provider's OpenID configuration.https://idp.example.comIssuer The issuer URL. The gateway accepts tokens whose issuer matches this value. https://idp.example.comJWKS URI The URL from which the gateway gets the keys to check the signature of the tokens. https://idp.example.com/oauth2/jwksIf your identity provider publishes an OpenID configuration, use Discover from URL instead of entering Issuer and JWKS URI yourself. This avoids mistakes in the URLs.
-
Select Skip TLS verification when fetching JWKS (trusted internal only) only if the identity provider is an internal one that you trust and its certificate cannot be verified.
-
Click Add.
The identity provider is listed under Token Issuers on the gateway's details page, with its environment. For more information on gateways, see Manage AI Gateways.
Next steps
- To secure an agent's endpoint with tokens from the identity provider, see Secure Agents with JWT Authentication.
Was this page helpful?