Skip to content

Commit

Permalink
replaced isTesting with isTestingNodeSSPI to reduce conflict poential.
Browse files Browse the repository at this point in the history
Signed-off-by: abbr <[email protected]>
  • Loading branch information
abbr committed Jul 19, 2014
1 parent 3d4b39f commit 45841d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-sspi",
"version": "0.1.3",
"version": "0.1.4",
"description": "Windows SSPI server-side authentication for Node",
"main": "index.js",
"author": "Fred Wen<[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion quick-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var req = {
'authorization': 'BASIC dGVzdDp0ZXN0'
},
connection: {},
isTesting: true
isTestingNodeSSPI: true
};
var res = {
setHeader: function () {},
Expand Down
4 changes: 2 additions & 2 deletions src/NodeSSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ void basic_authentication(const Local<Object> opts,const Local<Object> req
pBaton->pInToken = pInToken;
pBaton->pInTokenSz = sz;
pBaton->retrieveGroups = opts->Get(String::New("retrieveGroups"))->BooleanValue();
if(req->HasOwnProperty(String::New("isTesting"))
&& req->Get(String::New("isTesting"))->BooleanValue()){
if(req->HasOwnProperty(String::New("isTestingNodeSSPI"))
&& req->Get(String::New("isTestingNodeSSPI"))->BooleanValue()){
pBaton->isTesting = true;
}
if(opts->Has(String::New("domain"))){
Expand Down

0 comments on commit 45841d3

Please sign in to comment.