GetFederatedCredentialProvider

Updated at:

Retrieves a federated trust source.

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:GetFederatedCredentialProvider

get

*FederatedCredentialProvider

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/federatedcredentialprovider/{#FederatedCredentialProviderId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

FederatedCredentialProviderId

string

Yes

The ID of the federated trust source.

fcp_mkv7rgt4d7i4u7zqtzev2mxxxx

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

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

FederatedCredentialProvider

object

The federated credential provider object.

InstanceId

string

The EIAM instance ID.

idaas_qlbbighyxbu42xl7eninojXXX

FederatedCredentialProviderId

string

The ID of the federated trust source.

fcp_asd123XXX

FederatedCredentialProviderName

string

The name of the federated credential provider.

test

FederatedCredentialProviderType

string

The type of the federated credential provider.

pkcs7

Description

string

The description.

test

NetworkAccessEndpointId

string

The network access endpoint ID.

inae_public

Status

string

The status.

enabled

CreateTime

integer

The creation time. The value is a UNIX timestamp in milliseconds.

1729061324000

UpdateTime

integer

The update time. The value is a UNIX timestamp in milliseconds.

1729061324000

OidcProviderConfig

object

The OIDC configuration.

JwksSource

string

The JWKS source.

static

JwksUri

string

The JWKS endpoint.

https://example.com

StaticJwks

string

The statically obtained JWKS.

{ "keys": [ { "kty": "RSA", "e": "AQAB", "use": "sig", "kid": "KEY2RzsjRrimRASiAhCjBo18YwDoxpYHnHtv", "n": "qrsfFfSZngqKOxVE29ZIR4SXkwKq029B3HLDAZui_Pwaxwn8FssR9QdwsljZS06BTDp10vhPgqMB7s7TmHulL3I4WuSB-l4uXTXXXX" } ] }

Audiences

array

The list of audiences for the OIDC credential.

string

The audience.

https://example.com

Issuer

string

The issuer identifier of the token.

http://test.idaas.com/v2/oauth

TrustCondition

string

The trust condition.

IsNullOrEmpty("jwt.issuer")

DynamicJwks

string

The dynamically obtained JWKS.

https://example.com

JwksLastObtainedTime

integer

The time when the JWKS was last obtained. The value is a UNIX timestamp in milliseconds.

1729061324000

Pkcs7ProviderConfig

object

The PKCS7 configuration.

TrustAnchorSource

string

The source of the certificate trust anchor.

alibaba_cloud

Certificates

array<object>

The list of PKCS7 certificates.

array<object>

The certificate object.

Fingerprint

string

The fingerprint of the root certificate.

2b18947a6a9fc7764fd8b5fb18a863b0c6daxxx

Content

string

The content of the root certificate.

-----BEGIN CERTIFICATE----- MIIE+zCCA0egAwIBAgIJAJZY0ZY0ZY0Z -----END CERTIFICATE-----

CertificateMetadata

object

The certificate metadata.

NotBefore

integer

The effective period of the certificate.

1729061324000

NotAfter

integer

The time when the certificate expires.

1729061324000

TrustCondition

string

The trust condition.

IsNullOrEmpty("certNo")

CmsVerificationMode

string

The CMS verification mode.

cert

SigningTimeValueExpression

string

The signing time.

pkcs7.payload.jsonData.audience.signingTime

SignatureEffectiveTime

integer

The signature validity period. The value indicates the validity duration of the signature in seconds.

3600

PrivateCaProviderConfig

object

The private CA configuration.

TrustAnchorSource

string

The method to obtain the root certificate.

custom

Certificates

array<object>

The root certificate.

array<object>

The certificate object.

Fingerprint

string

The fingerprint of the root certificate.

2b18947a6a9fc7764fd8b5fb18a863b0c6daxxx

Content

string

The content of the root certificate.

-----BEGIN CERTIFICATE----- MIIE+zCCA0egAwIBAgIJAJZY0ZY0ZY0Z -----END CERTIFICATE-----

CertificateMetadata

object

The certificate metadata.

NotBefore

integer

The effective period of the certificate.

1729061324000

NotAfter

integer

The time when the certificate expires.

1729061324000

TrustCondition

string

The trust conditions for the root certificate.

IsNullOrEmpty("certNo")

CloudIdPProviderConfig

object

The cloud identity provider configuration.

IdentityProviderId

string

The ID of the identity provider.

idp_1234567890

Examples

Success response

JSON format

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "FederatedCredentialProvider": {
    "InstanceId": "idaas_qlbbighyxbu42xl7eninojXXX",
    "FederatedCredentialProviderId": "fcp_asd123XXX",
    "FederatedCredentialProviderName": "test",
    "FederatedCredentialProviderType": "pkcs7",
    "Description": "test",
    "NetworkAccessEndpointId": "inae_public",
    "Status": "enabled",
    "CreateTime": 1729061324000,
    "UpdateTime": 1729061324000,
    "OidcProviderConfig": {
      "JwksSource": "static",
      "JwksUri": "https://example.com",
      "StaticJwks": "{\n  \"keys\": [\n    {\n      \"kty\": \"RSA\",\n      \"e\": \"AQAB\",\n      \"use\": \"sig\",\n      \"kid\": \"KEY2RzsjRrimRASiAhCjBo18YwDoxpYHnHtv\",\n      \"n\": \"qrsfFfSZngqKOxVE29ZIR4SXkwKq029B3HLDAZui_Pwaxwn8FssR9QdwsljZS06BTDp10vhPgqMB7s7TmHulL3I4WuSB-l4uXTXXXX\"\n    }\n  ]\n}",
      "Audiences": [
        "https://example.com"
      ],
      "Issuer": "http://test.idaas.com/v2/oauth",
      "TrustCondition": "IsNullOrEmpty(\"jwt.issuer\")\n",
      "DynamicJwks": "https://example.com",
      "JwksLastObtainedTime": 1729061324000
    },
    "Pkcs7ProviderConfig": {
      "TrustAnchorSource": "alibaba_cloud",
      "Certificates": [
        {
          "Fingerprint": "2b18947a6a9fc7764fd8b5fb18a863b0c6daxxx",
          "Content": "-----BEGIN CERTIFICATE-----\nMIIE+zCCA0egAwIBAgIJAJZY0ZY0ZY0Z\n-----END CERTIFICATE-----",
          "CertificateMetadata": {
            "NotBefore": 1729061324000,
            "NotAfter": 1729061324000
          }
        }
      ],
      "TrustCondition": "IsNullOrEmpty(\"certNo\")",
      "CmsVerificationMode": "cert",
      "SigningTimeValueExpression": "pkcs7.payload.jsonData.audience.signingTime",
      "SignatureEffectiveTime": 3600
    },
    "PrivateCaProviderConfig": {
      "TrustAnchorSource": "custom",
      "Certificates": [
        {
          "Fingerprint": "2b18947a6a9fc7764fd8b5fb18a863b0c6daxxx",
          "Content": "-----BEGIN CERTIFICATE-----\nMIIE+zCCA0egAwIBAgIJAJZY0ZY0ZY0Z\n-----END CERTIFICATE-----",
          "CertificateMetadata": {
            "NotBefore": 1729061324000,
            "NotAfter": 1729061324000
          }
        }
      ],
      "TrustCondition": "IsNullOrEmpty(\"certNo\")"
    },
    "CloudIdPProviderConfig": {
      "IdentityProviderId": "idp_1234567890"
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.