@openinc/parse-server-opendash 3.9.5 → 3.9.7

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.
@@ -500,4 +500,36 @@ exports.customoptions = {
500
500
  public: false,
501
501
  description: "Use the given JWT token instead of creating a new one.",
502
502
  },
503
+ MICROSOFT_CLIENT_ID: {
504
+ env: "OI_MICROSOFT_CLIENT_ID",
505
+ type: "string",
506
+ required: false,
507
+ secret: false,
508
+ public: false,
509
+ description: "Client ID for Microsoft authentication. This is the Application (client) ID from the Azure portal.",
510
+ },
511
+ MICROSOFT_CLIENT_SECRET: {
512
+ env: "OI_MICROSOFT_CLIENT_SECRET",
513
+ type: "string",
514
+ required: false,
515
+ secret: false,
516
+ public: false,
517
+ description: "Client Secret for Microsoft authentication. This is the Client Secret from the Azure portal.",
518
+ },
519
+ MICROSOFT_TENANT_ID: {
520
+ env: "OI_MICROSOFT_TENANT_ID",
521
+ type: "string",
522
+ required: false,
523
+ secret: false,
524
+ public: false,
525
+ description: "Tenant ID for Microsoft authentication. This is the Directory (tenant) ID from the Azure portal.",
526
+ },
527
+ MICROSOFT_APP_ID: {
528
+ env: "OI_MICROSOFT_APP_ID",
529
+ type: "string",
530
+ required: false,
531
+ secret: false,
532
+ public: false,
533
+ description: "Application ID for Microsoft authentication. This is the Application (client) ID from the Azure portal.",
534
+ },
503
535
  };
@@ -4,11 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.init = init;
7
+ const crypto_1 = require("crypto");
7
8
  const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
8
9
  const jwks_rsa_1 = __importDefault(require("jwks-rsa"));
9
- const crypto_1 = require("crypto");
10
- const tenantId = process.env.MICROSOFT_TENANT_ID;
11
- const appId = process.env.MICROSOFT_APP_ID;
10
+ const config_1 = require("../features/config");
11
+ const tenantId = config_1.ConfigInstance.getInstance().get("MICROSOFT_TENANT_ID");
12
+ const appId = config_1.ConfigInstance.getInstance().get("MICROSOFT_APP_ID");
12
13
  // Setup JWKS client for Microsoft (replace TENANT_ID)
13
14
  const client = (0, jwks_rsa_1.default)({
14
15
  jwksUri: `https://login.microsoftonline.com/${tenantId}/discovery/v2.0/keys`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.9.5",
3
+ "version": "3.9.7",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "keywords": [
@@ -72,15 +72,14 @@
72
72
  "@opentelemetry/semantic-conventions": "^1.34.0",
73
73
  "@opentelemetry/winston-transport": "^0.13.0",
74
74
  "bree": "^9.2.4",
75
- "cabin": "^14.0.0",
76
75
  "cron": "^4.3.1",
77
76
  "dayjs": "^1.11.13",
78
77
  "fast-equals": "^5.2.2",
79
78
  "jsonwebtoken": "^9.0.2",
80
79
  "jwks-rsa": "^3.2.0",
81
- "nodemailer": "^7.0.4",
80
+ "nodemailer": "^7.0.5",
82
81
  "nunjucks": "^3.2.4",
83
- "parse-server": "^8.2.1",
82
+ "parse-server": "^8.2.2",
84
83
  "pdf-img-convert": "2.0.0",
85
84
  "semantic-release": "^24.2.6",
86
85
  "table": "^6.9.0",
@@ -96,7 +95,7 @@
96
95
  "@semantic-release/npm": "^12.0.2",
97
96
  "@semantic-release/release-notes-generator": "^14.0.3",
98
97
  "@types/jsonwebtoken": "^9.0.10",
99
- "@types/node": "^24.0.10",
98
+ "@types/node": "^24.0.12",
100
99
  "@types/nodemailer": "^6.4.17",
101
100
  "@types/nunjucks": "^3.2.6",
102
101
  "@types/parse": "^3.0.9",