CreateCredentialProvider
Creates a credential provider.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateCredentialProvider |
create |
*CredentialProvider
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the request. You can generate a 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 |
| CredentialProviderIdentifier |
string |
Yes |
The credential provider identifier. Note
Valid characters: uppercase and lowercase letters, digits, and the following special characters: |
test_example_identifier |
| CredentialProviderName |
string |
Yes |
The credential provider name. Note
The name can be up to 64 characters in length. |
test_example_name |
| Description |
string |
No |
The description. Note
The description can be up to 128 characters in length. |
This is an example description |
| CredentialProviderType |
string |
Yes |
The credential provider type. Valid values:
|
oauth |
| CredentialProviderConfig |
object |
No |
The credential provider configuration. |
|
| OAuthProviderConfig |
object |
No |
The configuration of the OAuth credential provider. |
|
| ClientId |
string |
Yes |
The client ID in the OAuth protocol. Note
The client ID can be up to 128 characters in length. |
client_id_example_xxx |
| ClientSecret |
string |
Yes |
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 in the OAuth protocol. Note
The endpoint must start with |
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 scope configuration of the credential provider is used to issue the token. Important Separate multiple scope values with spaces.
|
example:test_01 example:test_02 |
| AuthorizationFlow |
string |
No |
The OAuth authorization flow type. Valid values:
|
m2m |
| AuthorizationEndpoint |
string |
No |
The authorization endpoint in the OAuth protocol. |
https://example.com/authorize |
| ProviderVendor |
string |
No |
The OAuth provider vendor type. Valid values:
|
custom |
| DiscoveryUrl |
string |
No |
The URL of the OAuth 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 algorithm used to calculate the code challenge in PKCE. Valid values:
|
S256 |
| Issuer |
string |
No |
The issuer endpoint in the OAuth protocol. |
https://example.com/issuer |
| JwtProviderConfig |
object |
No |
The configuration of the JWT credential provider. |
|
| Expiration |
integer |
No |
The validity period of the JWT, in seconds. |
900 |
| ExpirationCleanupEnabled |
boolean |
No |
Specifies whether to enable cleanup of expired JWTs. |
true |
| DerivedShortTokenEnabled |
boolean |
No |
Specifies whether to enable the capability to derive short tokens from JWTs. |
false |
| AllowedTokenIssuers |
array |
No |
The list of allowed JWT issuers. Note
The list can contain up to 200 items. |
|
|
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 |
| CredentialProviderId |
string |
The credential provider ID. |
atp_01kr2cmj5gxxx4fvmls2e93dxxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"CredentialProviderId": "atp_01kr2cmj5gxxx4fvmls2e93dxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.