SDK overview

Updated at:

IDaaS EIAM provides SDKs for machine-to-machine (M2M) applications across four scenarios: Generic OAuth 2.0, Akless (no AccessKey), credential management, and Agent ID. Select the SDK that matches your scenario, then follow the setup guide.

Available SDKs

The following table lists each SDK, its capabilities, and supported languages.

SDK

Capabilities

Language

Github

IDaaS Core SDK

  • Obtains access tokens for M2M client applications using multiple authentication methods.

  • Supports token exchange for access tokens with different audience or scope identifiers.

Java

Python

Go

TypeScript

Java

Python

Go

TypeScript

IDaaS Akless Alibabacloud Adapter

  • Uses the IDaaS Core SDK to perform M2M client application authentication and obtain access tokens.

  • Retrieves temporary STS tokens for IDaaS-managed Alibaba Cloud roles, eliminating static AccessKeys.

Java

Python

Go

TypeScript

Java

Python

Go

TypeScript

IDaaS Akless AWS Adapter

  • Uses the IDaaS Core SDK to perform M2M client application authentication and obtain access tokens.

  • Retrieves temporary access credentials for IDaaS-managed AWS roles, eliminating static access keys.

Java

Python

Go

TypeScript

Java

Python

Go

TypeScript

IDaaS Akless Tencent Adapter

  • Uses the IDaaS Core SDK to perform M2M client application authentication and obtain access tokens.

  • Retrieves temporary access credentials for IDaaS-managed Tencent Cloud roles, eliminating static access keys.

Java

Python

Go

TypeScript

Java

Python

Go

TypeScript

IDaaS Core Alibabacloud Authentication Plugin

  • Authenticates IDaaS OpenAPI calls using Alibaba Cloud credentials (AccessKey/SecretKey or STS token).

  • Currently supports the Alibaba Cloud extension plugin only.

Java

Python

Go

TypeScript

Java

Python

Go

TypeScript

IDaaS Pam Client

  • Uses the IDaaS Core SDK to perform M2M client application authentication and obtain access tokens.

  • Retrieves credentials managed by IDaaS.

  • Obtains access tokens through credential providers managed by IDaaS.

Java

Python

TypeScript

Java

Python

TypeScript

Scenarios and Required SDKs

Each scenario requires one or more SDKs. Find your scenario and install the listed SDKs.

Scenario

Description

Required SDKs

Generic OAuth

M2M client applications authenticate using standard or federated methods to obtain access tokens.

Supported authentication methods:

  • Standard (OpenID Connect (OIDC)/OAuth 2.0): CLIENT_SECRET_BASIC, CLIENT_SECRET_POST, CLIENT_SECRET_JWT, PRIVATE_KEY_JWT

  • IDaaS federated extensions: PKCS#7, OIDC, PCA

Supported environments: local development, Alibaba Cloud ECS, Kubernetes, Function Compute, and others.

In environments where federated credentials (PKCS#7, OIDC) are unavailable — such as serverless functions or restricted runtimes — IDaaS supports OpenAPI-based authentication. Add the IDaaS Core Alibabacloud Authentication Plugin to authenticate with Alibaba Cloud AccessKey/SecretKey or STS tokens.

  • IDaaS Core SDK

  • IDaaS Core Alibabacloud Authentication Plugin (optional, for OpenAPI authentication)

Akless

Associate cloud roles with IDaaS, such as Alibaba Cloud RAM roles, AWS IAM roles, and Tencent Cloud CAM roles. At runtime, your application obtains temporary cloud credentials through IDaaS to access cloud resources — no static access keys required.

  • IDaaS Core SDK

  • IDaaS Akless adapter (choose by cloud vendor)

Credential Management

Create credentials or credential providers (OAuth 2.0, JWT) in IDaaS. At runtime, your application retrieves and uses these credentials through IDaaS.

  • IDaaS Core SDK

  • IDaaS Pam Client

Agent ID

An agent acts as a client application, authenticating through multiple methods to obtain outbound credentials securely.

  • IDaaS Core SDK

  • IDaaS Pam Client

In the Akless scenario, permission carriers, adapters, and temporary credentials differ by cloud vendor. Select the adapter that matches your cloud vendor:

Cloud vendor

Adapter SDK

Alibaba Cloud

IDaaS Akless Alibabacloud Adapter

AWS

IDaaS Akless AWS Adapter

Tencent Cloud

IDaaS Akless Tencent Adapter

Prerequisites and Setup Notes

Before you begin, ensure that you have:

  • An active IDaaS EIAM instance

  • An M2M application registered in IDaaS

  • (For OpenAPI authentication) The required RAM permission policy configured in Alibaba Cloud

  1. IDaaS Core SDK requires a configuration file:

    Language

    Documentation

    Java

    Python

    Go

    TypeScript

  2. When using IDaaS OpenAPI authentication, complete the RAM permission policy configuration in Alibaba Cloud. For details, see Alibaba Cloud OpenAPI authentication.

  3. In the Agent ID scenario, configure the agent as a client application:

    • In the configuration file, set client_id to the agent's Agent ID and configure the agent's authentication method.

    • If using IDaaS OpenAPI authentication, set the ApplicationId field in the Resource of the permission policy to the agent's Agent ID.