Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/spfx/use-aadhttpclient-enterpriseapi-multitenant.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
---
title: Consume multi-tenant enterprise APIs secured with Azure AD in SharePoint Framework
description: Tutorial on using the AadHttpClient to connect to a multi-tenant enterprise API secured with Azure AD in SharePoint Framework solutions.
ms.date: 06/13/2022
ms.date: 03/05/2026
ms.localizationpriority: medium
---

# Consume multi-tenant enterprise APIs secured with Azure AD in SharePoint Framework

This article illustrates how you would connect to a multi-tenant enterprise API secured with Azure Active Directory from a SharePoint Framework solution. It covers both creating and securing the API as well building the SharePoint Framework solution.

[!INCLUDE [spfx-gulp-heft-migration-wip](../../includes/snippets/spfx-gulp-heft-migration-wip.md)]

## Create a multi-tenant enterprise API secured with Azure AD

Start with creating a multi-tenant enterprise API secured with Azure Active Directory. While there are no restrictions how the API should be implemented from the SharePoint Framework point of view, in this tutorial, you'll build the API using Azure Functions and secure it using Azure App Service Authentication.
Expand Down Expand Up @@ -423,7 +421,7 @@ After completing the implementation of the SharePoint Framework solution, the ne
First, build, and package the project, by executing in the command line:

```console
gulp bundle --ship && gulp package-solution --ship
heft build --production && heft package-solution --production
```

Next, in the explorer, open the project folder and navigate to the **sharepoint/solution** folder.
Expand Down Expand Up @@ -489,3 +487,4 @@ Select the **+** option to open the toolbox. In the search box type `Orders` to
Select the **Orders** web part to add it to the page. You should see the list of orders retrieved from the enterprise API.

![List of recent orders retrieved from an enterprise API displayed on a SharePoint page](../images/use-aadhttpclient-enterpriseapi-webpart-orders.png)

7 changes: 3 additions & 4 deletions docs/spfx/use-aadhttpclient-enterpriseapi.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
---
title: Consume enterprise APIs secured with Azure AD in SharePoint Framework
description: Tutorial on using the AadHttpClient to connect to an enterprise API secured with Azure AD in SharePoint Framework solutions.
ms.date: 12/21/2020
ms.date: 03/05/2026
ms.localizationpriority: high
---

# Consume enterprise APIs secured with Azure AD in SharePoint Framework

This article illustrates how you would connect to an enterprise API secured with Azure Active Directory from a SharePoint Framework solution. It covers both creating and securing the API as well as building the SharePoint Framework solution.

[!INCLUDE [spfx-gulp-heft-migration-wip](../../includes/snippets/spfx-gulp-heft-migration-wip.md)]

## Create an enterprise API secured with Azure AD

Start with creating an enterprise API secured with Azure Active Directory. While there are no restrictions on how the API should be implemented from the SharePoint Framework point of view, in this tutorial, you'll build the API using Azure Functions and secure it using Azure App Service Authentication.
Expand Down Expand Up @@ -388,7 +386,7 @@ After completing the implementation of the SharePoint Framework solution, the ne
First, build, and package the project using the command line:

```console
gulp bundle --ship && gulp package-solution --ship
heft build --production && heft package-solution --production
```

Next, in file explorer, open the project folder and navigate to the **sharepoint/solution** folder:
Expand Down Expand Up @@ -459,3 +457,4 @@ Select the **Orders** web part to add it to the page. You should see the list of
![List of recent orders retrieved from an enterprise API displayed on a SharePoint page](../images/use-aadhttpclient-enterpriseapi-webpart-orders.png)

> If you receive an error with the technical details of "Failed to open pop-up window", you have a pop-up blocker enabled. You will need to disable the browser's pop-up blocker for your site in order to show the page correctly.