Skip to content

A sample web api in .Net core using Open Id connect with Azure AD. It contains the arm templates to deploy on an azure api app with with necessary app settings. In addition, there is also the arm template to import swagger to an Azure API Management Instance.

Notifications You must be signed in to change notification settings

ozgurkarahan/Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Api Management Backend Web Api Example

I use this example as a poc to demonstrate jwt token validation for Azure Api Management

This repository contains:

  • A sample back end web api in .Net core 2.0 using OAuth 2.0 with Azure AD.
  • Arm template to deploy on an Azure Api App with necessary app settings. Template parameters:
  • Name Description
    apiAppName The name of the azure api app
    appServicePlanName The name of the azure app service plan
    Domain The name of the Azure Active Directory, the tenant
    TenantId The Id of the Azure Active Directory, the tenant id
    Audience The Uri of the service principal, Azure AD Application, created in Azure AD
  • Arm template to import an api via a swagger to an Azure API Management Instance. The template adds also the imported api to the unlimited product (it exists by default in azure api management instance) with the jwt validation policy. Template parameters:
  • Name Description
    apimServiceName The name of the existing Azure Api Management Instance
    apiName The name of the api in Azure Api Management
    serviceUrl The url of the backend api (in our case the url of the Azure Api App that has been created with the webapp template)
    swaggerUrl The url of the swagger of the backend api
    suffix The suffix that will be added to the Azure Api Manegement Gateway Url (contoso.azure-api.net/suffix)
    policyContent The policy of the api which is used for jwt validation
    productName The name of the product exising in Azure Api Management that the imported api will be added

About

A sample web api in .Net core using Open Id connect with Azure AD. It contains the arm templates to deploy on an azure api app with with necessary app settings. In addition, there is also the arm template to import swagger to an Azure API Management Instance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages