How to use Windows.Security.Authentication.OnlineId to get the user id?

Resposta Proposta How to use Windows.Security.Authentication.OnlineId to get the user id?

  • segunda-feira, 16 de abril de 2012 05:39
     
     

    I'd like to get a unique ID that corresponds to the currently signed in user. I don't need to access any of the user's info - I just need to correlate data to this particular user.

    How are OnlineidAuthenticator and OnlineIdServiceTicketRequest used? What is used for the service string? What is used for the policy string?

    • Movido Matt SmallMicrosoft Employee quarta-feira, 18 de abril de 2012 16:03 Windows live questions (From:Building Metro style apps with C# or VB )
    •  

Todas as Respostas

  • quarta-feira, 18 de abril de 2012 16:03
     
     
    I think this question is better served by the Windows live community.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator

  • quarta-feira, 18 de abril de 2012 17:06
    Moderador
     
     Resposta Proposta
    When a user signs in to your site, you can pick up their CID (unique identifier) from the "id" field.  You can see this if you sign in to the ISDK and run the "Getting user data" code.
    • Sugerido como Resposta JOshiroModerator quarta-feira, 18 de abril de 2012 23:26
    •  
  • sexta-feira, 20 de abril de 2012 00:13
     
     

    Not sure if this is related to your subject, but you may want to look at our Single sign-on for apps and websites Help topic.

    Paul
    Live Connect developer documentation team

  • sábado, 12 de maio de 2012 22:52
     
     

    Hi

    Did you ever get to the bottom of this? I'm in exactly the same position.

    None of the documentation tells you how to use the win8-specific api (e.g. OnlineidAuthenticator and OnlineIdServiceTicketRequest)

    Cheers