Create a Connected App to Integrate with Loyalty Management

Create a connected app for Loyalty Management Mobile SDK to request access to Salesforce APIs and to enable secure integration with the APIs. For a connected app 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

  1. From your Salesforce org, in the Quick Find box in Setup, enter Apps, and then select App Manager.
  2. Under Connected Apps, click New Connected App.
  3. Under Basic Information, enter these values.
    • Connected App Name: Name of your connected app.
    • API Name: Keep the default API name, which is automatically filled based on the connected app name.
    • Contact Email: Your email address.
  4. Under API (Enable OAuth Settings), select Enable OAuth Settings.
  5. In the Callback URL, enter a URL where Salesforce can send OAuth2 responses.
  6. 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)
  7. 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.
  8. Save the connected app.
  9. From Setup, in the Quick Find box, enter Connected Apps, and then select Manage Connected Apps.
  10. Click Edit next to the connected app that you’re configuring access for.
  11. Under OAuth Policies, select Admin approved users are Pre-authorized as the permitted users.
  12. Select Relax IP restrictions as the IP relaxation.
  13. Select Refresh token is valid until revoked as the refresh token policy.
  14. Save your changes.

From the App Manager, for the connected app, click Manage Consumer Details, and copy the consumer key and consumer secret. Use these credentials in mobile applications to authenticate with Salesforce APIs.