Book Image

MuleSoft for Salesforce Developers

By : Arul Christhuraj Alphonse, Alexandra Martinez, Akshata Sawant
Book Image

MuleSoft for Salesforce Developers

By: Arul Christhuraj Alphonse, Alexandra Martinez, Akshata Sawant

Overview of this book

MuleSoft for Salesforce Developers will help you build state-of-the-art enterprise solutions with flexible and scalable integration capabilities using MuleSoft’s Anypoint Platform and Anypoint Studio. If you’re a Salesforce developer looking to get started with this useful tool, look no further. This book will get you up to speed in no time, leveling up your integration developer skills. This essential guide will first introduce you to the fundamentals of MuleSoft and API-led connectivity, before walking you through the API life cycle and the Anypoint Studio IDE. Once you have the IDE set up, you’ll be ready to create Mule applications. You’ll look at the core components of MuleSoft and Anypoint Platform, and before long you’ll know how to build, transform, secure, test, and deploy applications using the wide range of components available to you. Finally, you’ll learn about using connectors to integrate MuleSoft with Salesforce and to fulfill a number of use cases, which will be covered in depth, along with interview and certification tips. By the end of this book, you will be confident building MuleSoft integrations at an enterprise scale and be able to gain the fundamental MuleSoft certification – MCD.
Table of Contents (21 chapters)
1
Part 1:Getting Started with MuleSoft
7
Part 2: A Deep Dive into MuleSoft
14
Part 3: Integration with Salesforce and Other Connectors

Implementing API security using policy

We have learned about policies, types of policies, and categories of policies. Now, let’s understand how to achieve security by applying a policy.

In this walkthrough, we shall apply a simple basic authentication policy:

  1. Import any Mule application into Anypoint Studio or use your pre-existing Mule application.
  2. Log in to the Anypoint Platform. Go to API Manager | API Administration | Add new API (as shown in Figure 10.4).

Figure 10.4 – Adding a new API instance on API Manager

  1. In order to add a new API, we’ll first configure Runtime (see Figure 10.5). Select Mule Gateway as the runtime, as we’re connecting to a pre-existing application. You can also connect to a new Mule application as a proxy.
  2. Select Mule 4 as the Mule version. Click Next.

Figure 10.5 – Configuring runtime while adding the API instance

  1. We will now configure...