This release is a pre-release and may not be stable for production use.
cloud-idaas-core-alibabacloud-authentication-plugin
简体中文 | English
Authentication plugin for IDaaS (Identity as a Service) core SDK, providing Alibaba Cloud EIAM integration for machine-to-machine authentication.
Features
- Alibaba Cloud EIAM Integration: Seamlessly integrates with Alibaba Cloud EIAM service for OAuth2 token generation
- Plugin Architecture: Implements the
PluginCredentialProviderinterface fromcloud-idaas-core - Automatic Registration: Auto-registers as a plugin via entry points configuration
Requirements
- Python >= 3.9
- Dependencies:
- cloud-idaas-core >= 0.0.2b0
- alibabacloud_eiam20211201 >= 2.13.2
Installation
pip install cloud-idaas-core-alibabacloud-authentication-plugin
Quick Start
1. Configuration File
Create a configuration file ~/.cloud_idaas/client_config.json:
{
"idaasInstanceId": "your-idaas-instance-id",
"clientId": "your-client-id",
"issuer": "your-idaas-issuer-url",
"tokenEndpoint": "your-idaas-token-endpoint",
"scope": "your-requested-scope",
"openApiEndpoint": "eiam.[region_id].aliyuncs.com",
"authnConfiguration": {
"identityType": "CLIENT",
"authnMethod": "PLUGIN",
"pluginName": "alibabacloudPluginCredentialProvider"
}
}
2. Use in code
from cloud_idaas.core import IDaaSCredentialProviderFactory
# Initialize (automatically loads configuration file)
IDaaSCredentialProviderFactory.init()
# Get credential provider
credential_provider = IDaaSCredentialProviderFactory.get_idaas_credential_provider()
# Get access token
access_token = credential_provider.get_bearer_token()
print(f"Access Token: {access_token}")
Configuration Details
Complete Configuration Example
{
"idaasInstanceId": "idaas_xxx",
"clientId": "app_xxx",
"issuer": "https://xxx/api/v2/iauths_system/oauth2",
"tokenEndpoint": "https://xxx/api/v2/iauths_system/oauth2/token",
"scope": "api.example.com|read:file",
"openApiEndpoint": "eiam.[region_id].aliyuncs.com",
"authnConfiguration": {
"identityType": "CLIENT",
"authnMethod": "PLUGIN",
"pluginName": "alibabacloudPluginCredentialProvider"
},
"httpConfiguration": {
"connectTimeout": 5000,
"readTimeout": 10000
}
}
Configuration Items
| Configuration Item | Type | Required | Description |
|---|---|---|---|
| idaasInstanceId | string | Yes | IDaaS instance ID |
| clientId | string | Yes | Client ID for authentication |
| issuer | string | Yes | OAuth2 issuer URL |
| tokenEndpoint | string | Yes | OAuth2 token endpoint URL |
| scope | string | No | Requested scope |
| openApiEndpoint | string | Yes | Alibaba Cloud EIAM OpenAPI endpoint |
| authnConfiguration | object | Yes | Authentication configuration |
| httpConfiguration | object | No | HTTP client configuration |
Plugin Configuration
To use this plugin, set the authnMethod to PLUGIN and specify the plugin name:
{
"authnConfiguration": {
"identityType": "CLIENT",
"authnMethod": "PLUGIN",
"pluginName": "alibabacloudPluginCredentialProvider"
}
}
Support and Feedback
- Email: cloudidaas@list.alibaba-inc.com
- Issues: Please submit an Issue for questions or suggestions
License
This project is licensed under the Apache License 2.0.
Metadata
Release files for cloud-idaas-core-alibabacloud-authentication-plugin 0.0.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1.tar.gz | 9.3 kB | With provenance | Details for cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1-py3-none-any.whl | Python 3 | none | any | Details for cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1-py3-none-any.whl |
Total release size: 19.6 kB
Release files / cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1.tar.gz
| Download URL | cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89d62b560f445bde368149d37186cdc181f5f640170fc111b8fd6c090bdf3f01
|
|
BLAKE2b-256 checksum How to use checksums |
5e6aae9edbe63e18635db94d49ab70ec42e303ed9e4341a175225e8e488bafb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logRelease files / cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1-py3-none-any.whl
| Download URL | cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b47427b1ffb658449ec369bcd807d0007d24dee5f64886baa2e360336497e486
|
|
BLAKE2b-256 checksum How to use checksums |
27a5a7ffcdcbb440cdef74aaeb5218025db86f8e4494b249cc74b5fd51375352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logSecurity for cloud-idaas-core-alibabacloud-authentication-plugin 0.0.1b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cloud_idaas_core_alibabacloud_authentication_plugin-0.0.1b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.