Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ExternalAuthIdentityProvider
Parent Type
File Suffix and Directory Location
ExternalAuthIdentityProvider components have the suffix .externalAuthIdentityProvider and are stored in the externalAuthIdentityProviders folder.
Version
ExternalAuthIdentityProvider components are available in API version 62.0 and later.
Special Access Rules
Only users with the Customize Application permission or the Manage Named Credentials permission can access this type.
Fields
| Field Name | Description |
|---|---|
| authenticationFlow |
|
| authenticationProtocol |
|
| description |
|
| externalAuthIdentityProviderParameters |
|
| label |
|
ExternalAuthIdentityProviderParameter
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.
| Field Name | Description |
|---|---|
| description |
|
| parameterName |
|
| parameterType |
|
| parameterValue |
|
| sequenceNumber |
|
Declarative Metadata Sample Definition
The following is an example of an ExternalAuthIdentityProvider component.
1<?xml version="1.0" encoding="UTF-8"?>
2<ExternalAuthIdentityProvider xmlns="http://soap.sforce.com/2006/04/metadata">
3 <authenticationFlow>AuthorizationCode</authenticationFlow>
4 <authenticationProtocol>OAuth</authenticationProtocol>
5 <description>OAuth Browser flow for connected app</description>
6 <externalAuthIdentityProviderParameter>
7 <parameterName>TokenUrl</parameterName>
8 <parameterType>TokenUrl</parameterType>
9 <parameterValue>https://localhost:6101/services/oauth2/token</parameterValue>
10 <sequenceNumber>1</sequenceNumber>
11 </externalAuthIdentityProviderParameter>
12 <externalAuthIdentityProviderParameter>
13 <parameterName>AuthorizeUrl</parameterName>
14 <parameterType>AuthorizeUrl</parameterType>
15 <parameterValue>https://localhost:6101/services/oauth2/authorize</parameterValue>
16 <sequenceNumber>2</sequenceNumber>
17 </externalAuthIdentityProviderParameter>
18 <label>exampleExtlIdp</label>
19</ExternalAuthIdentityProvider>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>ExternalAuthIdentityProvider</name>
6 </types>
7 <version>62.0</version>
8</Package>Wildcard Support in the Manifest File
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.