Ask a questionAsk a question
 

AnswerError code: 3007 appear on the consent web page

  • Tuesday, November 03, 2009 3:59 PMgugas_pl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi everyone,
    Sometimes the error 3007 occurs in the situation when a window of the web browser in which we use WebMessenger Bar is open too long. A user is logged in to the bar but he/she does nothing in it (no conversation, no action). When the user loggs out from the bar and tries to log in after a while then the Error code: 3007 appear on the web page.

    I would like to ask the following questions:
    • Why does this error appear?
    • Is there any way to avoid this error?


    Best regards,
    gugas_pl

Answers

All Replies

  • Tuesday, November 03, 2009 6:24 PMOffir Bakshitz - MSFTOwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The error occurs because the application verifier token that was specified for the msgr:app tag has expired. A computed application verifier token is valid for 60 minutes.

    We have received some feedback regarding the issue you are describing. Most likely we will introduce a change in one of our upcoming hot-fix releases for this scenario, where the resource defined by the “token-url” attribute of the msgr:app tag will be used to refresh the application verifier token.

    In the interim, a possible solution is to have a client side timer that refreshes the page so that a new application verifier token is computed.

    Few thinks are worth noting here:

    ·          Once the user has consented and successfully signed-in, the Messenger Web Toolkit will refresh the delegation token as needed and the user can remain signed-in the page even if the application verifier token has expired.

    ·          Application that store consent tokens, can automatically sign-in the user, without requiring the user to go through the consent flow.

     

    Hope this helps,

    Offir Bakshitz [MSFT]

  • Friday, November 06, 2009 1:30 AMKeiji Kanazawa - MSFTMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The sample code in this MSDN documentation topic shows an ASP.NET example of a token-url page that will automatically update the app verifier token.  By updating the app-verifier-token in this manner, you can avoid the 3007 error from occurring.

    http://msdn.microsoft.com/en-us/library/dd570055.aspx

    Keiji