# Microsoft Modern Authentication.

**URL:** <https://community.smartbear.com/t/microsoft-modern-authentication/512>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, latest\
**Created:** [June 18, 2026, 5:39am UTC](https://community.smartbear.com/t/microsoft-modern-authentication/512 "2026-06-18T05:39:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 18, 2026, 5:39am UTC](https://community.smartbear.com/t/microsoft-modern-authentication/512/1 "2026-06-18T05:39:13Z")

</div>

> Originally posted by **HirendraSingh** on June 17, 2026

I need to login in portal and it is asking for email id then for OTP sent on mobile phone. (I guess this is not possible but need your suggestions on this).  
Is there any way we can bypass it without turning off the MFA? as we cannot turn it off in our organization.

 ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/decc841d5f97046cb87fad72aae4e903c9ab8ed6.png)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 18, 2026, 1:22pm UTC](https://community.smartbear.com/t/microsoft-modern-authentication/512/2 "2026-06-18T13:22:32Z")

</div>

> Originally posted by **rraghvani** on June 18, 2026

Many organisations create special test environments where MFA is disabled, relaxed, or replaced with test authentication mechanisms to make automated testing practical.

There is no standard capability in TestComplete that legitimately “skips” MFA on a properly configured system. The purpose of MFA is to require possession of the phone (or phone number) in addition to the password.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 22, 2026, 7:00am UTC](https://community.smartbear.com/t/microsoft-modern-authentication/512/3 "2026-06-22T07:00:01Z")

</div>

> Originally posted by **eykxas** on June 22, 2026

Hi !

If you can change the MFA to send the OTP via mail, TC can read the code from the mail app (outlook for example) and use it.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [June 23, 2026, 7:04am UTC](https://community.smartbear.com/t/microsoft-modern-authentication/512/4 "2026-06-23T07:04:47Z")

</div>

> Originally posted by **HirendraSingh** on June 23, 2026

The problem is we have multiple roles in application and I only able to read email from own configured outlook app, so not work even though I change the MFA type.
