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.
OauthTokenExchangeHandler
Parent Type
File Suffix and Directory Location
OauthTokenExchangeHandler components have the suffix .oauthtokenexchangehandler and are stored in the oauthtokenexchangehandlers folder.
Version
OauthTokenExchangeHandler components are available in API version 60.0 and later.
Special Access Rules
There are no additional access requirements that are specific to this type.
Fields
| Field Name | Description |
|---|---|
| description |
|
| developerName |
|
| enablements |
|
| isAccessTokenSupported |
|
| isContactCreationAllowed |
|
| isEnabled |
|
| isIdTokenSupported |
|
| isJwtSupported |
|
| isProtected |
|
| isRefreshTokenSupported |
|
| isSaml2Supported |
|
| isUserCreationAllowed |
|
| masterLabel |
|
| tokenHandlerApex |
|
OauthTokenExchHandlerApp
Represents the settings for a specific Salesforce connected app or external client app that’s enabled for the token exchange handler. A handler can be enabled for multiple apps.
| Field Name | Description |
|---|---|
| apexExecutionUser |
|
| connectedApp |
|
| externalClientApp |
|
| isDefault |
|
Declarative Metadata Sample Definition
The following is an example of an OauthTokenExchangeHandler component.
1<?xml version="1.0" encoding="UTF-8"?>
2<OauthTokenExchangeHandler xmlns="http://soap.sforce.com/2006/04/metadata">
3 <developerName>MyTokenExchangeHandler</developerName>
4 <description>My token exchange handler</description>
5 <isAccessTokenSupported>true</isAccessTokenSupported>
6 <isEnabled>true</isEnabled>
7 <isIdTokenSupported>false</isIdTokenSupported>
8 <isJwtSupported>true</isJwtSupported>
9 <isProtected>false</isProtected>
10 <isRefreshTokenSupported>false</isRefreshTokenSupported>
11 <isSaml2Supported>false</isSaml2Supported>
12 <isUserCreationAllowed>true</isUserCreationAllowed>
13 <masterLabel>MyTokenExchangeHandler</masterLabel>
14 <tokenHandlerApex>MyOauthTokenExchangeHandler</tokenHandlerApex>
15 <enablements>
16 <apexExecutionUser>integrationuser@mycompany.com</apexExecutionUser>
17 <connectedApp>TokenExchangeApp1</conectedApp>
18 <isDefault>true</isDefault>
19 </enablements>
20</OauthTokenExchangeHandler>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>OauthTokenExchangeHandler</name>
6 </types>
7 <version>60.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.