This is a sample azure funtion to authenticate to another Azure AD protected api
TODO: Do to azure AD tenant
- Get tenantId from the Azure AD tenant -> properties (as shown in the image below) tenant this is the tenant name of your Azure AD - this should look like example.onmicrosoft.com.
-
In App Registration -> create a new native client
Get ApplicationId of the native app for clientId and clientSecret
- Get the tenantID as shown below
- UPN - username of the user registered in Azure AD


