Old post that I forgot to point to: http://www.cloudidentity.com/blog/2014/02/26/a-developer-preview-of-the-active-directory-authentication-library-adal-v2/