---
schema_version: "1"
id: 3f3f26a0213c9f7a1601dbaaa08e05a4ece6bdb91a68d33d201f3dda8127b98e
title: Enable the Authorization Code and Credentials Flow
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/security/headless-identity-impl-guide/guides/headless-identity/headless-identity-enable-auth-code-creds-flow.md
canonical_url: https://developer.salesforce.com/docs/platform/headless-identity-impl-guide/guide/headless-identity-enable-auth-code-creds-flow.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f503d68b504dcbd00c5574eeaa48f3d57539a9cbaf4306a61faab183cc5143f3
products:
  - Headless Identity Implementation Guide
  - Security
---

# Enable the Authorization Code and Credentials Flow

The Authorization Code and Credentials Flow is the foundation of headless login and headless registration. Enable this flow at an org-wide level.

|Required Editions|
|-----------------|
|Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience|
|Available in: **Enterprise**, **Unlimited**, and **Developer** Editions|

1.  From Setup, in the Quick Find box, enter `OAuth`, and then select **OAuth and OpenID Connect Settings**.

2.  Turn on **Allow Authorization Code and Credentials Flows**.

    You receive a warning that changing this setting can break your integrations.

3.  To accept the warning, click **OK**.

    With this flow enabled, you can access settings to turn it on for a specific external client app.



## Example

![Toggle to turn on the Authorization Code and Credentials Flow](https://developer.salesforce.com/media/headless-identity-impl-guide/authcodecreds_toggle.png)

