Hi,
Im currently doing web perf testing and encountering the errors below:
Error -26547: Authentication required, please use "web_set_user", e.g. web_set_user("domain\\user", "password", "host:port");
Error -26630: HTTP Status-Code=401 (Unauthorized) for "some website here"
I have tried applying the web_set_user functionality but still getting the same error and warnings.
Also, I have this warning comment inside my code. Hoping this will help you give me an adivse.
"/*Possible OAUTH authorization was detected. It is recommended to correlate the authorization parameters.*/"
I have checked some related forum posts but haven't found a way to completely solve my issue.
LR Version: 12.53
Protocol: HTTP/HTML
Screenshot of the error: Attached
Image may be NSFW.
Clik here to view.
Snippet of the code that causes the trouble:
web_custom_request("token_2",
"URL=http://somewebsitehere/oauth/token?_=somenumbersitehere",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=application/json",
"Referer=http://*****/login.html?",
"Snapshot=t123.inf",
"Mode=HTML",
"EncType=application/json",
"Body={\"username\":\"*****@domain.com\",\"password\":\"*****\",\"grant_type\":\"password\",\"client_id\":\"*****\",\"client_secret\":\"a\"}",
LAST);
---
web_custom_request("list",
"URL=http://somewebsitehere/services/profiles/profiles/list?_=somenumbersitehere",
"Method=OPTIONS",
"TargetFrame=",
"Resource=0",
"Referer=",
"Snapshot=t162.inf",
"Mode=HTML",
EXTRARES,
"Url=http://somewebsitehere/profile?_=somenumberhere", "Referer=http://somewebsitehere/?mode=view&_=somenumberhere", ENDITEM,
"Url=http://somewebsitehere?_=somenumberhere", "Referer=http://somewebsitehere?_=somenumberhere", ENDITEM,
"Url=http://somewebsitehere?_=somenumberhere", "Referer=http://somewebsitehere/?type=other", ENDITEM,
LAST);