According to this post:
I should disable my “Username-Password-Authentication” connection for all apps, enable my legacy connection for all apps, and enter “Username-Password-Authentication” under tenant settings, “Default Directory”. I’ve done all that, but I still get “Wrong username or password” when trying the legacy connection.
I have tested the login and getuser scripts and they seem to work fine.
How can I investigate further? What might be wrong?