Configure Connected App Policies
In a standard OAuth flow, users often see an approval screen where they confirm that an
app is allowed to access their Salesforce data. With headless identity flows, you don’t want to
show users a Salesforce approval screen. To preapprove access, configure OAuth policies on your
connected app.
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
Available in: Enterprise, Unlimited, and Developer Editions |
-
Go to your connected app policy page.
- From Setup, in the Quick Find box, enter App, and then select App Manager.
-
Next to your app, click
, and then select Manage.
- Click Edit Policies.
- Under OAuth Policies, set the Permitted Users policy to Admin approved users are pre-authorized.
- Save the policy change.
- On the connected app policy page, scroll down to and select Manage Profiles.
- Select the headless demo profile that you created.
- Save the policy change.