Hello,
From my C# application I login to Dynamics 365 by using username and password.
I used this sample code (https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/sample-authenticate-users-web-services) to authenticate a user in Dynamics 365.
It works and my app can connect to MS CRM On-Premise deployments and MS CRM Online.
Now in the new MS CRM Online trial org I get an error:
"An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. Authentication Failure".
When I login through the browser, I see
and
This window should open when enabled MFA, but in user settings MFA is disabled:
I tried to create an app password and use it in my application to login to CRM but it did not work.
How can I login to CRM via MFA in my application?
Regards, Alexander.