Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.43 KB

File metadata and controls

33 lines (24 loc) · 1.43 KB
title include file
description include file
services api-management
author dlepow
ms.service azure-api-management
ms.topic include
ms.date 08/20/2021
ms.author danlep

Once you've configured your OAuth 2.0 authorization server and configured your API to use that server, you can test it by going to the developer portal and calling an API.

  1. Select Developer portal in the top menu from your Azure API Management instance Overview page.

  2. Browse to any operation under the API in the developer portal.

  3. Select Try it to bring you to the developer console.

  4. Note a new item in the Authorization section, corresponding to the authorization server you just added.

  5. Select Authorization code from the authorization drop-down list.

    :::image type="content" source="../includes/media/api-management-test-oauth-authorization/select-authorization-code-authorization.png" alt-text="Select Authorization code authorization":::

  6. Once prompted, sign in to the Microsoft Entra tenant.

    • If you are already signed into the account, you might not be prompted.
  7. After successful sign-in, an Authorization header is added to the request, with an access token from Microsoft Entra ID. The following is an abbreviated sample token (Base64 encoded):

    Authorization: Bearer eyJ0eXAiOi[...]3pkCfvEOyA
    
  8. Configure the desired values for the remaining parameters, and select Send to call the API.