Is there any example of using AAD authentication on pure JavaScript Windows 8.1 app?
I'm trying to use this method: Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(option, startUrl, endUrl) to perform the login. This method will basically create a popup to allow user to log in. I'm able to type in my credentials. But then after signing in, it shows "Can't connect to the service". I am guessing that it's the redirect uri issue(starting with "ms-app://s-1-"). I tried to replace it with a website and open the startUrl from the browser and it works fine. Any knows how to handle the redirectUri of windows app?