【问题标题】:How can I performance/ping test an Azure application relying on Oauth2 authentication flow?如何对依赖 Oauth2 身份验证流的 Azure 应用程序进行性能/ping 测试?
【发布时间】:2017-07-17 07:04:15
【问题描述】:

我有一个带有 Azure AD Oauth2 身份验证流的 Azure 托管 Web 应用程序。 Oauth2 流程作为手动实现存在,但很快将依赖 Passport Azure AD。

由于身份验证过程,我无法快速使用 Azure 的内置性能测试功能或设置 ping 测试。

有哪些解决方案可以为此类应用程序进行基于云的性能和可用性测试?

【问题讨论】:

    标签: node.js azure oauth-2.0 performance-testing azure-application-insights


    【解决方案1】:

    如果您的代币寿命足够长(根据Configurable Token Lifetimes in Azure Active Directory),它可以是 1 天,您可以根据需要生成任意数量的代币,并为每个虚拟用户添加相关的Authorization headers

    或者,我建议您查看 How to Run Performance Tests on OAuth Secured Apps with JMeter 文章,该文章重点介绍了在性能测试期间绕过 OAuth 挑战的几种方法。

    【讨论】:

      猜你喜欢
      • 2019-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-10
      • 1970-01-01
      • 1970-01-01
      • 2022-01-13
      相关资源
      最近更新 更多