Newer Version Available

This content describes an older version of this product. View Latest

Create a Connected App

Create a connected app for Amazon Web Services (AWS) to connect with the Loyalty Management Receipt Scanner Kit unlocked package. This connected app ensures that the Expense Analysis API runs after the receipts are uploaded and creates transaction journals for the submitted receipts.
Available in: all editions that have Loyalty Management enabled

User Permissions Needed
To create connected apps: Customize Application

AND

Modify All Data OR Manage Connected Apps
  1. From Setup, in the Quick Find box, enter certificate, and then select Certificate and Key Management.
  2. Under Certificates, click Create Self-Signed Certificate.
  3. Enter a label and unique name for the certificate.
  4. Save the new certificate.
  5. Click Download Certificate.
  6. From Setup, in the Quick Find box, enter Apps, and then select App Manager.
  7. Click New Connected App, and fill these fields.
    • Connected App Name: Enter Manage Authentication
    • API Name: Keep the default API name that’s automatically filled based on the connected app name
    • Contact Email: Enter your email address
    • Description: Enter Manage how external users are authenticated when they connect with Salesforce applications
  8. Under API (Enable OAuth Settings), select Enable OAuth Settings.
  9. In the Callback URL, enter https://login.salesforce.com/services/oauth2/token/callback.
  10. Select Use digital signatures.
  11. Click Choose file, and upload the certificate that you downloaded.
  12. In the Selected OAuth Scopes section, move the Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access) values to Selected OAuth Scopes.
  13. Save the connected app.
  14. From Setup, in the Quick Find box, enter Connected Apps, and then select Manage Connected Apps.
  15. Next to Manage Authentication, click Edit.
  16. Select Admin approved users are Pre-authorized as the permitted users.
  17. From Timeout Value, select 24 hours.
  18. Save your changes.
  19. Click Manage Authentication.
  20. Under Profiles, click Manage Profiles.
  21. Select System Administrator, and save your changes.
  22. In the Quick Find box, enter custom, and then select Custom Settings.
  23. For the Manage Authenticate Setting whose namespace prefix is ReceiptScanner, select Manage, and then select New.
  24. Under Manage Authenticate Setting Information, enter these values.
    • Name: Enter Manage Authentication
    • Audience: Based on your environment, enter one of the values: https://test.salesforce.com/ or https://login.salesforce.com/
    • Certificate: Enter the certificate name, without the extension
    • Consumer Key: Enter the consumer key. To get the consumer key, from the App Manager setup, for the Manage Authentication app, select View. Under API (Enable OAuth Settings), click Manage Consumer Details, enter your credentials, and then copy the consumer key.
    • Subscriber: Enter the username of the Salesforce admin.
    • Token Endpoint: Based on your environment, enter one of the values: https://test.salesforce.com/services/oauth2/token or https://login.salesforce.com/services/oauth2/token
  25. Save your changes.