locked
Authentication using Microsoft account from a universal app not working

    Question

  • I've followed the instructions for adding authentication to a mobile services app but cannot get it to work. When LoginAsync is called I get the prompt to input the Microsoft account credentials, which I do, but the LoginComplete call returns "InvalidOperationException: Login failed: Error: Invalid token format. Token must not be empty. at ...AuthenticationBroker.GetTokenStringFromResult(...)" . I've associated my app with the store, enabled Microsoft Account authentication with Live Connect, added the client id, client secret, and package sid to mobile services, and added the suggested authentication code to my app. Does anyone know why I might be getting that error?
    Monday, March 23, 2015 4:00 PM

Answers

  • It turns out that Microsoft Account changed their API settings and Target domain must be set to the url of my mobile service.
    • Marked as answer by AZ Apps Thursday, May 07, 2015 4:10 AM
    Thursday, May 07, 2015 4:10 AM

All replies