# 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://a.sfdcstatic.com/developer-website/sfdocs/security/media/headless-identity-impl-guide/authcodecreds_toggle.png)
