Create an External Client App to Integrate with Loyalty Management
Create an external client app for Loyalty Management Mobile SDK to request access to
Salesforce APIs and to enable secure integration with the APIs. To request access, integrate the
app with the Salesforce API by using the OAuth 2.0 protocol.
| Available in: all editions that have Loyalty Management enabled |
| User Permissions Needed | |
|---|---|
| To read, create, update, or delete connected apps: | Customize Application AND Modify All Data OR Manage Connected Apps |
- Create an External Client App.
- Under API (Enable OAuth Settings), select Enable OAuth Settings.
- In the Callback URL, enter a URL where Salesforce can send OAuth2 responses.
-
Add these scopes to the Selected OAuth Scopes list.
- Access the identity URL service (id, profile, email, address, phone)
- Access Visualforce applications (visualforce)
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
- Select Enable Authorization Code and Credential Flow, and deselect Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows, Require Secret for Web Server Flow, and Require Secret for Refresh Token Flow.
- Save the app.
- From Setup, in the Quick Find box, enter External Client Apps Manager, and then select External Client Apps Manager.
- From the actions list for the external client app, select Edit Policies.
- Under OAuth Policies, from the Permitted Users dropdown, select Admin approved users are Pre-authorized as the permitted users.
- Select Relax IP restrictions as the IP relaxation.
- Select Refresh token is valid until revoked as the refresh token policy.
- Save your changes.
From the App Manager, for the external client app, click Manage Consumer Details, and copy the consumer key and consumer secret. Use these credentials in mobile applications to authenticate with Salesforce APIs.