I have a regular ASP.NET web application that I deployed to Azure using Application Services . After I deployed it, I turned on application service authentication and configured Azure Active Directory. This allowed me to publish my web application, and also get authentication so that only those who are members of Active Directory can log in.

, - ASP.NET . , - , -API ( SQL ), . , API, Azure Active Directory - -API.
, -, -API.
public string GetStringAsync(string endPoint)
{
HttpClientHandler handler = new HttpClientHandler
{
UseDefaultCredentials = true
};
handler.PreAuthenticate = true;
using (HttpClient client = new HttpClient(handler))
{
return client.GetStringAsync(endPoint).Result;
}
}
, API, . , Identity , API:
HttpContext.Current.User.Identity.Name;
\ Azure Active Directory , - -API? , API ?