javascript - Testing the Web API by comparing the response with that of WCF -
i have owin hosted web api servicing odata v4 endpoint integrated windows authentication. solution has tested wcf odata v1,v2,v3 endpoints. 60% of endpoints give same results of wcf on changing url /v3 /v4. since wcf endpoints already tested, thought of comparing endpoint's response of wcf.
is right way go?
on server side have used specifying auth scheme:
listener.authenticationschemes = authenticationschemes.integratedwindowsauthentication; i'm thinking of using javascript purpose
- login chrome , capture token.
- paste token in js file.
- attach
authorization: negotiate tokenheader every request. - query both /v3 , /v4 , obtain response in either json or xml , compare.
will same token valid in js?
Comments
Post a Comment