diff --git a/package.json b/package.json index 9869bb3..3ff350a 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "build": "tsc", "prepare": "run-s build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", - "lint": "eslint \"{src,test}/**/*.ts\" --fix" + "lint": "eslint \"{src,test}/**/*.ts\" --fix", + "test": "bash ./test.sh" }, "dependencies": { "@node-saml/node-saml": "^4.0.0", diff --git a/src/response.ts b/src/response.ts index 516fbd1..835efc4 100644 --- a/src/response.ts +++ b/src/response.ts @@ -153,7 +153,7 @@ export class SpidResponse extends XML.XML { ); assert.strictEqual( data.subject.nameIdQualifier, - saml.idpIssuer, + idpIssuer, `Invalid NameQualifier "${data.subject.nameIdQualifier}"`, ); // SubjectConfirmation