Merge branch 'main' into feat/product-config

This commit is contained in:
Kiran K 2023-11-21 10:03:10 +05:30
commit 8be2e20f90
13 changed files with 582 additions and 476 deletions

View File

@ -90,4 +90,9 @@ WEBHOOK_URL=
WEBHOOK_SECRET=
# Directory sync webhook event batch size (Eg: 50)
DSYNC_WEBHOOK_BATCH_SIZE=
DSYNC_WEBHOOK_BATCH_SIZE=
# Google workspace directory sync
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=

View File

@ -138,7 +138,7 @@ jobs:
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- run: npm run custom-install
- run: npm install
- run: npm run check-lint
- run: npm run check-format
- run: npm run build

View File

@ -30,10 +30,10 @@ Navigate to the project folder and install the necessary dependencies:
cd jackson
```
#### Install Custom Dependencies
#### Install Dependencies
```shell
npm run custom-install
npm install
```
#### Configure Environment Variables

View File

@ -11,7 +11,7 @@ WORKDIR /app
COPY package.json package-lock.json ./
COPY npm npm
COPY migrate.sh prebuild.ts ./
RUN npm run custom-install
RUN npm install

View File

@ -110,7 +110,7 @@ Run the dev server:
```zsh
# Install the packages
npm run custom-install
npm install
# Start the server
npm run dev
```

View File

@ -1,7 +1,7 @@
import { useRouter } from 'next/router';
import { CreateSAMLConnection as CreateSAML, CreateOIDCConnection as CreateOIDC } from '@boxyhq/react-ui/sso';
import styles from 'styles/sdk-override.module.css';
import { errorToast } from '@components/Toaster';
interface CreateSSOConnectionProps {
@ -24,10 +24,14 @@ const CreateSSOConnection = ({ setupLinkToken, idpType }: CreateSSOConnectionPro
};
const urls = {
save: `/api/setup/${setupLinkToken}/sso-connection`,
post: `/api/setup/${setupLinkToken}/sso-connection`,
};
const _CSS = { input: 'input input-bordered', button: { ctoa: 'btn btn-primary' } };
const _CSS = {
input: `${styles['sdk-input']} input input-bordered`,
button: { ctoa: 'btn btn-primary' },
textarea: styles['sdk-input'],
};
return idpType === 'saml' ? (
<CreateSAML

View File

@ -98,4 +98,25 @@ module.exports = {
},
],
},
async headers() {
return [
{
source: '/(.*?)',
headers: [
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains;',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
],
},
];
},
};

View File

@ -9,7 +9,7 @@ You need someone like Jules Winnfield to save you from the vagaries of SAML logi
Jackson is available as an [npm package](https://www.npmjs.com/package/@boxyhq/saml-jackson) that can be integrated into any web application framework (like Express.js for example). Please file an issue or submit a PR if you encounter any issues with your choice of framework.
```bash
npm i @boxyhq/saml-jackson
npm install @boxyhq/saml-jackson
```
## Documentation

352
npm/package-lock.json generated
View File

@ -11,17 +11,17 @@
"dependencies": {
"@aws-sdk/client-dynamodb": "3.451.0",
"@aws-sdk/credential-providers": "3.451.0",
"@aws-sdk/util-dynamodb": "3.450.0",
"@aws-sdk/util-dynamodb": "3.454.0",
"@boxyhq/error-code-mnemonic": "0.1.1",
"@boxyhq/metrics": "0.2.6",
"@boxyhq/saml20": "1.3.2",
"@googleapis/admin": "13.0.0",
"axios": "1.6.1",
"axios": "1.6.2",
"encoding": "0.1.13",
"jose": "5.1.1",
"lodash": "4.17.21",
"mixpanel": "0.18.0",
"mongodb": "6.2.0",
"mongodb": "6.3.0",
"mssql": "10.0.1",
"mysql2": "3.6.3",
"node-forge": "1.3.1",
@ -37,14 +37,14 @@
"devDependencies": {
"@faker-js/faker": "8.3.1",
"@types/lodash": "4.14.201",
"@types/node": "20.9.0",
"@types/node": "20.9.2",
"@types/sinon": "17.0.1",
"@types/tap": "15.0.11",
"cross-env": "7.0.3",
"migrate-mongo": "11.0.0",
"nock": "13.3.8",
"sinon": "17.0.1",
"tap": "18.5.8",
"tap": "18.6.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.2.2"
@ -730,9 +730,9 @@
}
},
"node_modules/@aws-sdk/util-dynamodb": {
"version": "3.450.0",
"resolved": "https://registry.npmjs.org/@aws-sdk/util-dynamodb/-/util-dynamodb-3.450.0.tgz",
"integrity": "sha512-cjgtY84XVbHio5xMS+xjkVlL+s8HukPqmclmiIG7/TAplZW04Cm4kiLdGvDXfXXH20hdJJI9nvvFFba9tKfRyw==",
"version": "3.454.0",
"resolved": "https://registry.npmjs.org/@aws-sdk/util-dynamodb/-/util-dynamodb-3.454.0.tgz",
"integrity": "sha512-gcxzlUzFHHLnnDB8Pc3BqRc2WmbVDf3A8Xre1H5zPNtF8bZihYj0xk3KMK9Sfnk/tkDTL2PfQ2qNf7R7RLTNpw==",
"dependencies": {
"tslib": "^2.5.0"
},
@ -2484,9 +2484,9 @@
"integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw=="
},
"node_modules/@tapjs/after": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/after/-/after-1.1.16.tgz",
"integrity": "sha512-/KwElRYMMN4pKDP0VT1a5d9RLsnV/HrnpvBbDJiavs816wQOEOwMt1q4rXVU2XO6cSpXn0cm77xBLDkkBlJQWA==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/after/-/after-1.1.17.tgz",
"integrity": "sha512-14qeP+mHZ8nIMDGtdCwTgvKclLlHxfARMTasb9fw//tmF/8ZDZhTemtCDxAP75wihxy5P7nzVZo/6TpVeOZrwg==",
"dev": true,
"dependencies": {
"is-actual-promise": "^1.0.0"
@ -2495,13 +2495,13 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/after-each": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/after-each/-/after-each-1.1.16.tgz",
"integrity": "sha512-TlhGKfX+3GHwqGhMxNWZ50xb8vfwp2+kx0COTbuGLrwcCgwmpFPU/r/7td03BOtdCV2J1yKFxGiRDvZyowZLyg==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/after-each/-/after-each-1.1.17.tgz",
"integrity": "sha512-ia8sr00Wilni+2+wO4MKYCYikeRwUC41HamV8EPN63R2UmiBEOe/cMSf+KYADIh56JvxAiH7Xa0+GSFU+N2FQQ==",
"dev": true,
"dependencies": {
"function-loop": "^4.0.0"
@ -2510,18 +2510,18 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/asserts": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/asserts/-/asserts-1.1.16.tgz",
"integrity": "sha512-gf37N6VMv7iuaomB8Yr+3VyuPS77kXy6Uw2n2AHsiU47Q0eNodjrN0d2G+glfrXfD3zLbsLuQHx4x6IsAsgq7Q==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/asserts/-/asserts-1.1.17.tgz",
"integrity": "sha512-eKmbWBORDXu9bUHtPTu7qFrXNj5UeeH2nABJeP9BGHIn2ydmTgMEWCO3E+ljf7tisHchY5/x672lr99+O/mbTQ==",
"dev": true,
"dependencies": {
"@tapjs/stack": "1.2.7",
"is-actual-promise": "^1.0.0",
"tcompare": "6.4.4",
"tcompare": "6.4.5",
"trivial-deferred": "^2.0.0"
},
"engines": {
@ -2531,13 +2531,13 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/before": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/before/-/before-1.1.16.tgz",
"integrity": "sha512-3hO7eQbL1Ac8OgPq9+nBuQS4cz/eVGcaPDs0cTcTy3NYbhCrp4MGTpRtKxF4Cds1Y/rHAipB81MhZrmG7xBjlg==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/before/-/before-1.1.17.tgz",
"integrity": "sha512-pAmEAIMIqF9MPNUgEsnuWCM00iD/FJOX0P5eXSsWexWHjuZAkv5tIT/4qpXO9KYj+9c51Lh+7YSY2Xvk1Jjolw==",
"dev": true,
"dependencies": {
"is-actual-promise": "^1.0.0"
@ -2546,13 +2546,13 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/before-each": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/before-each/-/before-each-1.1.16.tgz",
"integrity": "sha512-yJAt0yGOQFnozmm2fQSfAELp/hMzudYOr4udANZ/1RIVJYXHThj0qrUZP9nEkXMWK4wRQytOInt1jEwXR/cFfQ==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/before-each/-/before-each-1.1.17.tgz",
"integrity": "sha512-d2Um3Y2j0m563QNsSxczh+QeSg5sBngnBFGOelUtQVqmq91oNWU/7mY1pwN6ip8mMIQYD75CIhq5/Z57DGomWQ==",
"dev": true,
"dependencies": {
"function-loop": "^4.0.0"
@ -2561,17 +2561,17 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/config": {
"version": "2.4.13",
"resolved": "https://registry.npmjs.org/@tapjs/config/-/config-2.4.13.tgz",
"integrity": "sha512-gnRSrHoISe7bXTa7ew2YwkXh9XmLc0GwrgwUcwq6Pyz/aqdT8NdvwDZb77uv7VQyJiZk5BkziNsn4qTKsBpOGw==",
"version": "2.4.14",
"resolved": "https://registry.npmjs.org/@tapjs/config/-/config-2.4.14.tgz",
"integrity": "sha512-dkjPVJGbLJC9BxCAxudAGiijnKc6XcQbpBSMAGJ/+VoRSqXlPkMWz0d8Ad3rNt7s+g2GBEWBx1kV7wcKtLlxmw==",
"dev": true,
"dependencies": {
"@tapjs/core": "1.4.5",
"@tapjs/test": "1.3.16",
"@tapjs/core": "1.4.6",
"@tapjs/test": "1.3.17",
"chalk": "^5.2.0",
"jackspeak": "^2.3.6",
"polite-json": "^4.0.1",
@ -2585,19 +2585,19 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5",
"@tapjs/test": "1.3.16"
"@tapjs/core": "1.4.6",
"@tapjs/test": "1.3.17"
}
},
"node_modules/@tapjs/core": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/@tapjs/core/-/core-1.4.5.tgz",
"integrity": "sha512-vvLrM75t1/Yq2MlH1x3jfJPdPs4ArR+tFTpzNgQ+PF50x0PTDup1sVj7ZhZbNY4zeQFsvnVtoReptr3FsMix7Q==",
"version": "1.4.6",
"resolved": "https://registry.npmjs.org/@tapjs/core/-/core-1.4.6.tgz",
"integrity": "sha512-cAKtdGJslrziwi/RJBU7jF930P/eSsemv295t6yLekNVP0XUCNtLFYirxuS1Xwob0nt0g/k+94xXB7o1wdTQvA==",
"dev": true,
"dependencies": {
"@tapjs/processinfo": "^3.1.6",
"@tapjs/stack": "1.2.7",
"@tapjs/test": "1.3.16",
"@tapjs/test": "1.3.17",
"async-hook-domain": "^4.0.1",
"diff": "^5.1.0",
"is-actual-promise": "^1.0.0",
@ -2605,7 +2605,7 @@
"signal-exit": "4.1",
"tap-parser": "15.3.1",
"tap-yaml": "2.2.1",
"tcompare": "6.4.4",
"tcompare": "6.4.5",
"trivial-deferred": "^2.0.0"
},
"engines": {
@ -2628,9 +2628,9 @@
}
},
"node_modules/@tapjs/filter": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@tapjs/filter/-/filter-1.2.16.tgz",
"integrity": "sha512-TiOjFMy+Sg5Lnm5pzUcjgpyw19bEg0WejLGpml0DPQi/OEVYlazu2lcDQFRgpRBhvYlOc7we9nul2y2a3Jh8PQ==",
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/@tapjs/filter/-/filter-1.2.17.tgz",
"integrity": "sha512-ytsqoPThV92ML1+M+cHlhAS7nOQpDNRBJiPqw20/GmNeoQXsDzVUlWR89DP3WNNUPrr/c1pCVr9XHVhCIeYk0w==",
"dev": true,
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
@ -2639,13 +2639,13 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/fixture": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@tapjs/fixture/-/fixture-1.2.16.tgz",
"integrity": "sha512-9+QUkGW4CoSR4cKO3vLe9YYsBgD9wCRvta5jxquTWk9VJiVQZ3pKIqaSULB47kUZbtERorhvI7J5YCYWnVbF7A==",
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/@tapjs/fixture/-/fixture-1.2.17.tgz",
"integrity": "sha512-eOOQxtsEcQ/sBxaZhpqdF9DCNxXAvLuiE5HgyL6d1eB4eceu57uIUKK7NDtFVv+vlbQH/NoiSTxmN/IBRbKT8w==",
"dev": true,
"dependencies": {
"mkdirp": "^3.0.0",
@ -2658,32 +2658,32 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/intercept": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@tapjs/intercept/-/intercept-1.2.16.tgz",
"integrity": "sha512-Mgw3ib7bu2cFjbeujFw6y7CcEq1mNd/EQhrg1L9Q96bETtp9YNSlox4Z7MKmTEtnk9fzuCIVs7T9QbI8eq2k7w==",
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/@tapjs/intercept/-/intercept-1.2.17.tgz",
"integrity": "sha512-CNuYBxiFBMNALS1PxH3yGI10H8ObxOoD67C2xGWyzXeYrPJ/R4x31Sda9bqaoK3uf/vj28bC9kSECCFjRsNAEg==",
"dev": true,
"dependencies": {
"@tapjs/after": "1.1.16",
"@tapjs/after": "1.1.17",
"@tapjs/stack": "1.2.7"
},
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/mock": {
"version": "1.2.14",
"resolved": "https://registry.npmjs.org/@tapjs/mock/-/mock-1.2.14.tgz",
"integrity": "sha512-HnXUmkn3xk4gzoMb3s77EK2CJaBzAoi1hzyyE6abBJf8dnLCid4xUOs+H4KybWllKcwwIUr0yzKmXJl7eCWVbQ==",
"version": "1.2.15",
"resolved": "https://registry.npmjs.org/@tapjs/mock/-/mock-1.2.15.tgz",
"integrity": "sha512-uXfVNDAMAbCGOu46B9jbryTau2pLSQjCdWnkAm/OUgZh/OtO0i7OORz9HdEPfEF2tuy1tLo9+vsCZm3lPU5F7w==",
"dev": true,
"dependencies": {
"@tapjs/after": "1.1.16",
"@tapjs/after": "1.1.17",
"@tapjs/stack": "1.2.7",
"resolve-import": "^1.4.5",
"walk-up-path": "^3.0.1"
@ -2695,13 +2695,13 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/node-serialize": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/@tapjs/node-serialize/-/node-serialize-1.2.5.tgz",
"integrity": "sha512-y7QS5Sev6QQ0O+sx5WjY11XoUBzuNdSNDwVRxrj1qwTuigRVj+1ePWutP80pn7bE/r2G+2L2IHuEsMDRLCgulw==",
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@tapjs/node-serialize/-/node-serialize-1.2.6.tgz",
"integrity": "sha512-xj1OJEsdTr0pQFlirfe/apN0dHUCMCx2Nm5H3SoiSOW4D1/FUKS65VZpWgo3mXMPxRyb/2T1DH3xON1eSGq4ww==",
"dev": true,
"dependencies": {
"@tapjs/error-serdes": "1.2.1",
@ -2715,7 +2715,7 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/processinfo": {
@ -2734,12 +2734,12 @@
}
},
"node_modules/@tapjs/reporter": {
"version": "1.3.14",
"resolved": "https://registry.npmjs.org/@tapjs/reporter/-/reporter-1.3.14.tgz",
"integrity": "sha512-rcocjP6luA2XEjWkcG3yPolUvWKALdixOtBztAJ/r+P+iFRwyngV2DO9HM9ThLVRTQxj8f73EamoE1llxwD2YQ==",
"version": "1.3.15",
"resolved": "https://registry.npmjs.org/@tapjs/reporter/-/reporter-1.3.15.tgz",
"integrity": "sha512-us1vXd6TW1V8wJxxnP2a8DNSP1WFTpODyYukqWg7ym5nCalREYnz2MFsn65rRNu/xJlmqsmv+9P63rupud7Zlg==",
"dev": true,
"dependencies": {
"@tapjs/config": "2.4.13",
"@tapjs/config": "2.4.14",
"@tapjs/stack": "1.2.7",
"chalk": "^5.2.0",
"ink": "^4.4.1",
@ -2751,7 +2751,7 @@
"string-length": "^6.0.0",
"tap-parser": "15.3.1",
"tap-yaml": "2.2.1",
"tcompare": "6.4.4"
"tcompare": "6.4.5"
},
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
@ -2760,7 +2760,7 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/reporter/node_modules/ms": {
@ -2770,19 +2770,19 @@
"dev": true
},
"node_modules/@tapjs/run": {
"version": "1.4.15",
"resolved": "https://registry.npmjs.org/@tapjs/run/-/run-1.4.15.tgz",
"integrity": "sha512-yeG9BLfRYK1ScDD4M50oF/T7mkNVtQcSEG8twgxxHM3zGlg4hubNBPYh4VXffotuAk3jTjm0jAaEgFbypZLwFQ==",
"version": "1.4.16",
"resolved": "https://registry.npmjs.org/@tapjs/run/-/run-1.4.16.tgz",
"integrity": "sha512-ZTESjBDj5SitZgWz2hQdzfBoxgaFs89jQjWzqobcdfro0iF7TVRpSrvpz9GTMdo2Tu9aeFfMNfmaAtwNWnDabw==",
"dev": true,
"dependencies": {
"@tapjs/after": "1.1.16",
"@tapjs/before": "1.1.16",
"@tapjs/config": "2.4.13",
"@tapjs/after": "1.1.17",
"@tapjs/before": "1.1.17",
"@tapjs/config": "2.4.14",
"@tapjs/processinfo": "^3.1.6",
"@tapjs/reporter": "1.3.14",
"@tapjs/spawn": "1.1.16",
"@tapjs/stdin": "1.1.16",
"@tapjs/test": "1.3.16",
"@tapjs/reporter": "1.3.15",
"@tapjs/spawn": "1.1.17",
"@tapjs/stdin": "1.1.17",
"@tapjs/test": "1.3.17",
"c8": "^8.0.1",
"chalk": "^5.3.0",
"chokidar": "^3.5.3",
@ -2798,7 +2798,7 @@
"signal-exit": "^4.1.0",
"tap-parser": "15.3.1",
"tap-yaml": "2.2.1",
"tcompare": "6.4.4",
"tcompare": "6.4.5",
"trivial-deferred": "^2.0.0",
"which": "^4.0.0"
},
@ -2812,7 +2812,7 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/run/node_modules/isexe": {
@ -2840,13 +2840,13 @@
}
},
"node_modules/@tapjs/snapshot": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@tapjs/snapshot/-/snapshot-1.2.16.tgz",
"integrity": "sha512-4Da9TXAQ3ni+JC8AfzDKRQG6cIjT/LxTTGmVDK4/Fe4NubdNKw/A76Gvl9xPUIlqW1vNZVGVN/0KruEDKJ4xkQ==",
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/@tapjs/snapshot/-/snapshot-1.2.17.tgz",
"integrity": "sha512-xDHys854ZA8s/1uCkE5PgBz4H1vYKChD6a4xjLVkaoRxpBHVp/IJZCD+8d69DRGnyuA4x2MGh0JLClTA9bLGrA==",
"dev": true,
"dependencies": {
"is-actual-promise": "^1.0.0",
"tcompare": "6.4.4",
"tcompare": "6.4.5",
"trivial-deferred": "^2.0.0"
},
"engines": {
@ -2856,19 +2856,19 @@
"url": "https://github.com/sponsors/isaacs"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/spawn": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/spawn/-/spawn-1.1.16.tgz",
"integrity": "sha512-Y0/WNlFp8kkRwKNyOqYUrIwwY2sLkegakvhtcJsg9eg/P4CC9lnh+zaSEfgNGJb24S4qeWOOnJ/rQ68bK9HVYg==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/spawn/-/spawn-1.1.17.tgz",
"integrity": "sha512-Bbyxd91bgXEcglvXYKrRl2MaNHk00RajTZJ1kKe3Scr1ivaYv0maE6ZInAl4UE0a4SJl4Dskec+uKoZY3qGUYQ==",
"dev": true,
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/stack": {
@ -2884,39 +2884,39 @@
}
},
"node_modules/@tapjs/stdin": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/stdin/-/stdin-1.1.16.tgz",
"integrity": "sha512-kP22n5kaoMcAp+elESvRCg/fodfeefsbtacTOGAfXnHLK+eh8XBSz1SwDmyaeQ4/C3F6SMQ8+8ZeybMcbeLEGQ==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/stdin/-/stdin-1.1.17.tgz",
"integrity": "sha512-mDutFFPDnlVM2oYDAfyYKA+fC+aEiyz5n08D8x6YAbwZNbTIVp+h6ucyp7ygJ04fshd4l3s1HUmCZLSmHb2xEw==",
"dev": true,
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/test": {
"version": "1.3.16",
"resolved": "https://registry.npmjs.org/@tapjs/test/-/test-1.3.16.tgz",
"integrity": "sha512-HalYruL4tpTgKVJQwkTh/vw5Mt7sEVXXoS7bTik8tyPr9wQ7UXTRPB2EErna89mhhRc0hYU4NYXlwzS1UHiQkQ==",
"version": "1.3.17",
"resolved": "https://registry.npmjs.org/@tapjs/test/-/test-1.3.17.tgz",
"integrity": "sha512-yQ4uHC2GaDS+Gr5qwx9uMGxqvpYgnlVY+QexBReSeYZthWIN0KD8HDvnVt4An5Sx/Qhd7UlnNpNMBd6AkvPEew==",
"dev": true,
"dependencies": {
"@isaacs/ts-node-temp-fork-for-pr-2009": "^10.9.5",
"@tapjs/after": "1.1.16",
"@tapjs/after-each": "1.1.16",
"@tapjs/asserts": "1.1.16",
"@tapjs/before": "1.1.16",
"@tapjs/before-each": "1.1.16",
"@tapjs/filter": "1.2.16",
"@tapjs/fixture": "1.2.16",
"@tapjs/intercept": "1.2.16",
"@tapjs/mock": "1.2.14",
"@tapjs/node-serialize": "1.2.5",
"@tapjs/snapshot": "1.2.16",
"@tapjs/spawn": "1.1.16",
"@tapjs/stdin": "1.1.16",
"@tapjs/typescript": "1.3.5",
"@tapjs/worker": "1.1.16",
"@tapjs/after": "1.1.17",
"@tapjs/after-each": "1.1.17",
"@tapjs/asserts": "1.1.17",
"@tapjs/before": "1.1.17",
"@tapjs/before-each": "1.1.17",
"@tapjs/filter": "1.2.17",
"@tapjs/fixture": "1.2.17",
"@tapjs/intercept": "1.2.17",
"@tapjs/mock": "1.2.15",
"@tapjs/node-serialize": "1.2.6",
"@tapjs/snapshot": "1.2.17",
"@tapjs/spawn": "1.1.17",
"@tapjs/stdin": "1.1.17",
"@tapjs/typescript": "1.3.6",
"@tapjs/worker": "1.1.17",
"glob": "^10.3.10",
"jackspeak": "^2.3.6",
"mkdirp": "^3.0.0",
@ -2934,13 +2934,13 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/typescript": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/@tapjs/typescript/-/typescript-1.3.5.tgz",
"integrity": "sha512-LoOHEJ1Bx3MWnh4+uIBXVobxkYNwFzJVnzl1tsLuX0jgGBIGtvmFwXDoM9MtcmO5m8WMZL9bMDT1NWPtcO0V6w==",
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/@tapjs/typescript/-/typescript-1.3.6.tgz",
"integrity": "sha512-bHqQb06HcD1vFvSwElH0WK4cnCNthvA5OX/KBs5w1TNFHIeRHemp/hsSnGSNDwYwDETuOxD68rDZNTpNbzysBg==",
"dev": true,
"dependencies": {
"@isaacs/ts-node-temp-fork-for-pr-2009": "^10.9.5"
@ -2949,19 +2949,19 @@
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tapjs/worker": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@tapjs/worker/-/worker-1.1.16.tgz",
"integrity": "sha512-BVXyGnf3PMJ7hnwIgaheSpLESI8E9d95EBi8Ni/L3sObbxYR3xIPnhiwCEUCQOp6pkeo8z04T7nJdbQW3dslIA==",
"version": "1.1.17",
"resolved": "https://registry.npmjs.org/@tapjs/worker/-/worker-1.1.17.tgz",
"integrity": "sha512-DCRzEBT+OgP518rQqzlX6KawvGTegkeEjPVa/TB6Iifj8WOHJ+XtunkR7riIRGEoCEOMD49DCJXj70c+XP0jNw==",
"dev": true,
"engines": {
"node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20"
},
"peerDependencies": {
"@tapjs/core": "1.4.5"
"@tapjs/core": "1.4.6"
}
},
"node_modules/@tediousjs/connection-string": {
@ -3048,9 +3048,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "20.9.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz",
"integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==",
"version": "20.9.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.2.tgz",
"integrity": "sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==",
"dependencies": {
"undici-types": "~5.26.4"
}
@ -3080,16 +3080,15 @@
}
},
"node_modules/@types/webidl-conversions": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.2.tgz",
"integrity": "sha512-uNv6b/uGRLlCVmelat2rA8bcVd3k/42mV2EmjhPh6JLkd35T5bgwR/t6xy7a9MWhd9sixIeBUzhBenvk3NO+DQ=="
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz",
"integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA=="
},
"node_modules/@types/whatwg-url": {
"version": "8.2.2",
"resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz",
"integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==",
"version": "11.0.3",
"resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.3.tgz",
"integrity": "sha512-z1ELvMijRL1QmU7QuzDkeYXSF2+dXI0ITKoQsIoVKcNBOiK5RMmWy+pYYxJTHFt8vkpZe7UsvRErQwcxZkjoUw==",
"dependencies": {
"@types/node": "*",
"@types/webidl-conversions": "*"
}
},
@ -3324,9 +3323,9 @@
}
},
"node_modules/axios": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz",
"integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==",
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz",
"integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==",
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@ -6174,12 +6173,13 @@
}
},
"node_modules/mongodb": {
"version": "6.2.0",
"license": "Apache-2.0",
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.3.0.tgz",
"integrity": "sha512-tt0KuGjGtLUhLoU263+xvQmPHEGTw5LbcNC73EoFRYgSHwZt5tsoJC110hDyO1kjQzpgNrpdcSza9PknWN4LrA==",
"dependencies": {
"@mongodb-js/saslprep": "^1.1.0",
"bson": "^6.2.0",
"mongodb-connection-string-url": "^2.6.0"
"mongodb-connection-string-url": "^3.0.0"
},
"engines": {
"node": ">=16.20.1"
@ -6218,12 +6218,12 @@
}
},
"node_modules/mongodb-connection-string-url": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz",
"integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.0.tgz",
"integrity": "sha512-t1Vf+m1I5hC2M5RJx/7AtxgABy1cZmIPQRMXw+gEIPn/cZNF3Oiy+l0UIypUwVB5trcWHq3crg2g3uAR9aAwsQ==",
"dependencies": {
"@types/whatwg-url": "^8.2.1",
"whatwg-url": "^11.0.0"
"@types/whatwg-url": "^11.0.2",
"whatwg-url": "^13.0.0"
}
},
"node_modules/ms": {
@ -7998,29 +7998,29 @@
}
},
"node_modules/tap": {
"version": "18.5.8",
"resolved": "https://registry.npmjs.org/tap/-/tap-18.5.8.tgz",
"integrity": "sha512-lTJXogAU/SQZVeCjHG8ozQSESRO7aD0THbA5G8El/OHv+ifFR8U0UdU5cZY8uMD6r8TYBt09tlb/gsXNVnrOXw==",
"version": "18.6.1",
"resolved": "https://registry.npmjs.org/tap/-/tap-18.6.1.tgz",
"integrity": "sha512-5cBQhJ1gdbsrTR3tA5kZZTts0HyOML6bcM7pEF7GF8d6y1ajfRMjbInS1Ty7/x2Ip0ko3cY1dYjPJ9JFNPsm7w==",
"dev": true,
"dependencies": {
"@tapjs/after": "1.1.16",
"@tapjs/after-each": "1.1.16",
"@tapjs/asserts": "1.1.16",
"@tapjs/before": "1.1.16",
"@tapjs/before-each": "1.1.16",
"@tapjs/core": "1.4.5",
"@tapjs/filter": "1.2.16",
"@tapjs/fixture": "1.2.16",
"@tapjs/intercept": "1.2.16",
"@tapjs/mock": "1.2.14",
"@tapjs/node-serialize": "1.2.5",
"@tapjs/run": "1.4.15",
"@tapjs/snapshot": "1.2.16",
"@tapjs/spawn": "1.1.16",
"@tapjs/stdin": "1.1.16",
"@tapjs/test": "1.3.16",
"@tapjs/typescript": "1.3.5",
"@tapjs/worker": "1.1.16",
"@tapjs/after": "1.1.17",
"@tapjs/after-each": "1.1.17",
"@tapjs/asserts": "1.1.17",
"@tapjs/before": "1.1.17",
"@tapjs/before-each": "1.1.17",
"@tapjs/core": "1.4.6",
"@tapjs/filter": "1.2.17",
"@tapjs/fixture": "1.2.17",
"@tapjs/intercept": "1.2.17",
"@tapjs/mock": "1.2.15",
"@tapjs/node-serialize": "1.2.6",
"@tapjs/run": "1.4.16",
"@tapjs/snapshot": "1.2.17",
"@tapjs/spawn": "1.1.17",
"@tapjs/stdin": "1.1.17",
"@tapjs/test": "1.3.17",
"@tapjs/typescript": "1.3.6",
"@tapjs/worker": "1.1.17",
"resolve-import": "^1.4.5"
},
"bin": {
@ -8133,9 +8133,9 @@
}
},
"node_modules/tcompare": {
"version": "6.4.4",
"resolved": "https://registry.npmjs.org/tcompare/-/tcompare-6.4.4.tgz",
"integrity": "sha512-mvv9apveoY+XFP2CO2xF3Mkz/v+itzV9ZlhcDY+chIpFGYeTEgiCYdFUPynPme82kNU7UweuxDBQ5J6FkVox/Q==",
"version": "6.4.5",
"resolved": "https://registry.npmjs.org/tcompare/-/tcompare-6.4.5.tgz",
"integrity": "sha512-Whuz9xlKKI2XXICKDSDRKjXdBuC6gBNOgmEUtH7UFyQeYzfUMQ19DyjZULarGKDGFhgOg3CJ+IQUEfpkOPg0Uw==",
"dev": true,
"dependencies": {
"diff": "^5.1.0",
@ -8254,14 +8254,14 @@
}
},
"node_modules/tr46": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz",
"integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz",
"integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==",
"dependencies": {
"punycode": "^2.1.1"
"punycode": "^2.3.0"
},
"engines": {
"node": ">=12"
"node": ">=14"
}
},
"node_modules/trivial-deferred": {
@ -8814,15 +8814,15 @@
}
},
"node_modules/whatwg-url": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz",
"integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==",
"version": "13.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-13.0.0.tgz",
"integrity": "sha512-9WWbymnqj57+XEuqADHrCJ2eSXzn8WXIW/YSGaZtb2WKAInQ6CHfaUUcTyyver0p8BDg5StLQq8h1vtZuwmOig==",
"dependencies": {
"tr46": "^3.0.0",
"tr46": "^4.1.1",
"webidl-conversions": "^7.0.0"
},
"engines": {
"node": ">=12"
"node": ">=16"
}
},
"node_modules/which": {

View File

@ -41,17 +41,17 @@
"dependencies": {
"@aws-sdk/client-dynamodb": "3.451.0",
"@aws-sdk/credential-providers": "3.451.0",
"@aws-sdk/util-dynamodb": "3.450.0",
"@aws-sdk/util-dynamodb": "3.454.0",
"@boxyhq/error-code-mnemonic": "0.1.1",
"@boxyhq/metrics": "0.2.6",
"@boxyhq/saml20": "1.3.2",
"@googleapis/admin": "13.0.0",
"axios": "1.6.1",
"axios": "1.6.2",
"encoding": "0.1.13",
"jose": "5.1.1",
"lodash": "4.17.21",
"mixpanel": "0.18.0",
"mongodb": "6.2.0",
"mongodb": "6.3.0",
"mssql": "10.0.1",
"mysql2": "3.6.3",
"node-forge": "1.3.1",
@ -67,14 +67,14 @@
"devDependencies": {
"@faker-js/faker": "8.3.1",
"@types/lodash": "4.14.201",
"@types/node": "20.9.0",
"@types/node": "20.9.2",
"@types/sinon": "17.0.1",
"@types/tap": "15.0.11",
"cross-env": "7.0.3",
"migrate-mongo": "11.0.0",
"nock": "13.3.8",
"sinon": "17.0.1",
"tap": "18.5.8",
"tap": "18.6.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.2.2"

624
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "jackson",
"version": "1.14.3",
"version": "1.15.0",
"private": true,
"description": "SAML 2.0 service",
"keywords": [
@ -43,10 +43,6 @@
"pretest:e2e": "env-cmd -f .env.test.local ts-node --logError e2e/support/pretest.ts",
"test:e2e": "env-cmd -f .env.test.local playwright test",
"test": "cd npm && npm run test",
"jackson-cleanup": "rm -rf node_modules/@boxyhq/saml-jackson || Remove-Item -Path .\\node_modules\\@boxyhq\\saml-jackson -Force -Recurse || rmdir \\node_modules\\@boxyhq\\saml-jackson /s /q || echo 'done'",
"custom-install": "npm run jackson-cleanup && npm install --install-links=false",
"preinstall": "echo 'Please ensure you are running npm install with --install-links=false or using our custom-install npm script.'",
"postcustom-install": "npm run prebuild",
"postinstall": "npm run prebuild",
"prebuild": "ts-node --logError prebuild.ts",
"build": "next build",
@ -59,7 +55,7 @@
},
"dependencies": {
"@boxyhq/metrics": "0.2.5",
"@boxyhq/react-ui": "3.3.16",
"@boxyhq/react-ui": "3.3.18",
"@boxyhq/saml-jackson": "file:npm",
"@heroicons/react": "2.0.18",
"@retracedhq/logs-viewer": "2.5.2",
@ -71,9 +67,9 @@
"cors": "2.8.5",
"daisyui": "3.9.4",
"i18next": "22.5.1",
"medium-zoom": "1.0.8",
"medium-zoom": "1.1.0",
"micromatch": "4.0.5",
"next": "14.0.2",
"next": "14.0.3",
"next-auth": "4.24.5",
"next-i18next": "13.3.0",
"next-mdx-remote": "4.4.1",
@ -90,7 +86,7 @@
},
"devDependencies": {
"@apidevtools/swagger-cli": "4.0.4",
"@playwright/test": "1.39.0",
"@playwright/test": "1.40.0",
"@types/cors": "2.8.16",
"@types/micromatch": "4.0.5",
"@types/node": "20.8.8",
@ -101,7 +97,7 @@
"cross-env": "7.0.3",
"env-cmd": "10.1.0",
"eslint": "8.53.0",
"eslint-config-next": "14.0.2",
"eslint-config-next": "14.0.3",
"eslint-config-prettier": "9.0.0",
"postcss": "8.4.31",
"prettier": "3.1.0",

View File

@ -0,0 +1,6 @@
/* Override SDK styles */
.sdk-input:focus {
/* Below styles copied from the tailwindcss/forms plugin */
outline: 2px solid hsla(var(--bc) / 0.2);
outline-offset: 2px;
}