UpdateCredentialProvider

Updated at:

Updates a credential provider.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eiam:UpdateCredentialProvider

update

*CredentialProvider

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/credentialprovider/{#CredentialProviderId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

CredentialProviderId

string

Yes

The credential provider ID.

atp_01kr2cmj5gxxx4fvmls2e93dxxxxx

ClientToken

string

Yes

The client token that is used to ensure the idempotence of the request.

You can generate the parameter value on your client to ensure that the value is unique across different requests. The ClientToken parameter supports only ASCII characters and can be up to 64 characters in length. For more information, see References: How to ensure idempotence.

client-token-example

CredentialProviderName

string

No

The name of the credential provider.

Note

The name can be up to 64 characters in length.

test_example_name

CredentialProviderConfig

object

No

The configuration of the credential provider.

OAuthProviderConfig

object

No

The configuration of the OAuth credential provider.

ClientSecret

string

No

The client secret in the OAuth protocol.

Note

The client secret can be up to 1,024 characters in length.

client_secret_example_xxx

TokenEndpoint

string

No

The token endpoint of the OAuth protocol.

Note

The endpoint must start with http:// or https:// and can be up to 1,024 characters in length.

https://example.com/token

Scope

string

No

The scope in the OAuth protocol.

Note

The scope configuration of the OAuth credential provider serves as a fallback value. If the scope parameter is not specified when you call the Developer API to obtain an OAuth access token, the access token is issued based on the scope configuration of the credential provider.

Important Separate multiple scope values with spaces. To clear the scope configuration, enter an empty string.

The limits on a single scope value are as follows:

  1. Allowed characters: lowercase letters, digits, and the following special characters: |/:_-.

  2. The value must contain at least one lowercase letter or digit.

  3. The value must start with a period (.), a lowercase letter, or a digit.

  4. The value can be up to 1,024 characters in length.

example:test_01 example:test_02

AuthorizationFlow

string

No

The OAuth authorization flow type. Valid values:

  • m2m: machine-to-machine.

  • user_federation: user federation.

m2m

AuthorizationEndpoint

string

No

The authorization endpoint.

https://example.com/authorize

ProviderVendor

string

No

The vendor type. Valid values:

  • custom: custom.

  • dingtalk: DingTalk.

  • feishu: Lark.

  • github: GitHub.

  • microsoft: Microsoft.

  • google: Google.

custom

DiscoveryUrl

string

No

The URL of the discovery document.

https://example.com/.well-known/openid-configuration

PkceEnabled

boolean

No

Specifies whether to enable Proof Key for Code Exchange (PKCE).

true

PkceChallengeMethod

string

No

The PKCE challenge method. Valid values:

  • S256.

  • plain.

S256

Issuer

string

No

The URL of the authorization server identifier.

https://example.com/issuer

JwtProviderConfig

object

No

The configuration of the JSON Web Token (JWT) credential provider.

Expiration

integer

No

The validity period of the JWT. Unit: seconds.

900

ExpirationCleanupEnabled

boolean

No

Specifies whether to enable JWT expiration cleanup.

true

DerivedShortTokenEnabled

boolean

No

Specifies whether to enable the JWT derived short token capability.

false

AllowedTokenIssuers

array

No

The list of allowed JWT issuers.

Note

The list can contain up to 200 issuers.

Important To clear the issuer list, pass an empty list or an empty string when you call the operation.

string

No

An allowed JWT issuer.

Note

The issuer can be up to 1,024 characters in length.

https://test.issuer.com

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

0441BD79-92F3-53AA-8657-F8CE4A2B912A

Examples

Success response

JSON format

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.