Before you get started with a Headless Identity implementation for your off-platform apps, cross off these prerequisites in Salesforce.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
- To define the right levels of access for yourself and your users, create a role for yourself and a profile for your end users.
- To store information about your end users, create an account for them.
- If you don’t have one already, set up an Experience Cloud site.
Because Headless Identity APIs are exposed for external users through Experience Cloud, you must create an Experience Cloud site even if your users’ don’t interact with it directly.
- To let your app communicate with Salesforce, configure Cross-Origin Resource Sharing (CORS) settings.
- Enable the Authorization Code and Credentials Flow at an org-wide level. This flow is the
foundation of headless login, registration, passwordless login, and guest user identity.
- From Setup, in the Quick Find box, enter OAuth, and then select OAuth and OpenID Connect Settings.
- Turn on Allow Authorization Code and Credentials Flows.