Credential

Updated at:

IDaaS provides unified management of credentials and credential providers. Credentials that are scattered across code, configurations, or manual handoffs are stored centrally in encrypted form and granted to specified applications or users based on the principle of least privilege. Applications securely obtain and use credentials at runtime through an API or SDK, without writing plaintext credentials to local disks or hard-coding them. This reduces the risk of leaks and improves the efficiency of credential management and updates.

Concepts

Why is credential management needed?

In a digital identity architecture, an identity answers the question “who are you,” whereas a credential is the digital evidence that proves “who are you.”

With the widespread adoption of microservice architectures, the API economy, and zero-trust security models, interactions between systems are no longer limited to user sign-ins. They increasingly involve machine-to-machine or service-to-service transfers of trust. As the center of trust, IDaaS (Identity as a Service) centrally manages these credentials throughout their lifecycle.

What is a credential?

In IDaaS, a credential is a set of data or keys used to verify the identity of a principal, such as a user, a device, or an application service.

You can compare credentials with the identification documents used in everyday life:

  • A long-term credential is similar to an identity card or a house key. It remains valid for a long time, is kept by the user, and must be reported lost and reissued (rotated) if it is lost.

  • A short-term credential is similar to a hotel key card or a concert ticket. It is valid for a short time, is issued by the system, expires automatically, and usually includes a specific permission scope.

The following table compares the credential types:

Feature

Long-term credential

Short-term credential

Examples

API key, AK/SK

JWT, OAuth token

Validity period

Long-term; requires manual rotation

Short-term; expires automatically

Management method

Manage the key itself (create, view, and revoke)

Manage the issuance rules (algorithm, validity period, and issuer)

How to obtain

Obtained manually from the key issuer and saved to the client

The client automatically obtains the credential from the credential provider through a protocol such as JWT or OAuth2

Security

Relies on confidentiality; high risk of leakage

Relies on signatures and validity periods; the leakage risk is manageable

Credential categories in IDaaS

To suit different security requirements, IDaaS separates credential configuration into two interfaces: Credential Provider and Credential. Understanding the difference between them is a prerequisite for correct configuration.

Access the credential management interface

  1. Log on to the Application Identity Management console.

  2. Click the EIAM menu.

  3. Find the target EIAM instance. In the Actions column, click Console.

  4. In the navigation bar, click Asset Management > Credential.

Manage credential providers

Create a credential provider

  1. Access the credential management interface.

  2. Click the Credential Provider tab.

  3. Hover over Create Credential Provider and select OAuth or JWT.

  4. Configure the settings for the selected type.

    OAuth configuration items

    • Credential Provider Name: Used for console display only. It is not involved in the actual authentication process.

    • Description: The description. It is not involved in the actual authentication process.

    • Credential Provider Identifier: The unique identifier of the credential provider.

    • Client ID: The client identifier assigned by the OAuth credential provider. It identifies IDaaS when IDaaS sends a request to OAuth.

    • Client Secret: The client secret used together with the Client ID. It is generated by the OAuth credential provider and used by IDaaS when IDaaS sends a request to OAuth.

    • Token Endpoint: The endpoint that IDaaS uses to exchange an authorization code for a token from the OAuth credential provider.

    • Scope: The default permissions of the client application. Enter a scope and press Enter to add it. You can add multiple scopes. If the client application specifies a scope in its request, the specified scope takes precedence. If the client application does not specify a scope, the scope configured here is used.

    JWT configuration items

    Credential Provider Name: Used for console display only. It is not involved in the actual authentication process.

    Description: The description. It is not involved in the actual authentication process.

    Credential Provider Identifier: The unique identifier of the credential provider.

    Generate Short Token: When this option is turned on, an additional short token is generated along with the standard JWT-format token whenever this credential provider is called to generate a token.

    Jwt Token Expiration: The token validity period. You can specify it in minutes, hours, or days.

    Issuer Whitelist: To restrict the custom issuers in JWT requests, configure an issuer whitelist. After you configure an issuer whitelist, JWT requests from issuers that are not on the whitelist are rejected.

View a credential provider

  1. Access the credential management interface.

  2. Click the Credential Provider tab.

  3. In the Actions column of the target credential provider, click Details to view the details of the credential provider.

Modify a credential provider

  1. Access the credential management interface.

  2. Click the Credential Provider tab.

  3. In the Actions column of the target credential provider, click Edit to modify the existing credential provider.

Delete a credential provider

A credential must be disabled before it can be deleted.

  1. Access the credential management interface.

  2. Click the Credential Provider tab.

  3. In the Status column, disable the target credential.

  4. In the Actions column, click Delete to delete the existing credential.

Manage credentials

Create a credential

Host third-party application credentials in IDaaS. Credentials are stored in encrypted form by default.

To configure a credential, follow these steps:

  1. Access the credential management interface.

  2. Click the Credential tab.

  3. Hover over Create Credential and select API Key.

  4. Configure the following settings:

    • Credential Name: Used for console display only.

    • Description: The description of the credential.

    • Business Type: Select Large Language Model (LLM) or External Service. These options correspond to the Configure Agent ID Guard nodes Large Language Model (LLM) and External Service.

    • API key ID: The unique identifier of the hosted API key.

    • API Key: The hosted API key.

    • Secure Storage: Default Encrypted Credential. It is stored in Alibaba Cloud KMS Secrets Manager and cannot be canceled.

View a credential

  1. Access the credential management interface.

  2. Click the Credential tab.

  3. In the Actions column of the target credential, click the Details button to view the details of the credential.

Modify a credential

  1. Access the credential management interface.

  2. Click the Credential tab.

  3. In the Actions column of the target credential, click Edit to modify the existing credential.

    Important

    For security reasons, the original value of API Key is not displayed when you edit the credential. Leave the field blank to keep the existing key, or enter a new value to overwrite it.

Delete an existing credential

A credential must be disabled before it can be deleted.

  1. Access the credential management interface.

  2. Click the Credential tab.

  3. In the Status column, disable the target credential.

  4. In the Actions column, click Delete to delete the existing credential.

FAQ

Problem: Access the credential management interface: When you access this page, the following message is displayed: You cannot host credentials in KMS Secrets Manager because the required IDaaS EIAM service-linked role is missing. Create

Solution: As prompted, click Create to complete the authorization. You can then create credentials. Otherwise, an error occurs when you create a credential.