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 |
| ||
IDaaS Akless Alibabacloud Adapter |
| ||
IDaaS Core Alibabacloud Authentication Plugin |
| ||
IDaaS Pam Client |
|
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:
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. |
|
Akless | Associate RAM roles with IDaaS. At runtime, your application obtains STS tokens through IDaaS to access cloud resources — no static AccessKeys required. |
|
Credential Management | Create credentials or credential providers (OAuth 2.0, JWT) in IDaaS. At runtime, your application retrieves and uses these credentials through IDaaS. |
|
Agent ID | An agent acts as a client application, authenticating through multiple methods to obtain outbound credentials securely. |
|
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
IDaaS Core SDK requires a configuration file:
Language
Documentation
Java
Python
When using IDaaS OpenAPI authentication, complete the RAM permission policy configuration in Alibaba Cloud. For details, see Alibaba Cloud OpenAPI authentication.
In the Agent ID scenario, configure the agent as a client application:
In the configuration file, set
client_idto the agent's Agent ID and configure the agent's authentication method.If using IDaaS OpenAPI authentication, set the
ApplicationIdfield in theResourceof the permission policy to the agent's Agent ID.