Skip to main content

1. Set the tenant

To allow connection between Salesforce and SVF Cloud, set up the following two only once per tenant:

  • Set client certificate authentication

    This is used to connect from Salesforce to SVF Cloud. The certificate created in Salesforce is registered to SVF Cloud Manager.

  • Set OAuth authentication

    This is used to connect from SVF Cloud to Salesforce. The X.509 certificate is registered in Salesforce, and the private key is registered in SVF Cloud Manager.

Caution

Once the certificate has expired, you cannot connect.

Set client certificate authentication

Create a certificate in Salesforce

This section uses an example using a self-signed certificate.

Reference

You can also use a certificate signed by a certificate authority. To use it, click the Create CA-Signed Certificate button on the Certificate and Key Management screen.

For details on procedures, see Salesforce Help.

  1. Open the Certificate and Key Management page from Setup in Salesforce.

  2. Click the Create Self-Signed Certificate button.

    sfdc_certificate_newCertificate.png
  3. Set any values for Label and Unique Name.

    sfdc_certificate_newCertificate_setting.png
  4. Click the Save button.

  5. Click the Download Certificate button to download the certificate.

Register a remote site in Salesforce

  1. Open the Remote Site Settings page from Setup in Salesforce.

  2. Click the New Remote Site button.

    sfdc_remoteSite_newSite.png
  3. Set the details of the first remote site as follows.

    Setting item

    Setting

    Remote Site Name

    Any value

    Remote Site URL

    https://<tenant_ID>.secure.svfcloud.com

    sfdc_remoteSite_newSite_setting.png
  4. Click the Save & New button.

  5. Set the details of the second remote site as follows.

    Setting item

    Setting

    Remote Site Name

    Any value

    Remote Site URL

    https://api.svfcloud.com

  6. Click the Save button.

Allow external access in SVF Cloud Manager

  1. In SVF Cloud Manager, click icon_menu_setting.png Environment Settings - Tenant.

  2. Upload the certificate file created in Create a certificate in Salesforce by clicking icon_edit.png in External Access Certificate - Certificate.

    setting_tenant_uploadCertificate.png

    When the upload is complete, the contents of the certificate will be displayed.

    setting_tenant_uploadCertificate_uploaded.PNG

Set OAuth authentication

Create a certificate and private key

Create an X.509 certificate and private key to allow the connection from SVF Cloud to Salesforce.

Register a connected application in Salesforce

  1. Open the Apps page from Setup in Salesforce.

  2. Click the New button in Connected Apps.

    sfdc_application_newApplication.png
  3. Set the details of the connected application as follows. (Set any value for setting items not listed in the table.)

    Class name

    Setting item

    Setting

    API (Enable OAuth Settings)

    Enable OAuth Settings

    Select the check box

    Callback URL

    https://login.salesforce.com/services/oauth2/success

    Use digital signatures

    Check it on to upload the X.509 certificate

    Selected OAuth Scopes

    Add the following items.

    • Manage user data via APIs (api)

    • Access the identity URL service (id, profile, email, address, phone)

    • Manage user data via Web browser (web)

    • Perform requests at any time (refresh_token, offline_access)

    • Full access (full)

  4. Click the Save button.

  5. Make a note of the value of Consumer Key of API (Enable OAuth Settings).

    sfdc_application_consumerKey.png
  6. Click the Manage button and then click the Edit Policies button.

    sfdc_application_edit.png
  7. In OAuth policies, select Admin approved users are pre-authorized for Permitted Users, and click the OK button on the confirmation screen.

    sfdc_application_edit_permitUser.png
  8. Click the Save button.

  9. In Profiles and Permission Sets on the Connected App Detail screen, specify users who can access Salesforce using the procedures.

    sfdc_application_profile-authority.png

Register a connected application in SVF Cloud Manager

  1. In SVF Cloud Manager, click icon_menu_setting.png Environment Settings - Salesforce.

  2. Upload the certificate file created the X.509 Certificate created beforehand by clicking icon_edit.png in Private Key of Connection Application.

    setting_sf_uploadKey.png
  3. Specify the consumer key for the connected apps registered in Salesforce by clicking icon_edit.png in Consumer Key.

    setting_sf_uploadConsumerKey.png
  4. Specify the user name of the user specified in Connected App Detail in Salesforce by clicking icon_edit.png in Default User ID. The user name specified here will be recorded in the history of outputting forms using procedures.

    If the Apex class specified an execution user when calling the procedure, that user name is recorded.

    setting_sf_setUser.png

Permit access from our IP address

If you have restricted the IP addresses that can access Salesforce, please allow access from our IP address.

For details of IP addresses to be allowed access, see "2. Permission settings for the SVF Cloud IP addresses used in the integrated services" described in the following page (Japanese) or contact our support.

https://cs.wingarc.com/en/kb/000015762