@boxyhq/saml-jackson 1.37.0 → 1.37.1

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.
Files changed (31) hide show
  1. package/dist/controller/api.d.ts +521 -474
  2. package/dist/controller/api.js +521 -474
  3. package/dist/controller/api.js.map +1 -1
  4. package/dist/controller/oauth.d.ts +88 -87
  5. package/dist/controller/oauth.js +146 -101
  6. package/dist/controller/oauth.js.map +1 -1
  7. package/dist/controller/setup-link.d.ts +343 -234
  8. package/dist/controller/setup-link.js +343 -234
  9. package/dist/controller/setup-link.js.map +1 -1
  10. package/dist/directory-sync/scim/DirectoryConfig.d.ts +265 -224
  11. package/dist/directory-sync/scim/DirectoryConfig.js +265 -224
  12. package/dist/directory-sync/scim/DirectoryConfig.js.map +1 -1
  13. package/dist/directory-sync/scim/Groups.d.ts +82 -87
  14. package/dist/directory-sync/scim/Groups.js +82 -87
  15. package/dist/directory-sync/scim/Groups.js.map +1 -1
  16. package/dist/directory-sync/scim/Users.d.ts +63 -49
  17. package/dist/directory-sync/scim/Users.js +63 -49
  18. package/dist/directory-sync/scim/Users.js.map +1 -1
  19. package/dist/directory-sync/scim/WebhookEventsLogger.d.ts +52 -61
  20. package/dist/directory-sync/scim/WebhookEventsLogger.js +52 -61
  21. package/dist/directory-sync/scim/WebhookEventsLogger.js.map +1 -1
  22. package/dist/ee/identity-federation/app.d.ts +292 -212
  23. package/dist/ee/identity-federation/app.js +292 -212
  24. package/dist/ee/identity-federation/app.js.map +1 -1
  25. package/dist/ee/identity-federation/idp-login.js +1 -1
  26. package/dist/ee/identity-federation/idp-login.js.map +1 -1
  27. package/dist/sso-traces/index.d.ts +67 -66
  28. package/dist/sso-traces/index.js +67 -66
  29. package/dist/sso-traces/index.js.map +1 -1
  30. package/dist/sso-traces/types.d.ts +1 -0
  31. package/package.json +7 -7
@@ -1,51 +1,5 @@
1
1
  import { GetByProductParams, Records, Storable, JacksonOptionWithRequiredLogger } from '../typings';
2
2
  import type { SSOTrace, Trace } from './types';
3
- /**
4
- * @swagger
5
- * definitions:
6
- * SSOTrace:
7
- * type: object
8
- * properties:
9
- * traceId:
10
- * type: string
11
- * description: Trace ID
12
- * error:
13
- * type: string
14
- * description: Error
15
- * timestamp:
16
- * type: string
17
- * description: Timestamp
18
- * context:
19
- * type: object
20
- * properties:
21
- * tenant:
22
- * type: string
23
- * description: Tenant
24
- * product:
25
- * type: string
26
- * description: Product
27
- * clientID:
28
- * type: string
29
- * description: Connection client ID
30
- * issuer:
31
- * type: string
32
- * description: Issuer
33
- * relayState:
34
- * type: string
35
- * description: Relay state
36
- * samlResponse:
37
- * type: string
38
- * description: SAML response
39
- * isSAMLFederated:
40
- * type: boolean
41
- * description: Indicates if SAML is federated
42
- * isOIDCFederated:
43
- * type: boolean
44
- * description: Indicates if OIDC is federated
45
- * isIdPFlow:
46
- * type: boolean
47
- * description: Indicates if request is from IdP
48
- */
49
3
  declare class SSOTraces {
50
4
  tracesStore: Storable;
51
5
  opts: JacksonOptionWithRequiredLogger;
@@ -55,44 +9,91 @@ declare class SSOTraces {
55
9
  });
56
10
  saveTrace(payload: SSOTrace): Promise<string | undefined>;
57
11
  /**
58
- * @swagger
12
+ * @openapi
13
+ * components:
14
+ * schemas:
15
+ * SSOTrace:
16
+ * type: object
17
+ * properties:
18
+ * traceId:
19
+ * type: string
20
+ * description: Trace ID
21
+ * error:
22
+ * type: string
23
+ * description: Error
24
+ * timestamp:
25
+ * type: string
26
+ * description: Timestamp
27
+ * context:
28
+ * type: object
29
+ * properties:
30
+ * tenant:
31
+ * type: string
32
+ * description: Tenant
33
+ * product:
34
+ * type: string
35
+ * description: Product
36
+ * clientID:
37
+ * type: string
38
+ * description: Connection client ID
39
+ * issuer:
40
+ * type: string
41
+ * description: Issuer
42
+ * relayState:
43
+ * type: string
44
+ * description: Relay state
45
+ * samlResponse:
46
+ * type: string
47
+ * description: SAML response
48
+ * isSAMLFederated:
49
+ * type: boolean
50
+ * description: Indicates if SAML is federated
51
+ * isOIDCFederated:
52
+ * type: boolean
53
+ * description: Indicates if OIDC is federated
54
+ * isIdPFlow:
55
+ * type: boolean
56
+ * description: Indicates if request is from IdP
57
+ *
58
+ */
59
+ /**
60
+ * @openapi
59
61
  * /api/v1/sso-traces:
60
62
  * get:
63
+ * tags:
64
+ * - SSO Traces
61
65
  * summary: Get trace by ID
62
66
  * parameters:
63
67
  * - name: id
64
- * description: Trace ID
65
68
  * in: query
69
+ * description: Trace ID
66
70
  * required: true
67
- * type: string
68
- * tags:
69
- * - SSO Traces
70
- * produces:
71
- * - application/json
71
+ * schema:
72
+ * type: string
72
73
  * responses:
73
- * '200':
74
+ * 200:
74
75
  * description: Success
75
- * schema:
76
- * $ref: '#/definitions/SSOTrace'
76
+ * content:
77
+ * application/json:
78
+ * schema:
79
+ * $ref: "#/components/schemas/SSOTrace"
77
80
  */
78
81
  getByTraceId(traceId: string): Promise<Trace>;
79
82
  getAllTraces(pageOffset?: number, pageLimit?: number, pageToken?: string): Promise<Records<Trace>>;
80
83
  /** Cleans up stale traces older than 1 week */
81
84
  cleanUpStaleTraces(): Promise<void>;
82
85
  /**
83
- * @swagger
86
+ * @openapi
84
87
  * /api/v1/sso-traces/product:
85
88
  * get:
86
- * summary: Get all traces for a product
87
- * parameters:
88
- * - $ref: '#/parameters/product'
89
- * - $ref: '#/parameters/pageOffset'
90
- * - $ref: '#/parameters/pageLimit'
91
- * - $ref: '#/parameters/pageToken'
92
89
  * tags:
93
90
  * - SSO Traces
94
- * produces:
95
- * - application/json
91
+ * summary: Get all traces for a product
92
+ * parameters:
93
+ * - $ref: '#/components/parameters/product'
94
+ * - $ref: '#/components/parameters/pageOffset'
95
+ * - $ref: '#/components/parameters/pageLimit'
96
+ * - $ref: '#/components/parameters/pageToken'
96
97
  * responses:
97
98
  * '200':
98
99
  * description: Success
@@ -104,7 +105,7 @@ declare class SSOTraces {
104
105
  * data:
105
106
  * type: array
106
107
  * items:
107
- * $ref: '#/definitions/SSOTrace'
108
+ * $ref: '#/components/schemas/SSOTrace'
108
109
  * pageToken:
109
110
  * type: string
110
111
  * description: token for pagination
@@ -16,52 +16,6 @@ const error_1 = require("../controller/error");
16
16
  const INTERVAL_1_WEEK_MS = 7 * 24 * 60 * 60 * 1000;
17
17
  const INTERVAL_1_DAY_MS = 24 * 60 * 60 * 1000;
18
18
  const SSO_TRACES_REDACT_KEYS = ['profile', 'oidcTokenSet', 'samlResponse'];
19
- /**
20
- * @swagger
21
- * definitions:
22
- * SSOTrace:
23
- * type: object
24
- * properties:
25
- * traceId:
26
- * type: string
27
- * description: Trace ID
28
- * error:
29
- * type: string
30
- * description: Error
31
- * timestamp:
32
- * type: string
33
- * description: Timestamp
34
- * context:
35
- * type: object
36
- * properties:
37
- * tenant:
38
- * type: string
39
- * description: Tenant
40
- * product:
41
- * type: string
42
- * description: Product
43
- * clientID:
44
- * type: string
45
- * description: Connection client ID
46
- * issuer:
47
- * type: string
48
- * description: Issuer
49
- * relayState:
50
- * type: string
51
- * description: Relay state
52
- * samlResponse:
53
- * type: string
54
- * description: SAML response
55
- * isSAMLFederated:
56
- * type: boolean
57
- * description: Indicates if SAML is federated
58
- * isOIDCFederated:
59
- * type: boolean
60
- * description: Indicates if OIDC is federated
61
- * isIdPFlow:
62
- * type: boolean
63
- * description: Indicates if request is from IdP
64
- */
65
19
  class SSOTraces {
66
20
  constructor({ tracesStore, opts }) {
67
21
  this.tracesStore = tracesStore;
@@ -118,25 +72,74 @@ class SSOTraces {
118
72
  });
119
73
  }
120
74
  /**
121
- * @swagger
75
+ * @openapi
76
+ * components:
77
+ * schemas:
78
+ * SSOTrace:
79
+ * type: object
80
+ * properties:
81
+ * traceId:
82
+ * type: string
83
+ * description: Trace ID
84
+ * error:
85
+ * type: string
86
+ * description: Error
87
+ * timestamp:
88
+ * type: string
89
+ * description: Timestamp
90
+ * context:
91
+ * type: object
92
+ * properties:
93
+ * tenant:
94
+ * type: string
95
+ * description: Tenant
96
+ * product:
97
+ * type: string
98
+ * description: Product
99
+ * clientID:
100
+ * type: string
101
+ * description: Connection client ID
102
+ * issuer:
103
+ * type: string
104
+ * description: Issuer
105
+ * relayState:
106
+ * type: string
107
+ * description: Relay state
108
+ * samlResponse:
109
+ * type: string
110
+ * description: SAML response
111
+ * isSAMLFederated:
112
+ * type: boolean
113
+ * description: Indicates if SAML is federated
114
+ * isOIDCFederated:
115
+ * type: boolean
116
+ * description: Indicates if OIDC is federated
117
+ * isIdPFlow:
118
+ * type: boolean
119
+ * description: Indicates if request is from IdP
120
+ *
121
+ */
122
+ /**
123
+ * @openapi
122
124
  * /api/v1/sso-traces:
123
125
  * get:
126
+ * tags:
127
+ * - SSO Traces
124
128
  * summary: Get trace by ID
125
129
  * parameters:
126
130
  * - name: id
127
- * description: Trace ID
128
131
  * in: query
132
+ * description: Trace ID
129
133
  * required: true
130
- * type: string
131
- * tags:
132
- * - SSO Traces
133
- * produces:
134
- * - application/json
134
+ * schema:
135
+ * type: string
135
136
  * responses:
136
- * '200':
137
+ * 200:
137
138
  * description: Success
138
- * schema:
139
- * $ref: '#/definitions/SSOTrace'
139
+ * content:
140
+ * application/json:
141
+ * schema:
142
+ * $ref: "#/components/schemas/SSOTrace"
140
143
  */
141
144
  getByTraceId(traceId) {
142
145
  return __awaiter(this, void 0, void 0, function* () {
@@ -166,19 +169,17 @@ class SSOTraces {
166
169
  });
167
170
  }
168
171
  /**
169
- * @swagger
172
+ * @openapi
170
173
  * /api/v1/sso-traces/product:
171
174
  * get:
172
- * summary: Get all traces for a product
173
- * parameters:
174
- * - $ref: '#/parameters/product'
175
- * - $ref: '#/parameters/pageOffset'
176
- * - $ref: '#/parameters/pageLimit'
177
- * - $ref: '#/parameters/pageToken'
178
175
  * tags:
179
176
  * - SSO Traces
180
- * produces:
181
- * - application/json
177
+ * summary: Get all traces for a product
178
+ * parameters:
179
+ * - $ref: '#/components/parameters/product'
180
+ * - $ref: '#/components/parameters/pageOffset'
181
+ * - $ref: '#/components/parameters/pageLimit'
182
+ * - $ref: '#/components/parameters/pageToken'
182
183
  * responses:
183
184
  * '200':
184
185
  * description: Success
@@ -190,7 +191,7 @@ class SSOTraces {
190
191
  * data:
191
192
  * type: array
192
193
  * items:
193
- * $ref: '#/definitions/SSOTrace'
194
+ * $ref: '#/components/schemas/SSOTrace'
194
195
  * pageToken:
195
196
  * type: string
196
197
  * description: token for pagination
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sso-traces/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,qEAA+D;AAC/D,+CAAiD;AACjD,uCAA2C;AAE3C,+CAAmD;AAEnD,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACnD,MAAM,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC9C,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,SAAS;IAIb,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,qCAAqC;QACrC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,6BAA6B;QAC7B,WAAW,CAAC,GAAS,EAAE;YACrB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC5B,CAAC,CAAA,EAAE,iBAAiB,CAAC,CAAC;IACxB,CAAC;IAEY,SAAS,CAAC,OAAiB;;;YACtC,IAAI,MAAA,IAAI,CAAC,IAAI,CAAC,SAAS,0CAAE,OAAO,EAAE,CAAC;gBACjC,OAAO;YACT,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;gBAE5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AC;YACd,GAAG,CAAC;gBACF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC;oBACxC,OAAO;oBACP,UAAU,EAAE,CAAC;oBACb,SAAS,EAAE,EAAE;iBACd,CAAC,CAAC;gBACH,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;oBAClC,MAAM;gBACR,CAAC;gBACD,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;gBAC1B,mCAAmC;gBACnC,uDAAuD;gBACvD,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC5E,CAAC,QAAQ,SAAS,EAAE;QACtB,CAAC;KAAA;IAEY,cAAc,CAAC,OAAe;;YACzC,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;gBACrC,IAAI,EAAE,kBAAU,CAAC,OAAO;gBACxB,KAAK,EAAE,OAAO;aACf,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAED,kBAAe,SAAS,CAAC"}
@@ -39,6 +39,7 @@ export interface SSOTrace extends Omit<Trace, 'traceId' | 'timestamp'> {
39
39
  access_token?: string;
40
40
  };
41
41
  oidcIdPRequest?: OIDCIdPInitiatedReq;
42
+ oAuthStage?: 'token_fetch' | 'userinfo_fetch';
42
43
  };
43
44
  }
44
45
  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.37.0",
3
+ "version": "1.37.1",
4
4
  "description": "SAML Jackson library",
5
5
  "keywords": [
6
6
  "SAML 2.0"
@@ -43,9 +43,9 @@
43
43
  "coverage-map": "map.js"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/client-dynamodb": "3.734.0",
47
- "@aws-sdk/credential-providers": "3.734.0",
48
- "@aws-sdk/util-dynamodb": "3.734.0",
46
+ "@aws-sdk/client-dynamodb": "3.741.0",
47
+ "@aws-sdk/credential-providers": "3.741.0",
48
+ "@aws-sdk/util-dynamodb": "3.741.0",
49
49
  "@boxyhq/error-code-mnemonic": "0.1.1",
50
50
  "@boxyhq/metrics": "0.2.9",
51
51
  "@boxyhq/saml20": "1.7.1",
@@ -56,7 +56,7 @@
56
56
  "jose": "5.9.6",
57
57
  "lodash": "4.17.21",
58
58
  "mixpanel": "0.18.0",
59
- "mongodb": "6.12.0",
59
+ "mongodb": "6.13.0",
60
60
  "mssql": "11.0.1",
61
61
  "mysql2": "3.12.0",
62
62
  "node-forge": "1.3.1",
@@ -71,10 +71,10 @@
71
71
  "devDependencies": {
72
72
  "@faker-js/faker": "9.4.0",
73
73
  "@types/lodash": "4.17.15",
74
- "@types/node": "22.12.0",
74
+ "@types/node": "22.13.1",
75
75
  "@types/sinon": "17.0.3",
76
76
  "cross-env": "7.0.3",
77
- "migrate-mongo": "11.0.0",
77
+ "migrate-mongo": "12.1.3",
78
78
  "nock": "14.0.0",
79
79
  "sinon": "19.0.2",
80
80
  "tap": "21.0.1",