All Products
Search
Document Center

:Outbound authorization for third-party service nodes

Last Updated:Oct 22, 2026

Outbound authorization for third-party service nodes is a security control capability of Agent ID Guard for managing agent access to external Software as a Service (SaaS) and API services. By centrally hosting OAuth 2.0 credentials and API keys, it provides fine-grained, per-agent access control to prevent credential leakage and unauthorized access.

Overview

As AI agent technology becomes more widely used, agents need secure access to various external services, including large model services, third-party SaaS services, and internal enterprise services. Authorization management for third-party service nodes is a core Agent ID Guard capability. It is designed for third-party SaaS services and provides security controls for external SaaS and API calls.

  • Credential support: Supports OAuth 2.0 and static API keys. Agent ID Guard automatically acquires and refreshes OAuth tokens, so agents do not need to handle protocol details.

  • Centralized encrypted hosting: All credentials are stored in the Agent ID Guard credential service and encrypted by Alibaba Cloud KMS, preventing secrets from being scattered.

  • Isolation and least privilege: Outbound authorization is established based on agent identities, and credentials are fully isolated to prevent unauthorized access.

  • Low-code integration: Developers need only a credential identifier to obtain access permissions, which greatly reduces integration and maintenance costs.

Core concepts

Concept

Description

Agent node

A machine identity hosted by Agent ID Guard that corresponds to an underlying M2M (Machine-to-Machine) application.

Third-party service node

An outbound node in an agent workflow that represents an external third-party service. Each node is associated with one OAuth credential provider or API key credential.

OAuth credential provider

Applies to third-party services that support OAuth 2.0, such as GitHub and GitLab. Agent ID Guard automatically manages OAuth access token acquisition, so agents do not need to handle OAuth protocol details.

API key credential

Applies to third-party services that authenticate with a static key, such as Amap MCP Server. Agents obtain the API key directly by using the credential identifier.

Credential identifier

The unique identifier of a credential. Agent code uses the credential identifier to obtain the corresponding plaintext value.

Outbound authorization

The authorization between an Agent node and a third-party service node. It includes functional authorization and data authorization. Only agents with established outbound authorization can obtain credentials for the third-party service.

Functional authorization

Controls the operations that an agent can perform. The system automatically completes functional authorization when an agent is registered, granting the agent permission to obtain credentials.

Data authorization

Controls which specific OAuth credential provider or API key credential an agent can obtain. It is defined by rules in the form of associated identity + authorized asset. When an agent is registered, the system automatically creates an authorization rule for the agent. After you add a third-party service node, the credential is automatically added to the rule, granting the agent permission to obtain the credential.

Credential management

Outbound authorization for third-party service credentials is closely integrated with credential lifecycle management:

  • When adding a node:

    • Both the Client Secret of an OAuth service and the API key of a third-party service are hosted in the Agent ID Guard credential service. The credentials are protected by Alibaba Cloud Key Management Service (KMS) encryption. When an API key or Client Secret is stored in KMS, it is encrypted into ciphertext by using industry-standard encryption algorithms and protected by a dedicated hardware security module.

    • The system automatically adds the credential to the dedicated authorization rule of the agent, and the authorization takes effect immediately.

  • When deleting a node: The system automatically removes the credential from the dedicated authorization rule of the agent. Access is revoked immediately, but the credential itself is not deleted and remains available to other agents.

  • Automatic OAuth token management: For OAuth credential providers, Agent ID Guard automatically handles access token acquisition and caching. Agents obtain a valid token with each request and do not need to implement the OAuth protocol flow.

  • When rotating a key: When an administrator updates an API key or an OAuth credential provider in the credential service, all associated agents automatically obtain the new credential the next time they request it. No individual notification or redeployment is required.

Prerequisites

Procedure

Step 1: Add a third-party service node

  1. Go to the IDaaS EIAM console.

  2. Click Agent Identity Security, and then go to the Agent ID Guard list page.

  3. Select the target agent. In the Operation column, click Edit. On the agent details page, click the Agent module in the flow diagram at the bottom of the page.

  4. Confirm that Agent identity registration is complete (a green checkmark icon appears to the right of the Agent module name). You can then add an enterprise service node.

  5. In the upper-right corner of the topology diagram, click Add Node and select External Service from the pop-up menu.

    Note

    Each third-party service node is associated with one credential (an OAuth credential provider or an API key). If an agent needs to access multiple third-party services, add a separate third-party service node for each service.

Step 2: Configure third-party service credentials

In the configuration panel of the third-party service node, select an OAuth credential provider or a static API key credential based on the authentication method of the third-party service. The two credential types differ in authentication mechanism, lifecycle management, and security.

  • OAuth is better suited to complex use cases with high security requirements. Its "temporary token" and "automatic refresh" mechanisms eliminate the risk of long-term key exposure and allow fine-grained control over what an agent can do. Agent ID Guard hosts the complex OAuth flow, so agents do not need to implement token acquisition and refresh logic.

  • Static API keys are better suited to simple, internal, or low-risk use cases. They are easy to integrate but lack fine-grained control and automatic rotation. Therefore, they must be hosted in Agent ID Guard with centralized encryption and access control to compensate for their limited native security.

  • In OAuth mode, Agent ID Guard obtains an OAuth token on behalf of the agent before returning it. In API key mode, Agent ID Guard directly returns the hosted static API key. For agents, both modes use the same invocation method: obtain credentials by using the credential identifier.

Configure an OAuth credential provider

On the OAuth Credential Provider tab, select Add OAuth Credential Provider as needed, or enter a name to select an existing OAuth credential provider.

  • Add OAuth Credential Provider:If the OAuth credential provider required by your business is not in the OAuth credential provider list, click Add OAuth Credential Provider and enter the following information:

    Parameter

    Description

    Example

    Credential Provider Name

    The name displayed in the console.

    GitHub OAuth

    Description

    Describes the purpose of this credential.

    GitHub API OAuth credential for managing code repositories

    Credential Provider Identifier

    The unique identifier of the credential. Agents use this identifier to obtain the OAuth access token.

    github-oauth

    Client ID

    The OAuth client ID for the third-party service.

    Ov23lixxxxx

    Client Secret

    The OAuth client secret for the third-party service.

    a1b2xxxxx

    Token Endpoint

    The OAuth token endpoint for the third-party service.

    https://github.com/login/oauth/access_token

    Default Scope

    The OAuth permission scope for the third-party service.

    repo read:org

  • Select an existing OAuth credential provider: If the OAuth credential provider required by your business already exists in the OAuth credential provider list (for example, another agent is already associated with the same OAuth credential provider), select it directly from the list.

Configure an API key credential

Switch to the API Key Credential tab, select Add API Key Credential as needed, or enter a name to search for and select an existing API key credential.

  • Add API Key Credential:If the API key credential required by your business is not in the API key credential list, click Add API Key Credential and enter the following information:

    Parameter

    Description

    Example

    Credential Name

    The name displayed in the console.

    Amap MCP Server key

    Description

    Describes the purpose of this credential.

    Amap MCP Server API key for map service calls

    API Key Identifier

    The unique identifier of the credential. Agents use this identifier to obtain the plaintext API key.

    amap-apikey

    API Key Value

    The plaintext API key for the large model service. After you enter it, it is encrypted and stored through KMS.

    sk-xxxxx

  • Select an existing API key credential: If the API key credential required by your business already exists in the API key credential list (for example, another agent is already associated with the same API key credential), select it directly from the list.

Step 3: Complete outbound authorization (automatic)

After you select or create a credential, the system automatically adds the credential to the dedicated authorization rule of the agent. No manual configuration is required.

Afterward, you can confirm the following in the topology diagram:

  • An outbound authorization connection appears between the Agent node and the third-party service node, indicating that the authorization is established.

  • Click the connection to view the authorization details, including the associated credential identifier and status.

Note

To revoke an agent's access permissions to a third-party service, delete the corresponding third-party service node. The system automatically removes the credential from the dedicated authorization rule.