Last post Jun 02, 2017 08:40 AM by PatriceSc
May 24, 2017 06:30 AM|coldWire79|LINK
I've recently discovered that I can add Azure AD authentication to an App Service app. It's easy enough to configure and I really like it. However, what is not clear in the documentation is; how does one get the user information in the application code?
Is there a way to configure the authentication middleware to pick up on the headers? None of the documentation details this any further than to say the information is passed along in headers.
Jun 02, 2017 08:40 AM|PatriceSc|LINK
Start with showing User.Identity.Name "as usual". See also https://msdn.microsoft.com/en-us/library/system.security.claims.claimsprincipal(v=vs.110).aspx and
scroll down to the "Examples" code.
If you don't see what you are looking for tell us more precisely which user information you are looking for.