Skip to main content

Resources

A ResourceResourceThe downstream system registered in a Project. Its kind (Token exchange or OAuth client) decides the role AIGW plays. tells AIGW what system or application is being integrated and, critically, what role AIGW should play. Choosing the Resource kind is therefore an architectural choice, not just a ConsoleAIGW ConsoleThe AIGW developer dashboard (DevCon) where you manage Accounts, Projects, Resources, agents, and policies. preference.

Each Resource receives its own AIGW Resource configuration, including a per-resource authorization-server/issuer boundary and signing-key/JWKS information.

Choose the Resource kind​

Resource kinds

Resource kindPrimary scenarioAIGW's roleTypical developer
Token exchangeAgent acts through MCP/UCP on behalf of a user and ultimately needs access to a merchant APIAIGW handles user/agent authorization and obtains/manages a merchant access token accepted by the merchant's Authorization Server/APIMCP/UCP provider or merchant building an agent-facing service
OAuth clientTraditional human sign-in to an applicationAIGW acts as the application's IdP/authorization service and gives the application OAuth/OIDC client configurationWeb/mobile application developer
Simple decision

Building an MCPMCPModel Context Protocol: a standard way for AI agents to call tools and data sources exposed by a server./UCP for agent access? → Token exchange

Adding human sign-in where AIGW is the IdP? → OAuth client

Token exchange Resource​

Use Token exchange when the downstream merchant API has its own authorization system and the MCP/UCP service needs a merchant credential representing the authorized user.

Conceptually:

Token exchange: AIGW bridges the agent's authorization to the merchant's own tokenAgentAI clientMCP / UCPYour serviceAIGWAuthorizationMerchant ASExisting IAMMerchant APIBackend1Obtain merchant tokenat user sign-in2Merchant token3Call with AIGW token4RedeemPOST /api/credentials/token5Merchant access token6Call merchant API
Token exchange: AIGW bridges the agent's authorization to the merchant's own token

The Resource tells AIGW:

  • which merchant Resource is being requested;
  • which merchant Authorization Server/token endpoint to use;
  • which client identity AIGW uses there;
  • which authentication/grant mechanism to use;
  • which scopes/permissions are relevant;
  • which AIGW identity providers may authenticate the human user.

Wizard steps​

StepFields
1. Identity & endpointResource kind, Display name, Resource indicator / audience, Issuer URL, Token endpoint
2. AuthenticationClient ID, Client authentication (private_key_jwt, client_secret_basic — which adds a Client secret field — or token_exchange)
3. Exchange & scopesIdentity providers (optional), Requested scopes (scope value, display name, display description)
4. ReferenceValues to hand to the merchant IAM team and the agent developer

Token exchange Resource

Important inputs​

InputSourcePurpose
Resource indicator/audienceMerchant API/IAM ownerExact downstream Resource identifier. The Console notes it is sent as the resource and must match what the resource expects as its audience; later used during credential redemption
Merchant issuer URLMerchant OAuth/OIDC metadataIdentifies the merchant Authorization Server (often a different host than the Resource indicator)
Merchant token endpointMerchant OAuth/OIDC metadataEndpoint AIGW calls to obtain/exchange the downstream credential
Client IDMerchant IAM client registrationIdentifies AIGW to the merchant AS
Client authenticationAgreed with merchant IAMDetermines how AIGW authenticates and represents the user
ScopesMerchant API/IAMDefines requested downstream permissions

Reference outputs​

The Reference step (and the bottom of the Resource's Configuration tab) groups outputs by audience:

Token exchange reference

GroupValues
For token exchange — hand to whoever verifies subject tokens for this ResourceExpected aud of subject token, client_id AIGW presents, Client authentication, Authorization server (per-resource issuer). Plus Download oauth-protected-resource.json.
For the agent — hand to the agent developerJWKS URI to verify signature, Discovery endpoint (OIDC), Discovery endpoint (OAuth AS metadata), OAuth2 authorization endpoint (GET, per-resource), OAuth2 token endpoint (POST, core)

Each section has Copy all and per-value copy buttons.

See Configure AIGW for field-by-field setup and current implementation support.

OAuth client Resource​

Use OAuth client when a conventional application wants to authenticate a human through AIGW. In this model, AIGW is the IdP/authorization service for the application rather than a bridge to a merchant Authorization Server.

Conceptually:

OAuth client: AIGW is the application's identity providerUserBrowserApplicationYour appAIGWIdentity provider1Sign in2Redirect to authorizeAuthorization Code (+ PKCE)3User authenticates and consents4Code → OAuth / OIDC tokens5Signed in
OAuth client: AIGW is the application's identity provider

Wizard steps​

StepFields
1. Identity & endpointResource kind, Display name
2. Client configurationRedirect URIs (one or more), Token endpoint auth method, Allowed scopes
3. Identity providersOptional selection of Account-enabled IdPs
4. ReferenceClient secret (shown once) and the values for the application

OAuth client settings

Input/choiceWhat it meansWhere it comes from / how to use it
Redirect URIsApplication callbacks allowed to receive the authorization responseYour application; register each exact callback URL (Add redirect URI for more than one)
Token endpoint auth methodHow the application authenticates when calling the token endpoint: client_secret_basic, client_secret_post, or none (PKCE)Use none (PKCE) for public clients (SPA/mobile) and a secret-based method for confidential server-side clients. Shown read-only after creation
Allowed scopesIdentity information/permissions the application may request: openid, profile, email, phone, offline_accessChoose the scopes the application needs (openid is selected by default)
Identity providersWays the human may authenticate through AIGWSelect AIGW IdPs appropriate for the application

The Reference step returns the OAuth client information and AIGW endpoints the application needs.

OAuth client reference

Outputs​

AIGW outputWhat it isHow the application uses it
Client secret, when applicableOAuth client credential — shown once and can't be retrieved againStore server-side immediately and use only with the configured client-authentication method
Client ID AIGW issuedOAuth client identifierSent in authorization/token requests
Redirect URIsEcho of the registered callbacksConfirm they match the application
Agent authorization endpointPer-resource /oauth2/auth URLStart sign-in
Discovery endpoint (OIDC) / Discovery endpointPer-resource .well-known/openid-configuration and .well-known/oauth-authorization-serverDiscover protocol metadata (including the core token endpoint)
Authorization serverPer-resource AIGW issuer base URLConfigure as the OAuth/OIDC authority

Resource list​

ProjectProjectThe isolation boundary for an integration. It holds Resources, agents and agent policy, end users, and Proxy clients. → Resources lists each Resource with its kind badge, status (Active), and a summary: the token endpoint and client authentication for Token exchange ResourcesToken exchange ResourceA Resource for agent access: AIGW authorizes the user and obtains a token from the merchant's own authorization server., or the client ID, redirect URIs, and auth method for OAuth client ResourcesOAuth client ResourceA Resource for ordinary human sign-in, where AIGW acts as the application's identity provider..

Resource settings after creation​

A Resource detail page has three tabs:

  • Configuration — editable identity, endpoint, client, identity-provider, and scope settings, followed by the Reference values and a Danger zone with Delete resource;
  • Signing keysSigning keyA per-Resource ES256 key AIGW uses to sign assertions sent to the merchant authorization server, published at the Resource JWKS URL. — ES256 signing keys/JWKS used for Resource assertions (see Signing keys);
  • Sign-in & consent — user-facing branding/consent behavior (see Identity providers).

Token exchange Resource detail

Current behavior to be aware of:

  • The Resource is created when you click Continue on wizard step 3; step 4 displays Reference values. A signing key is generated automatically at the same time.
  • A Test exchange button appears on the Reference step and the Configuration tab, but currently produces no visible result.
  • Deleting a Resource is permanent: agents using it can no longer exchange tokens for it.