How to authorise (with OAuth 2.0) in JMeter having sharepoint online app?

拜拜、爱过 提交于 2019-12-12 10:02:40

问题


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:


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

  2. Check this guide about How to parse auth token



来源:https://stackoverflow.com/questions/54401892/how-to-authorise-with-oauth-2-0-in-jmeter-having-sharepoint-online-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!