samlesa 3.3.1 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ async function base64LoginResponse({ requestInfo = {}, entity, user = {}, custom
130
130
  SubjectConfirmationDataNotOnOrAfter: OneMinutesLater,
131
131
  NameIDFormat: selectedNameIDFormat,
132
132
  NameID: user?.NameID || '',
133
- InResponseTo: get(requestInfo, 'extract.request.id', ''),
133
+ InResponseTo: get(requestInfo, 'extract.request.id', null),
134
134
  AuthnStatement: `<saml:AuthnStatement AuthnInstant="${now}" SessionNotOnOrAfter="${tenHoursLater}" SessionIndex="${sessionIndex}"><saml:AuthnContext><saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml:AuthnContextClassRef></saml:AuthnContext></saml:AuthnStatement>`,
135
135
  AttributeStatement: libsaml.attributeStatementBuilder(AttributeStatement),
136
136
  };
@@ -140,7 +140,7 @@ async function base64LoginResponse({ requestInfo = {}, entity, user = {}, custom
140
140
  }
141
141
  else {
142
142
  if (requestInfo !== null) {
143
- tvalue.InResponseTo = requestInfo?.extract?.request?.id ?? '';
143
+ tvalue.InResponseTo = requestInfo?.extract?.request?.id ?? null;
144
144
  }
145
145
  if (idpInit) {
146
146
  rawSamlResponse = libsaml.replaceTagsByValue(libsaml.defaultLoginResponseWithoutTResponseTemplate.context, tvalue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samlesa",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "High-level API for Single Sign On (SAML 2.0) baseed on samlify ",
5
5
  "main": "build/index.js",
6
6
  "keywords": [