@boxyhq/saml-jackson 0.3.6-beta.657 → 0.3.6-beta.661

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.
@@ -144,8 +144,8 @@ class OAuthController {
144
144
  }
145
145
  samlResponse(body) {
146
146
  return __awaiter(this, void 0, void 0, function* () {
147
- const { SAMLResponse } = body; // RelayState will contain the sessionId from earlier quasi-oauth flow
148
- let RelayState = body.RelayState || '';
147
+ const { SAMLResponse } = body;
148
+ let RelayState = body.RelayState || ''; // RelayState will contain the sessionId from earlier quasi-oauth flow
149
149
  if (!this.opts.idpEnabled && !RelayState.startsWith(relayStatePrefix)) {
150
150
  // IDP is disabled so block the request
151
151
  throw new error_1.JacksonError('IdP (Identity Provider) flow has been disabled. Please head to your Service Provider to login.', 403);
@@ -284,7 +284,7 @@ class OAuthController {
284
284
  }
285
285
  else if (client_id && client_secret) {
286
286
  // check if we have an encoded client_id
287
- if (client_id !== 'dummy' && client_secret !== 'dummy') {
287
+ if (client_id !== 'dummy') {
288
288
  const sp = getEncodedClientId(client_id);
289
289
  if (!sp) {
290
290
  // OAuth flow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/saml-jackson",
3
- "version": "0.3.6-beta.657",
3
+ "version": "0.3.6-beta.661",
4
4
  "description": "SAML 2.0 service",
5
5
  "keywords": [
6
6
  "SAML 2.0"
@@ -56,13 +56,13 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/express": "4.17.13",
59
- "@types/node": "17.0.16",
59
+ "@types/node": "17.0.17",
60
60
  "@types/sinon": "10.0.11",
61
61
  "@types/tap": "15.0.5",
62
62
  "@typescript-eslint/eslint-plugin": "5.11.0",
63
63
  "@typescript-eslint/parser": "5.11.0",
64
64
  "cross-env": "7.0.3",
65
- "eslint": "8.8.0",
65
+ "eslint": "8.9.0",
66
66
  "eslint-config-prettier": "8.3.0",
67
67
  "prettier": "2.5.1",
68
68
  "sinon": "13.0.1",