Skip to content

gianlucb/Demo_AAD.2tiers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo - Azure AD Secured Api Access (Asp.Net Core 2.0)

Small example of a two tiers application with a FrontEnd application that calls a backend Api application. Both coded with Asp.Net Core 2.0 and secured with the same Azure Ad tenant (directory). This demonstrate how to retrieve an access token from AzureAd, using the implicit flow (OpenIdConnect):

scenario

Document

For more detailed information read the following post

Setup

Using the Azure portal you need to:

To automated these tasks you can use the powershell script Create2TiersAADDemo.ps1.

Last, you must update the appsettings.json file with your settings:

    "Domain": "ZZZZZZZZZ.onmicrosoft.com",
    "TenantId": "your tenant ID",
    "ClientId": "your Application ID"

for the FrontEnd application add also the Application ID of the Api layer

    "TargetApiAppId": "597add50-a83e-4930-8f8f-YYYYYYYY"

Browse to http://localhost:10001 and login with an account in your tenant:

homepage

About

Small example of a two tiers application with a FrontEnd application that calls a backend Api application. Both coded with Asp.Net Core 2.0 and secured with the same Azure Ad tenant (directory)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published