ExternalAuthIdentityProvider

Represents an external authentication (auth) identity provider. An external auth identity provider links to an external credential and obtains OAuth tokens for outbound callouts to external systems.

This type extends Metadata and inherits its fields.

ExternalAuthIdentityProvider components have the suffix .externalAuthIdentityProvider and are stored in the externalAuthIdentityProviders folder.

Introduced in API version 62.0.

Only users with the Customize Application permission or the Manage Named Credentials permission can access this type.

  • Type: IdentityProviderAuthFlow (enumeration of type string)

  • Required: Yes

  • Description: Required.

    Authentication flow to get tokens to call protected APIs. Values are:

  • Possible values:

    • AuthorizationCode
    • ClientCredentials
    • SalesforceDefined
  • Type: IdentityProviderAuthProtocol (enumeration of type string)

  • Required: Yes

  • Description: Required.

    The authentication protocol that’s required to access the external system. Values are:

  • Possible values:

    • OAuth
    • SalesforceDefined
  • Type: string
  • Required: No
  • Description: A meaningful description of the external auth identity provider.
  • Type: string

  • Required: Yes

  • Description: Required.

    Name of the external auth identity provider.

Represents the parameters that configure an external auth identity provider.

These parameters are used internally to provide a flexible architecture and are exposed here for packaging reasons.

  • Type: string
  • Required: No
  • Description: A human-readable description of this external auth identity provider parameter.
  • Type: string

  • Required: Yes

  • Description: Required.

    The name of the external auth identity provider parameter.

  • Type: ExtlIdentityProviderParmType (enumeration of type string)

  • Required: Yes

  • Description: Required.

    The type of external auth identity provider parameter. The value of this field drives the behavior of the parameter. Values are:

  • Possible values:

    • AuthorizeRequestQueryParameter
    • AuthorizeUrl
    • ClientAuthentication
    • CreatedByNamespace
    • IdentityProviderOptions
    • ManagedByComponent
    • ManagedByFeature
    • RefreshRequestBodyParameter
    • RefreshRequestHttpHeader
    • RefreshRequestQueryParameter
    • StandardExternalIdentityProvider
    • TokenRequestBodyParameter
    • TokenRequestHttpHeader
    • TokenRequestQueryParameter
    • TokenUrl
    • UserInfoUrl
  • Type: string
  • Required: No
  • Description: If the parameterType field describes a literal value, then this field stores the literal value.
  • Type: int
  • Required: No
  • Description: Specifies the order of parameters to apply when an external auth identity provider has more than one parameter. Priority is from lower to higher numbers (for example, 1 is the highest priority).

The following is an example of an ExternalAuthIdentityProvider component.

The following is an example package.xml that references the previous definition.

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.