Ask a questionAsk a question
 

QuestionCheck if Windows Live ID is valid

  • Tuesday, November 03, 2009 4:13 AMLijGeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I register new users to my app using their windows live id. How do I check if a Windows Live Id is valid, before I register the user.

All Replies

  • Tuesday, November 03, 2009 3:22 PMChrisW_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Which type of Windows Live ID authentication are you using? Windows Live ID Delegated Authentication, Windows Live ID Web Authentication or RPS Server authentication?
  • Friday, November 06, 2009 3:07 AMLijGeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
  • Monday, November 09, 2009 1:01 AMmh415 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I register new users to my app using their windows live id. How do I check if a Windows Live Id is valid, before I register the user.

    I'm confused by this.  What do you mean by valid?  If a LiveID isn't valid, then you won't receive the login token.  Have you experimented with the samples for web authentication?
  • Monday, November 09, 2009 4:01 AMLijGeo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I want to check if a given Id is a Windows Live Id.

  • Monday, November 09, 2009 10:17 PMmh415 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    You should try working through the LiveID samples.  Once you understand them, the answer to your question should be obvious.

  • Tuesday, November 10, 2009 7:00 AMmh415 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It just occurred to me that you might be asking how to check that the webauthtoken cookie has not been tampered with.  Is that what you're asking?

    I'm no expert on the matter, but it appears that if you tamper with the webauthtoken using Firebug/Firecookie, you'll see errors such as this in VS's Immediate Window:

    Error: u64: Base64 conversion error: ...
    Error: DecodeToken: Attempted to decode invalid token.
    Error: ProcessToken: Failed to decode/validate token: ...

    You can follow along in WindowsLiveLogin.cs if you like.

    I believe if you can decode webauthtoken without error, then the resulting WindowsLive.WindowsLiveLogin.User.Id is valid.  At least, I hope that would be the case.