---
schema_version: "1"
id: 02e3a9d0512432920beffa19b567bab7e8f07bee789dba19713bb70ba6bbd210
title: OauthTokenExchHandlerApp
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_oauthtokenexchhandlerapp.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_oauthtokenexchhandlerapp.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 685ca1d86d03b04edd3597ed4498ce0d26e1710371a920116dc59983e572bb31
description: Represents the enablement 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. This object is available in API version 60.0 and later.
---
# OauthTokenExchHandlerApp

Represents the enablement 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. This object is available in API version 60.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

## Special Access Rules

## Fields

| Field | Details |
| --- | --- |
| ApexExecutionUserId | 
Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the user who runs the Apex token exchange handler. We recommend that you use an integration user.

This field is a relationship field.

Relationship Name

ApexExecutionUser

Relationship Type

Lookup

Refers To

User



 |
| ConnectedApplicationId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The connected app that’s being used to integrate with Salesforce.

This field is a relationship field.

Relationship Name

ConnectedApplication

Relationship Type

Lookup

Refers To

ConnectedApplication



 |
| IsDefault | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether the token exchange handler is the default handler for this app. During the token exchange flow, in the token request, you can optionally include a token\_handler parameter with the name of a specific handler’s Apex class. If you don’t include this parameter, Salesforce defaults to the default handler.

The default value is false.



 |
| OauthTokenExchangeHandlerId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The OauthTokenExchangeHandler with which these enablement settings are associated.

This field is a relationship field.

Relationship Name

OauthTokenExchangeHandler

Relationship Type

Lookup

Refers To

OauthTokenExchangeHandler



 |