title: How to authenticate a user and get his acount details in UWP?
body: <p>I am new to UWP and I am trying to make an app that includes sign in with Microsoft account. The problem is that I got very confused what API should I use and how to make the authentication.</p>
  
  <p>After very long search I found that Microsoft have APIs and SDKs for everything - Outlook, OneDrive, Live, Office365, Microsoft Graph etc. But there is no clear documentation, what developer should use to authenticate a user and get his account details such as name and email.</p>
  
  <p>It seems that the Live SDK could do the trick, but Microsoft state that this SDK is legacy and developers should use OndeDrive SDK. But OneDrive don't suit my needs, I can't get users email address and also I have to have developer account so I can build a sample app to test it. This is too much just for a test, isn't it? </p>
  
  <p>After more research I found that Microsoft Graph could help, but it seems that it is only for business purposes or maybe I am wrong?</p>
  
  <p>So in short what I try to achieve is making an app that let the user sign in with his Microsoft account. After successful authentication I need to get his account details so I can build him a profile in the app. And all of this I want to do it without having to make developer or business accounts.</p>
  
  <p>Hope someone could help, becaouse the Microsoft documentation is very confusing.</p>