You sit back and relax and pat your back for a good job.
Then someone rings in saying that they:
- Cannot open a document from SharePoint Online using "Open with Word" option
- Cannot sign into Office 365 from Microsoft Word (or any other Office programs). The sign in screen sits there, and complains that it does not recognise your username or password, although the user swears on the life of all their children that they have entered the correct credentials
- It was working fine before (or maybe not).
The fix is to blow away everything under the following registry key:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities\]
You might want to back it up, but it's pretty harmless (for me anyway).
Restart your computer, and try signing into Office 365 in Office programs - it should work now.