Securing API with Salesforce as OAuth Provider on Anypoint Platform
This document covers steps for securing an API with Salesforce as OAuth 2.0 Provider on Anypoint Platform. We'll create a Connected App on Salesforce account for this demo. Then on the Anypoint Platform we will setup Salesforce as a Client Provider of type - OpenID Connect Dynamic Client Registration. Next, we'll configure default Client provider in the environment where our API lives. After that, we will deploy our API to Cloudhub and then secure it using OpenId Connect access token enforcement Policy. Let’s begin... Pre-requisites Salesforce Account Mulesoft Anypoint Platform Account API ready for Cloudhub Deployment For this demo, we're using the following Non-MuleAPI - Coffee SampleAPI RAML File - Link . You can import it in Design Center and then publish it to your Anypoint Exchange. We'll later deploy it as a Proxy Application as mentioned in the steps below. Do not deploy the API until Client Provider is registered on Anypoint Platform (Just follow the events as...