Reputation: 347
We are developing an application that uses Azure Active directory for sign-in process. Azure AD is configured with MFA(multi-factor authentication). Now we are facing an issue with QA automation where we need to manually update the MFA code. Is there any way to get it done automatically or some other alternative for this.
Upvotes: 3
Views: 2063
Reputation: 58853
Generally automated processes require a bit more work when MFA is involved.
You have 2 options that I can think of right now:
We implemented the second case for a customer's background process: https://joonasw.net/view/adding-opt-in-feature-to-azure-ad-app
Oh, and in case you are talking about UI automation, the Azure AD product team has said to me many times that you should not try to automate the login page itself. It has invisible checks and may block your automated login. In these cases, you may need to have a user with no MFA, use the ROPC flow to get tokens, and somehow inject those tokens to your UI. Or use the refresh token approach to get the tokens and then inject them.
Upvotes: 4