I want to get the username of the logged in user. Is it possible? The app is intended for intranet only.
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 .
Windows.System.UserProfile.UserInformation.GetDomainNameAsync
Source: https://habr.com/ru/post/1438040/More articles:Using Phonegap to load an external URL into an iFrame (ChildBrowser plugin?) - externalDelete non-alphanumeric characters only from beginning to end of line - c #Change the value of the final variable Integer - javaUsing IFRAME in HTML5 Applications - javascriptStoring CSS in mysql database - htmlUse EntityManager with JAX-RS and Jackson in a custom deserializer - java-eeCheck Facebook Page Owner - facebookPython using argparse with cmd - pythonConst, static, extern and their combinations in C and C ++ - c ++What is a good and easy tool for Scrum Project Management in game development? - project-managementAll Articles