I am successfully integrated the Microsoft Account login with Asp.net Application and working fine with the office 365 email Ids, but I am getting below error while login with Email id which is Secured by Duo Two-Factor Authentication.
"The remote server returned an error: (400) Bad Request.,"
when I tried on postman the error is
"AADSTS50158: External security challenge not satisfied. User will be redirected to another page or authentication provider to satisfy additional authentication challenges"
but when I am going to direct login from browser after inserting the credentials of Microsoft account it redirects to Duo page for Duo push which is fine.
but when I am trying to login with my Asp.net application after inserting Microsoft Credentials it is not redirecting to Duo Push and throwing error "The remote server returned an error: (400) Bad Request.,"
The code is below to call API
