Is Windows authentication possible in a metro application?

I want to get the username of the logged in user. Is it possible? The app is intended for intranet only.

+4
source share
1 answer

To add Windows authentication to the application, declare 'enterpriseAuthentication' in the manifest.

See the information in this related question for more details.

Edit:

To get the domain name of the user, I believe that you can use Windows.System.UserProfile.UserInformation.GetDomainNameAsync . MSDN also has an Example User Domain Name .

+6
source

Source: https://habr.com/ru/post/1438040/


All Articles