AADSTS50158: User has not completed an external security challenge
The user has not completed an external security challenge.
What to check
- Follow the prompt to the approved authentication provider and check its result if the flow stops there.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The client redirects the user to the page or provider that can complete the additional challenge.
Microsoft remediation: Follow the redirected challenge and use Sign-in logs to check whether the user completed it.