@boxyhq/saml-jackson 1.8.2 → 1.9.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 (49) hide show
  1. package/dist/controller/admin.d.ts +7 -3
  2. package/dist/controller/admin.js +17 -1
  3. package/dist/controller/admin.js.map +1 -1
  4. package/dist/controller/connection/saml.js +11 -8
  5. package/dist/controller/connection/saml.js.map +1 -1
  6. package/dist/controller/oauth.d.ts +3 -1
  7. package/dist/controller/oauth.js +321 -211
  8. package/dist/controller/oauth.js.map +1 -1
  9. package/dist/controller/saml-handler.d.ts +1 -0
  10. package/dist/controller/saml-handler.js +7 -4
  11. package/dist/controller/saml-handler.js.map +1 -1
  12. package/dist/controller/utils.d.ts +2 -1
  13. package/dist/controller/utils.js +1 -0
  14. package/dist/controller/utils.js.map +1 -1
  15. package/dist/directory-sync/DirectoryUsers.js +10 -9
  16. package/dist/directory-sync/DirectoryUsers.js.map +1 -1
  17. package/dist/directory-sync/types.d.ts +11 -0
  18. package/dist/directory-sync/utils.d.ts +6 -9
  19. package/dist/directory-sync/utils.js +35 -28
  20. package/dist/directory-sync/utils.js.map +1 -1
  21. package/dist/ee/branding/index.d.ts +15 -0
  22. package/dist/ee/branding/index.js +49 -0
  23. package/dist/ee/branding/index.js.map +1 -0
  24. package/dist/ee/federated-saml/app.d.ts +12 -5
  25. package/dist/ee/federated-saml/app.js +19 -12
  26. package/dist/ee/federated-saml/app.js.map +1 -1
  27. package/dist/ee/federated-saml/index.d.ts +3 -2
  28. package/dist/ee/federated-saml/index.js +2 -2
  29. package/dist/ee/federated-saml/index.js.map +1 -1
  30. package/dist/ee/federated-saml/sso.d.ts +4 -1
  31. package/dist/ee/federated-saml/sso.js +70 -45
  32. package/dist/ee/federated-saml/sso.js.map +1 -1
  33. package/dist/ee/federated-saml/types.d.ts +3 -0
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.js +12 -2
  36. package/dist/index.js.map +1 -1
  37. package/dist/saml/lib.d.ts +1 -0
  38. package/dist/saml/lib.js +3 -2
  39. package/dist/saml/lib.js.map +1 -1
  40. package/dist/saml-tracer/index.d.ts +14 -0
  41. package/dist/saml-tracer/index.js +87 -0
  42. package/dist/saml-tracer/index.js.map +1 -0
  43. package/dist/saml-tracer/types.d.ts +31 -0
  44. package/dist/saml-tracer/types.js +3 -0
  45. package/dist/saml-tracer/types.js.map +1 -0
  46. package/dist/typings.d.ts +16 -0
  47. package/dist/typings.js +1 -0
  48. package/dist/typings.js.map +1 -1
  49. package/package.json +10 -9
package/dist/typings.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { JWK } from 'jose';
2
2
  import type { IssuerMetadata } from 'openid-client';
3
3
  export * from './ee/federated-saml/types';
4
+ export * from './saml-tracer/types';
4
5
  export * from './directory-sync/types';
5
6
  interface SSOConnection {
6
7
  defaultRedirectUrl: string;
@@ -144,6 +145,8 @@ export interface IOAuthController {
144
145
  }
145
146
  export interface IAdminController {
146
147
  getAllConnection(pageOffset?: number, pageLimit?: number): any;
148
+ getAllSAMLTraces(pageOffset: number, pageLimit: number): any;
149
+ getSAMLTraceById(traceId: string): any;
147
150
  }
148
151
  export interface IHealthCheckController {
149
152
  status(): Promise<{
@@ -323,6 +326,10 @@ export interface JacksonOption {
323
326
  adminToken?: string;
324
327
  };
325
328
  noAnalytics?: boolean;
329
+ terminus?: {
330
+ host?: string;
331
+ adminToken?: string;
332
+ };
326
333
  }
327
334
  export interface SLORequestParams {
328
335
  nameId: string;
@@ -396,3 +403,12 @@ export type SetupLink = {
396
403
  validTill: number;
397
404
  };
398
405
  export type SetupLinkService = 'sso' | 'dsync';
406
+ export type AdminPortalSettings = {
407
+ branding: AdminPortalBranding;
408
+ };
409
+ export type AdminPortalBranding = {
410
+ logoUrl: string | null;
411
+ faviconUrl: string | null;
412
+ primaryColor: string | null;
413
+ companyName: string | null;
414
+ };
package/dist/typings.js CHANGED
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ee/federated-saml/types"), exports);
18
+ __exportStar(require("./saml-tracer/types"), exports);
18
19
  __exportStar(require("./directory-sync/types"), exports);
19
20
  //# sourceMappingURL=typings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typings.js","sourceRoot":"","sources":["../src/typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,4DAA0C;AAC1C,yDAAuC"}
1
+ {"version":3,"file":"typings.js","sourceRoot":"","sources":["../src/typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,4DAA0C;AAC1C,sDAAoC;AACpC,yDAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxyhq/saml-jackson",
3
- "version": "1.8.2",
3
+ "version": "1.9.1",
4
4
  "description": "SAML Jackson library",
5
5
  "keywords": [
6
6
  "SAML 2.0"
@@ -41,19 +41,20 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@boxyhq/saml20": "1.1.3",
44
+ "@boxyhq/error-code-mnemonic": "0.1.0",
44
45
  "@opentelemetry/api": "1.4.0",
45
- "@aws-sdk/credential-providers": "3.272.0",
46
- "axios": "1.3.3",
47
- "jose": "4.12.0",
46
+ "@aws-sdk/credential-providers": "3.282.0",
47
+ "axios": "1.3.4",
48
+ "jose": "4.13.1",
48
49
  "marked": "4.2.12",
49
50
  "mixpanel": "0.17.0",
50
- "mongodb": "5.0.1",
51
+ "mongodb": "5.1.0",
51
52
  "mssql": "9.1.1",
52
- "mysql2": "3.1.2",
53
+ "mysql2": "3.2.0",
53
54
  "node-forge": "1.3.1",
54
55
  "openid-client": "5.4.0",
55
56
  "pg": "8.9.0",
56
- "redis": "4.6.4",
57
+ "redis": "4.6.5",
57
58
  "reflect-metadata": "0.1.13",
58
59
  "ripemd160": "2.0.2",
59
60
  "typeorm": "0.3.12",
@@ -62,7 +63,7 @@
62
63
  },
63
64
  "devDependencies": {
64
65
  "@faker-js/faker": "7.6.0",
65
- "@types/node": "18.14.0",
66
+ "@types/node": "18.14.6",
66
67
  "@types/sinon": "10.0.13",
67
68
  "@types/tap": "15.0.8",
68
69
  "cross-env": "7.0.3",
@@ -73,6 +74,6 @@
73
74
  "typescript": "4.9.5"
74
75
  },
75
76
  "engines": {
76
- "node": ">=14.18.1"
77
+ "node": ">=16"
77
78
  }
78
79
  }