Within an Office product such as Excel (2013), under Accounts > Connected Services, you see something similar to: Clicking Connect, brings up a dialogue to enter your credentials, which you do, and you know they are 100% correct, however, you receive the error:
"The username or password for OneDrive - Contoso isn't correct. Please try again."
In my case, I’m trying to connect to a OneDrive for business account.
If you use Office 365 (and have installed Office via Office 365, as opposed to VLK), typically, the Office product will be signed in to the same account as OneDrive, however, it is possible to be signed in to Office products with account ‘x’ and try to connect to OneDrive with account ‘y’. This appears to be the problem. Whether a recent update has caused it, the system decided to change accounts, or it is cause by mixed “Work or School” with “Personal” accounts. Who knows, but for me, the issue was that the Office product was signed in to my personal account and I was trying to connect OneDrive to my “Work or School” account. For example:
For me, all I had to do was click Switch Account and sign in to my “Work or School” account, the same account used by OneDrive and the services automatically connected:
It seems MS have been playing yet again! I updated AD Connect then I had to crack open regedit and make the following changes:
1. Navigate to
EnableADAL Type: DWORD, Value 1.
5. Reboot. (log off / on should suffice).
If Outlook is failing to log in, it may be a different problem. I use AAD “Seamless single sign-on” and “Pass-through authentication” and as a result Azure AD Connect cannot automatically update. When it gets too old, I cannot log in to Azure Portal, Office Portal, or Outlook, until I update AAD Connect. Again, ADFS (Federation) might be a different story.
Screenshots made with free Greenshot