如何在拥有Sharepoint在线应用程序的JMeter中授权(使用OAuth 2.0)? [英] How to authorise (with OAuth 2.0) in JMeter having sharepoint online app?

查看:258
本文介绍了如何在拥有Sharepoint在线应用程序的JMeter中授权(使用OAuth 2.0)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经记录了所有测试用例的脚本,并由于OAuth 2.0无法运行所有测试用例而运行了所有测试用例.
现在,我必须在JMeter中对OAuth 2.0进行身份验证,我有以下信息:

I have recorded scripts for all test cases, and run all test cases due to the OAuth 2.0 it is failing all of the test cases.
Now I have to authenticate OAuth 2.0 in JMeter, I have following information:

client_id, response_mode, protectedtokena, response_type, resources, scope, nonce,redirect_uri,wsucxt, cobrandid, client-request-id.

推荐答案

  1. 在HTTP标头管理器中添加(或参数化)参数Authorization.添加Bearer ${AuthToken}值.您应该从先前的请求中解析该令牌.

  1. Add (or parametrize) parameter Authorization in your HTTP Header Manager. Add Bearer ${AuthToken} value. You should parse that token from previouse request.

检查有关如何解析身份验证令牌

这篇关于如何在拥有Sharepoint在线应用程序的JMeter中授权(使用OAuth 2.0)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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