Guide to configure Salesforce As An OAuth Server



If you want users to login to your WordPress site using their Salesforce credentials, you can simply do it using our WP OAuth Client plugin. Once you configure the Salesforce with WordPress plugin, you can allow users to SSO to your WordPress site using Salesforce. Similarly, you can map your WordPress roles based on your Salesforce attributes/groups. To know more about other features we provide in WP OAuth Client plugin, you can click here.

You can download OAuth Client plugin using the following link.




Follow the Step-by-Step Guide to configure Salesforce with WordPress :

  • Login to your SalesForce account.
  • Switch to the SalesForce Classic mode from profile menu, and then go to the Setup page.
  • From the left pane, under Build section go to Create > Apps.
  • OAuth/OpenID/OIDC Single Sign On (SSO) using Salesforce identity Provider, Create and Setup Salesforce App
  • Scroll down and click on the New button under Connected apps.
  • OAuth/OpenID/OIDC Single Sign On (SSO) using Salesforce Identity Provider, Connected apps
  • You will be taken to the application settings page. Enter the required details such as Connected App Name, API Name and Contact Email.
  • OAuth/OpenID/OIDC Single Sign On (SSO) using Identity Provider, New connected app
  • Check the Enable OAuth Settings checkbox under API(Enable OAuth Settings) section and you will be shown more options to configure.
  • Enter the Callback URL (copy it from the plugin), select the Scopes as required and save the settings.
  • OAuth/OpenID/OIDC Single Sign On (SSO)using Salesforce Identity Provider, Enable OAuth Settings
  • You will be taken to the Application Management page. Here, you will find Consumer key(Client ID) and Consumer Secret(Client Secret).
  • OAuth/OpenID/OIDC Single Sign On (SSO) using Salesforce Identity Provider, Get Consumer ID

    Salesforce Endpoints and Scope:

    Client ID : from the step 7 above
    Client Secret : from the step 7 above
    Scope: user repo
    Authorize Endpoint: https://login.salesforce.com/services/oauth2/authorize
    Access Token Endpoint: https://login.salesforce.com/services/oauth2/token
    Get User Info Endpoint: https://login.salesforce.com/services/oauth2/userinfo

Free Trial

If you are facing any difficulty please mail us on info@xecurify.com.