如何在CI中的硒测试中解决AAD的多因素身份验证 [英] How to resolve Multi Factor authentication for AAD in Selenium test in CI

查看:52
本文介绍了如何在CI中的硒测试中解决AAD的多因素身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将硒测试集成到CI.我面临的问题是所有用户(甚至是测试用户)都受到多因素身份验证的保护,当我每次登录时在服务器上运行测试用例时,都会提示用户输入多因素.我们正在使用adal-angular.js和adal.js在SPA上运行硒测试用例如何解决这个问题?有什么方法可以在API服务器或SPA上创建逻辑交换机以绕过身份验证提示?

I am trying to integrate Selenium tests to CI. The problem I am facing is all the users (even test user) is protected by Multi-factor authentication and when I will run test cases on the server with each login there will a prompt user for the Multi factor. We are running selenium test cases on SPA using adal-angular.js and adal.js How to resolve this issue? Is there any way to create a logical switch on API server or SPA to bypass the authentication prompt?

谢谢.

推荐答案

您不能直接执行此操作.坦率地说,如果可以的话,我将非常担心MFA的安全性.

You cannot do this directly. Frankly if you could, I would be very concerned about the security of MFA at all.

话虽如此,也许有一种方法可以帮助前进.SMS调制解调器(即 https://www.diafaan.com/how-要/选择gsm-modem/),您可以向测试用户注册SIM卡,然后使用调制解调器解析传入的MFA挑战.

Having said that, there is probably a way to help move forward. An SMS Modem (i.e. https://www.diafaan.com/how-to/choose-gsm-modem/) you could register a SIM card with Test User and use the modem to parse the incoming MFA challenge.

另一种替代方法是使用3rd pary消息传递服务(如 Twilio )并注册专用的传入电话号码.然后在MFA中注册该号码.然后使用Twilio API解析MFA挑战.

Another alternative is to use 3rd pary messaging service (as Twilio) and register a dedicated incoming phone number. Then register that number with the MFA. Then use the Twilio API to parse the MFA challenge.

这篇关于如何在CI中的硒测试中解决AAD的多因素身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆