Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have hosted a new Angular 7 App in Azure app service. Also added Azure AD authentication for same based on https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad

the AD authentication is working (when i take site, it goes to microsoft login page and once login retruns back)

My issue now is how will be get the logged in username to show in UI? i searched many links but nothing that helps for a beginner like me. can anyone help me on this?


What I have tried:

I am new on this. Please suggest something where i can get a step by step process
Posted
Comments
ZurdoDev 1-Jul-19 14:03pm    
System.Web.HttpContext.Current?.User?.Identity?.Name
should work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900