Problems when signing out of organizational accounts such as Office 365 with RRS feed

  • Question

  • Hi,

    Today we are experiencing issue regarding the log out process. Our Windows 8.1 application is connected to MS Dynamics CRM Online with an azure account (office 365). Once the app has successfully authenticated the end user with his account and if this user has ticked the box "keep me signed", it is no more possible for him to change the used account. After the log out process, when the app request to authenticate again, the "login box" is displayed but the Web Authentication Broker automatically used the previous account to sign it. It is no more possible to enter a new account. That means, once installed the application can be used only for one account.

    So my question is "how can we indicate to the Web Authentication Broker" to forget the account or to request again new credentials ?

    The app is using the Nuget package "Windows Azure Authentication Library for Windows Store Beta". We use the classical code to remove the authentication token :

    (AuthenticationContext.TokenCache as DefaultTokenCache).Clear();

    We tried several scenarios to change the used account by following the KB 2507767 but nothing seems to work.


    Have you any idea / solutions?

    Thanks you a lot,


    Wednesday, December 4, 2013 1:32 PM

All replies

  • My guess is that Beta version of whatever library you are using is not supported and somehow storing the credentials?  There is usually a place to contact someone on the NuGet host pages of things like that.

    Since you already tried all the steps in that KB article I am at a loss myself.  They seem to always work for me.  The logoff is what IE uses for example.

    WebAuthenticationBroker is something different.  What exactly are you using?

    Jeff Sanders (MSFT)

    @jsandersrocks - Windows Store Developer Solutions @WSDevSol
    Getting Started With Windows Azure Mobile Services development? Click here
    Getting Started With Windows Phone or Store app development? Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

    Wednesday, December 4, 2013 8:38 PM
  • Have you checked with the CRM Online folk to see if there's a proper method to force a logout?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, December 4, 2013 8:39 PM