Multi-factor authentication is enabled on the Azure portal, and it will send a OTP whenever I log in to Dynamics 365. I want to login with MFA in a C# console application.
In the Microsoft 365 admin center, in the left nav choose Users > Active users. On the Active users page, choose Multi-factor authentication. On the multi-factor authentication page, select each user and set their Multi-Factor auth status to Disabled.
Signing in to https://office.comSelect the Dynamics 365 apps tile to go to the Dynamics 365 home page. If you're a system administrator, you'll see an Admin tile.
By setting up MFA, you add an extra layer of security to your Microsoft 365 account sign-in. For example, you first enter your password and, when prompted, you also type a dynamically generated verification code provided by an authenticator app or sent to your phone.
You can use an App Password for your C# console application.
You can create as many App Passwords as you need for legacy apps that don't work with MFA. Try not to reuse them - just create as many as you need. This way you can easily go back and revoke specific passwords when you don't need them any more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With