locked
How to get the user's microsoft live id

    Question

  • Hello,

    I'm trying to use the Windows::Security::Authentication::OnlineId namespace in order to get the user's unique id.

    The ticket request used to authenticate the user is:
    auto ticket = ref new OnlineIdServiceTicketRequest("wl.signin wl.basic", "DELEGATION");
    auto pSignInHandler = auth->AuthenticateUserAsync(ticket);

    Accessing the resulting UserIdentity instance works for SafeCustomerId, IsConfirmedPC and IsBetaAccount.
    But the rest of the properties - Id, FirstName, LastName and SignInName - throw this exception:
    "WinRT information: Your application cannot get the Online Id properties due to the Terms of Use accepted by the user."

    Why am I getting this error ? Note: I confirmed the required permissions during the sign-in process.

    Please advise.

    Thanks

    Tuesday, September 04, 2012 3:49 PM

Answers