title: using TOTP Microsoft authenticator for ASP.NET MVC
body: <p>We already have a single authentication process using Active Directory for our home made web sites (simple login and password). Our AD is also on Azure (everything is synchronized).</p>
  <p>Now we want 2 factors authentification using this: (Microsoft Authenticator) <a href="https://www.microsoft.com/en-us/account/authenticator" rel="nofollow noreferrer">https://www.microsoft.com/en-us/account/authenticator</a></p>
  <p>I've been searching for an exemple for a while, but most of the tutorials I found are about MVC CORE; <strong>I'm not using core</strong>, just regular MVC .Net Framework. Furthermore, the only tutorials I found using .Net framework were for Google authenticator, not Microsoft's one.</p>
  <p>The intended behavior would be the same as when I connect to office 365, first I enter my password in the web site, then I receive a notification on my cell phone (for exemple), by approving the connection, I can have access to web content.</p>
  <p>I'm still trying to figure out if this is even allowed, is Microsoft Authenticator only meant to be used for Microsoft developers or can we random developers use this app for our 2FA needs? Or is there a way to trigger the office 365 authentication windows?</p>
  <p>If yes, they don't seem eager to share any code or tutorial for MVC .net Framework. (I'm still searching)</p>
  <p><strong>EDIT for comments:</strong></p>
  <p>Microsoft auth .Net Core documentation:</p>
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/mfa?view=aspnetcore-5.0" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/security/authentication/mfa?view=aspnetcore-5.0</a></p>
  <p>Google auth with .Net framework documentation:</p>
  <p><a href="https://medium.com/@henryhdelgado/2fa-with-google-authenticator-in-asp-mvc-4788c79c47" rel="nofollow noreferrer">https://medium.com/@henryhdelgado/2fa-with-google-authenticator-in-asp-mvc-4788c79c47</a></p>