@boxyhq/saml-jackson 1.28.1 → 1.28.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.
@@ -699,7 +699,7 @@ class OAuthController {
699
699
  }
700
700
  oidcAuthzResponse(body) {
701
701
  return __awaiter(this, void 0, void 0, function* () {
702
- var _a, _b, _c, _d, _e, _f, _g, _h;
702
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
703
703
  let oidcConnection;
704
704
  let session;
705
705
  let isSAMLFederated;
@@ -755,6 +755,7 @@ class OAuthController {
755
755
  isSAMLFederated,
756
756
  isOIDCFederated,
757
757
  requestedOIDCFlow: !!((_h = session === null || session === void 0 ? void 0 : session.requested) === null || _h === void 0 ? void 0 : _h.oidc),
758
+ oidcIdPRequest: (_j = session === null || session === void 0 ? void 0 : session.requested) === null || _j === void 0 ? void 0 : _j.oidcIdPRequest,
758
759
  },
759
760
  });
760
761
  // Rethrow err and redirect to Jackson error page
@@ -809,6 +810,7 @@ class OAuthController {
809
810
  acsUrl: session.requested.acsUrl,
810
811
  entityId: session.requested.entityId,
811
812
  requestedOIDCFlow: !!session.requested.oidc,
813
+ oidcIdPRequest: (_k = session === null || session === void 0 ? void 0 : session.requested) === null || _k === void 0 ? void 0 : _k.oidcIdPRequest,
812
814
  profile,
813
815
  error,
814
816
  error_description,
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/controller/oauth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,2CAA6B;AAC7B,+BAAiC;AACjC,+BAAkC;AAClC,4DAAkC;AAClC,iDAA6D;AAE7D,mCAAsE;AAkBtE,mCAWiB;AAEjB,kEAAoD;AACpD,mCAAuC;AACvC,yDAA2C;AAC3C,oEAAsD;AACtD,2DAA6C;AAC7C,uCAAqD;AACrD,+CAA2C;AAC3C,qCAA4E;AA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AI,oBAAY,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;YAC/C,CAAC;YAED,uCACK,GAAG,CAAC,MAAM,KACb,SAAS,EAAE,GAAG,CAAC,SAAS,IACxB;QACJ,CAAC;KAAA;CACF;AAxqCD,0CAwqCC"}
@@ -81,16 +81,18 @@ class SSOHandler {
81
81
  }
82
82
  try {
83
83
  const responseSigned = yield saml20_1.default.createSAMLResponse(Object.assign(Object.assign({ audience: session.requested.entityId, acsUrl: session.requested.acsUrl, requestId: session.requested.id, issuer: `${this.opts.samlAudience}`, claims: mappedClaims }, certificate), { flattenArray: true }));
84
- const responseForm = saml20_1.default.createPostForm(session.requested.acsUrl, [
85
- {
84
+ const params = [];
85
+ if (session.requested.relayState) {
86
+ params.push({
86
87
  name: 'RelayState',
87
88
  value: session.requested.relayState,
88
- },
89
- {
90
- name: 'SAMLResponse',
91
- value: Buffer.from(responseSigned).toString('base64'),
92
- },
93
- ]);
89
+ });
90
+ }
91
+ params.push({
92
+ name: 'SAMLResponse',
93
+ value: Buffer.from(responseSigned).toString('base64'),
94
+ });
95
+ const responseForm = saml20_1.default.createPostForm(session.requested.acsUrl, params);
94
96
  return { responseForm };
95
97
  }
96
98
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"sso-handler.js","sourceRoot":"","sources":["../../src/controller/sso-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAkC;AAClC,oDAA4B;AAC5B,+BAAiC;AACjC,+BAAkC;AAElC,iDAA2C;AAS3C,uCAAqD;AACrD,qDAAuC;AACvC,mCAAuC;AACvC,mCAAqC;AACrC,mCAA2C;AAC3C,2DAA6C;AAC7C,yDAA2C;AAC3C,qDAAyD;AAEzD,MAAM,eAAe,GAAG,IAAA,gBAAS,EAAC,iBAAU,CAAC,CAAC;AAE9C,MAAa,UAAU;IAKrB,YAAY,EACV,UAAU,EACV,OAAO,EACP,IAAI,GAKL;QA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1,18 @@
1
1
  import { OIDCIdPInitiatedReq } from '../../typings';
2
2
  export declare class IdPLogin {
3
3
  private ssoHandler;
4
+ private ssoTraces;
4
5
  private app;
5
6
  private opts;
6
- constructor({ connectionStore, sessionStore, app, opts }: {
7
- connectionStore: any;
8
- sessionStore: any;
7
+ constructor({ app, ssoHandler, ssoTraces, opts }: {
9
8
  app: any;
9
+ ssoHandler: any;
10
+ ssoTraces: any;
10
11
  opts: any;
11
12
  });
12
13
  oidcInitiateLogin(body: OIDCIdPInitiatedReq & {
13
- idp_hint?: string;
14
- }, fedAppId: string): Promise<{
14
+ fedAppId: string;
15
+ }): Promise<{
15
16
  redirect_url: string;
16
17
  }>;
17
18
  }
@@ -11,66 +11,84 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IdPLogin = void 0;
13
13
  const error_1 = require("../../controller/error");
14
- const sso_handler_1 = require("../../controller/sso-handler");
15
14
  const utils_1 = require("../../controller/utils");
16
15
  const checkLicense_1 = require("../common/checkLicense");
17
16
  class IdPLogin {
18
- constructor({ connectionStore, sessionStore, app, opts }) {
17
+ constructor({ app, ssoHandler, ssoTraces, opts }) {
19
18
  this.app = app;
19
+ this.ssoHandler = ssoHandler;
20
+ this.ssoTraces = ssoTraces;
20
21
  this.opts = opts;
21
- this.ssoHandler = new sso_handler_1.SSOHandler({
22
- connection: connectionStore,
23
- session: sessionStore,
24
- opts,
25
- });
26
22
  }
27
- oidcInitiateLogin(body, fedAppId // SAML Fed app only
28
- ) {
23
+ // Supported for SAML Federation only
24
+ oidcInitiateLogin(body) {
29
25
  return __awaiter(this, void 0, void 0, function* () {
30
26
  yield (0, checkLicense_1.throwIfInvalidLicense)(this.opts.boxyhqLicenseKey);
31
27
  let connection;
32
- const { iss, target_link_uri, idp_hint } = body;
33
- // get federated connection
34
- const fedApp = yield this.app.get({
35
- id: fedAppId,
36
- });
37
- if (fedApp.type !== 'saml') {
38
- throw new error_1.JacksonError('Third party login from an OIDC provider is only supported with SAML Federation', 400);
39
- }
40
- const requestedTenant = fedApp.tenant;
41
- const requestedProduct = fedApp.product;
42
- const response = yield this.ssoHandler.resolveConnection({
43
- tenant: requestedTenant,
44
- product: requestedProduct,
45
- idp_hint,
46
- authFlow: 'idp-initiated',
47
- originalParams: Object.assign({}, body),
48
- tenants: fedApp.tenants,
49
- idFedAppId: fedApp.id,
50
- fedType: fedApp.type, // will be saml
51
- thirdPartyLogin: { idpInitiatorType: 'oidc', iss, target_link_uri },
52
- });
53
- if ('connection' in response) {
54
- connection = response.connection;
55
- }
56
- if (!connection) {
57
- throw new error_1.JacksonError('IdP connection not found.', 404);
28
+ let fedApp;
29
+ const { iss, target_link_uri, fedAppId } = body;
30
+ try {
31
+ // get federated connection
32
+ fedApp = yield this.app.get({
33
+ id: fedAppId,
34
+ });
35
+ if (fedApp.type !== 'saml') {
36
+ throw new error_1.JacksonError('Third party login from an OIDC provider is only supported with SAML Federation', 400);
37
+ }
38
+ const requestedTenant = fedApp.tenant;
39
+ const requestedProduct = fedApp.product;
40
+ const response = yield this.ssoHandler.resolveConnection({
41
+ tenant: requestedTenant,
42
+ product: requestedProduct,
43
+ authFlow: 'idp-initiated',
44
+ originalParams: Object.assign({}, body),
45
+ tenants: fedApp.tenants,
46
+ idFedAppId: fedApp.id,
47
+ fedType: fedApp.type, // will be saml
48
+ thirdPartyLogin: { idpInitiatorType: 'oidc', iss, target_link_uri },
49
+ });
50
+ if ('connection' in response) {
51
+ connection = response.connection;
52
+ }
53
+ if (!connection) {
54
+ throw new error_1.JacksonError('IdP connection not found.', 404);
55
+ }
56
+ if (!(0, utils_1.isConnectionActive)(connection)) {
57
+ throw new error_1.JacksonError('OIDC connection is deactivated. Please contact your administrator.', 403);
58
+ }
59
+ const requestParams = {
60
+ acsUrl: fedApp.acsUrl,
61
+ entityId: fedApp.entityId,
62
+ tenant: fedApp.tenant,
63
+ product: fedApp.product,
64
+ relayState: target_link_uri,
65
+ oidcIdPRequest: body,
66
+ };
67
+ return yield this.ssoHandler.createOIDCRequest({
68
+ connection,
69
+ requestParams,
70
+ mappings: fedApp.mappings,
71
+ });
58
72
  }
59
- if (!(0, utils_1.isConnectionActive)(connection)) {
60
- throw new error_1.JacksonError('OIDC connection is deactivated. Please contact your administrator.', 403);
73
+ catch (err) {
74
+ const error_description = (0, utils_1.getErrorMessage)(err);
75
+ this.ssoTraces.saveTrace({
76
+ error: error_description,
77
+ context: {
78
+ tenant: (fedApp === null || fedApp === void 0 ? void 0 : fedApp.tenant) || '',
79
+ product: (fedApp === null || fedApp === void 0 ? void 0 : fedApp.product) || '',
80
+ clientID: (connection === null || connection === void 0 ? void 0 : connection.clientID) || '',
81
+ isSAMLFederated: true,
82
+ relayState: target_link_uri,
83
+ providerName: (connection === null || connection === void 0 ? void 0 : connection.oidcProvider.friendlyProviderName) || '',
84
+ acsUrl: fedApp === null || fedApp === void 0 ? void 0 : fedApp.acsUrl,
85
+ entityId: fedApp === null || fedApp === void 0 ? void 0 : fedApp.entityId,
86
+ isIdPFlow: true,
87
+ oidcIdPRequest: body,
88
+ },
89
+ });
90
+ throw err;
61
91
  }
62
- const requestParams = {
63
- acsUrl: fedApp.acsUrl,
64
- entityId: fedApp.entityId,
65
- tenant: fedApp.tenant,
66
- product: fedApp.product,
67
- relayState: target_link_uri,
68
- };
69
- return yield this.ssoHandler.createOIDCRequest({
70
- connection,
71
- requestParams,
72
- mappings: fedApp.mappings,
73
- });
74
92
  });
75
93
  }
76
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"idp-login.js","sourceRoot":"","sources":["../../../src/ee/identity-federation/idp-login.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAsD;AACtD,8DAA0D;AAC1D,kDAA4D;AAE5D,yDAA+D;AAG/D,MAAa,QAAQ;IAKnB,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE;QACtD,IAAI,CAAC,GAAG,GAA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BAEH,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;KAAA;CACF;AAnGD,4BAmGC"}
@@ -39,7 +39,7 @@ const IdentityFederation = (_a) => __awaiter(void 0, [_a], void 0, function* ({
39
39
  });
40
40
  const app = new app_1.App({ store: appStore, opts });
41
41
  const sso = new sso_1.SSO({ app, ssoHandler, ssoTraces, opts });
42
- const idpLogin = new idp_login_1.IdPLogin({ connectionStore, sessionStore, opts, app });
42
+ const idpLogin = new idp_login_1.IdPLogin({ app, ssoHandler, ssoTraces, opts });
43
43
  const response = {
44
44
  app,
45
45
  sso,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ee/identity-federation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B;AAC5B,+BAA4B;AAE5B,8DAA0D;AAC1D,2CAAuC;AAEvC,kEAAkE;AAClE,MAAM,kBAAkB,GAAG,KAQxB,EAAE,4CAR6B,EAChC,EAAE,EACF,IAAI,EACJ,SAAS,GAKV;IACC,MAAM,QAAQ,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC5D,MAAM,eAAe,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,IAAI,wBAAU,CAAC;QAChC,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,YAAY;QACrB,IAAI;KACL,CAAC,CAAC;IAEH,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,MAAM,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AAI,oBAAQ,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEpE,MAAM,QAAQ,GAAG;QACf,GAAG;QACH,GAAG;QACH,QAAQ;KACT,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,kBAAe,kBAAkB,CAAC;AAElC,0CAAwB;AAExB,wBAAwB;AACxB,qGAAqG;AACrG,oDAAoD;AACpD,2FAA2F;AAC3F,iEAAiE;AACjE,8FAA8F;AAC9F,4HAA4H"}
@@ -1,5 +1,6 @@
1
1
  import { SAMLProfile } from '@boxyhq/saml20/dist/typings';
2
2
  import SSOTraces from '.';
3
+ import { OIDCIdPInitiatedReq } from '../typings';
3
4
  export interface Trace {
4
5
  traceId: string;
5
6
  timestamp: number;
@@ -37,6 +38,7 @@ export interface SSOTrace extends Omit<Trace, 'traceId' | 'timestamp'> {
37
38
  id_token?: string;
38
39
  access_token?: string;
39
40
  };
41
+ oidcIdPRequest?: OIDCIdPInitiatedReq;
40
42
  };
41
43
  }
42
44
  export type SSOTracesInstance = InstanceType<typeof SSOTraces>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/saml-jackson",
3
- "version": "1.28.1",
3
+ "version": "1.28.2",
4
4
  "description": "SAML Jackson library",
5
5
  "keywords": [
6
6
  "SAML 2.0"
@@ -41,9 +41,9 @@
41
41
  "coverage-map": "map.js"
42
42
  },
43
43
  "dependencies": {
44
- "@aws-sdk/client-dynamodb": "3.637.0",
45
- "@aws-sdk/credential-providers": "3.637.0",
46
- "@aws-sdk/util-dynamodb": "3.637.0",
44
+ "@aws-sdk/client-dynamodb": "3.648.0",
45
+ "@aws-sdk/credential-providers": "3.645.0",
46
+ "@aws-sdk/util-dynamodb": "3.648.0",
47
47
  "@boxyhq/error-code-mnemonic": "0.1.1",
48
48
  "@boxyhq/metrics": "0.2.8",
49
49
  "@boxyhq/saml20": "1.5.1",
@@ -54,11 +54,11 @@
54
54
  "jose": "5.8.0",
55
55
  "lodash": "4.17.21",
56
56
  "mixpanel": "0.18.0",
57
- "mongodb": "6.8.0",
57
+ "mongodb": "6.8.1",
58
58
  "mssql": "11.0.1",
59
59
  "mysql2": "3.11.0",
60
60
  "node-forge": "1.3.1",
61
- "openid-client": "5.6.5",
61
+ "openid-client": "5.7.0",
62
62
  "pg": "8.12.0",
63
63
  "redis": "4.7.0",
64
64
  "reflect-metadata": "0.2.2",
@@ -67,9 +67,9 @@
67
67
  "typeorm": "0.3.20"
68
68
  },
69
69
  "devDependencies": {
70
- "@faker-js/faker": "8.4.1",
70
+ "@faker-js/faker": "9.0.0",
71
71
  "@types/lodash": "4.17.7",
72
- "@types/node": "22.5.2",
72
+ "@types/node": "22.5.4",
73
73
  "@types/sinon": "17.0.3",
74
74
  "@types/tap": "15.0.12",
75
75
  "cross-env": "7.0.3",
@@ -79,7 +79,7 @@
79
79
  "tap": "21.0.1",
80
80
  "ts-node": "10.9.2",
81
81
  "tsconfig-paths": "4.2.0",
82
- "typescript": "5.5.4"
82
+ "typescript": "5.6.2"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=16",