Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 2.59 KB

scenario-web-app-call-api-overview.md

File metadata and controls

55 lines (38 loc) · 2.59 KB
title titleSuffix description services author manager ms.service ms.subservice ms.topic ms.workload ms.date ms.author ms.custom
Build a web app that authenticates users and calls web APIs | Azure
Microsoft identity platform
Learn how to build a web app that authenticates users and calls web APIs (overview)
active-directory
jmprieur
CelesteDG
active-directory
develop
conceptual
identity
07/14/2020
jmprieur
aaddev

Scenario: A web app that authenticates users and calls web APIs

Learn how to build a web app that signs users in to the Microsoft identity platform, and then calls web APIs on behalf of the signed-in user.

Prerequisites

This scenario assumes you've already completed Scenario: Web app that signs in users.

Overview

You add authentication to your web app so that it can sign users in and call a web API on behalf of the signed-in user.

Web app that calls web APIs

Web apps that call web APIs are confidential client applications. That's why they register a secret (an application password or certificate) with Azure Active Directory (Azure AD). This secret is passed in during the call to Azure AD to get a token.

Specifics

Note

Adding sign-in to a web app is about protecting the web app itself. That protection is achieved by using middleware libraries, not the Microsoft Authentication Library (MSAL). The preceding scenario, Web app that signs in users, covered that subject.

This scenario covers how to call web APIs from a web app. You must get access tokens for those web APIs. You use MSAL libraries to acquire these tokens.

Development for this scenario involves these specific tasks:

  • During application registration, you must provide a reply URI, secret, or certificate to be shared with Azure AD. If you deploy your app to several locations, you'll provide a reply URI for each location.
  • The application configuration must provide the client credentials that were shared with Azure AD during application registration.

Recommended reading

[!INCLUDE recommended-topics]

Next steps

Move on to the next article in this scenario, App registration.