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 |
|
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.
<?xml version="1.0" encoding="UTF-8"?>
<OauthTokenExchangeHandler xmlns="http://soap.sforce.com/2006/04/metadata">
<developerName>MyTokenExchangeHandler</developerName>
<description>My token exchange handler</description>
<isAccessTokenSupported>true</isAccessTokenSupported>
<isEnabled>true</isEnabled>
<isIdTokenSupported>false</isIdTokenSupported>
<isJwtSupported>true</isJwtSupported>
<isProtected>false</isProtected>
<isRefreshTokenSupported>false</isRefreshTokenSupported>
<isSaml2Supported>false</isSaml2Supported>
<isUserCreationAllowed>true</isUserCreationAllowed>
<masterLabel>MyTokenExchangeHandler</masterLabel>
<tokenHandlerApex>MyOauthTokenExchangeHandler</tokenHandlerApex>
<enablements>
<apexExecutionUser>integrationuser@mycompany.com</apexExecutionUser>
<connectedApp>TokenExchangeApp1</conectedApp>
<isDefault>true</isDefault>
</enablements>
</OauthTokenExchangeHandler>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>OauthTokenExchangeHandler</name>
</types>
<version>60.0</version>
</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.