Wordpress plugin with Salesforce OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration

A nice boilerplate to start a new WordPress plugin for Salesforce purposes with OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration and refresh token support.

How it works?

Fill the form with your salesforce organisation OAuth :

  • -IIS : The issuer
  • -Audience: The audience
  • -Sub: The subject
  • -Expiration time: expiration time
  • -Private key
  • -Public key (optional)

Use this code snippet to execute SOQL Query:

<?php
$response=salesforce_soql_request("SELECT Name From Account");

vardump($response);
?>

Contact me to send you the plugin.