Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Cannot login into MS Dynamics CRM Online org (MFA?)

Posted on by 95

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

267552.png

and

1373.png

This window should open when enabled MFA, but in user settings MFA is disabled:

3348.png

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.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Cannot login into MS Dynamics CRM Online org (MFA?)

    Alexander,

    Approach to connect to MFA enabled organizations is slightly different. Check following post on how to build proper connection string - www.xrmtoolbox.com/.../

    Also you should use XrmTooling libraries to establish connection - docs.microsoft.com/.../use-connection-strings-xrm-tooling-connect

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans