@things-factory/auth-azure-ad 6.1.174

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 (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/assets/images/hatiolab-logo.png +0 -0
  3. package/client/actions/main.ts +1 -0
  4. package/client/bootstrap.ts +8 -0
  5. package/client/index.ts +1 -0
  6. package/client/pages/main.ts +21 -0
  7. package/client/reducers/main.ts +17 -0
  8. package/client/route.ts +7 -0
  9. package/client/tsconfig.json +11 -0
  10. package/config/config.development.js +15 -0
  11. package/config/config.production.js +15 -0
  12. package/dist-client/actions/main.d.ts +1 -0
  13. package/dist-client/actions/main.js +2 -0
  14. package/dist-client/actions/main.js.map +1 -0
  15. package/dist-client/bootstrap.d.ts +1 -0
  16. package/dist-client/bootstrap.js +8 -0
  17. package/dist-client/bootstrap.js.map +1 -0
  18. package/dist-client/index.d.ts +1 -0
  19. package/dist-client/index.js +2 -0
  20. package/dist-client/index.js.map +1 -0
  21. package/dist-client/pages/main.d.ts +1 -0
  22. package/dist-client/pages/main.js +25 -0
  23. package/dist-client/pages/main.js.map +1 -0
  24. package/dist-client/reducers/main.d.ts +6 -0
  25. package/dist-client/reducers/main.js +14 -0
  26. package/dist-client/reducers/main.js.map +1 -0
  27. package/dist-client/route.d.ts +1 -0
  28. package/dist-client/route.js +8 -0
  29. package/dist-client/route.js.map +1 -0
  30. package/dist-client/tsconfig.tsbuildinfo +1 -0
  31. package/dist-server/index.js +6 -0
  32. package/dist-server/index.js.map +1 -0
  33. package/dist-server/middlewares/azure-ad-authenticate-middleware.js +63 -0
  34. package/dist-server/middlewares/azure-ad-authenticate-middleware.js.map +1 -0
  35. package/dist-server/middlewares/index.js +9 -0
  36. package/dist-server/middlewares/index.js.map +1 -0
  37. package/dist-server/router/auth-azure-ad-router.js +24 -0
  38. package/dist-server/router/auth-azure-ad-router.js.map +1 -0
  39. package/dist-server/router/index.js +5 -0
  40. package/dist-server/router/index.js.map +1 -0
  41. package/dist-server/routes.js +11 -0
  42. package/dist-server/routes.js.map +1 -0
  43. package/dist-server/tsconfig.tsbuildinfo +1 -0
  44. package/package.json +38 -0
  45. package/server/index.ts +3 -0
  46. package/server/middlewares/azure-ad-authenticate-middleware.ts +79 -0
  47. package/server/middlewares/index.ts +7 -0
  48. package/server/router/auth-azure-ad-router.ts +31 -0
  49. package/server/router/index.ts +1 -0
  50. package/server/routes.ts +10 -0
  51. package/server/tsconfig.json +10 -0
  52. package/things-factory.config.js +10 -0
  53. package/translations/en.json +1 -0
  54. package/translations/ja.json +1 -0
  55. package/translations/ko.json +1 -0
  56. package/translations/ms.json +1 -0
  57. package/translations/zh.json +1 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ <!-- ## [Unreleased] -->
Binary file
@@ -0,0 +1 @@
1
+ export const UPDATE_AUTH_AZURE_AD = 'UPDATE_AUTH_AZURE_AD'
@@ -0,0 +1,8 @@
1
+ import { store } from '@operato/shell'
2
+ import authAzureAd from './reducers/main'
3
+
4
+ export default function bootstrap() {
5
+ store.addReducers({
6
+ authAzureAd
7
+ })
8
+ }
@@ -0,0 +1 @@
1
+ export * from './actions/main'
@@ -0,0 +1,21 @@
1
+ import { html } from 'lit'
2
+ import { customElement, property } from 'lit/decorators.js'
3
+ import { connect } from 'pwa-helpers/connect-mixin.js'
4
+ import { store, PageView } from '@operato/shell'
5
+
6
+ @customElement('auth-azure-ad-main')
7
+ class AuthAzureAdMain extends connect(store)(PageView) {
8
+ @property({ type: String }) authAzureAd?: string
9
+
10
+ render() {
11
+ return html`
12
+ <section>
13
+ <h2>AuthAzureAd</h2>
14
+ </section>
15
+ `
16
+ }
17
+
18
+ stateChanged(state) {
19
+ this.authAzureAd = state.authAzureAd.state_main
20
+ }
21
+ }
@@ -0,0 +1,17 @@
1
+ import { UPDATE_AUTH_AZURE_AD } from '../actions/main'
2
+
3
+ const INITIAL_STATE = {
4
+ authAzureAd: 'ABC'
5
+ }
6
+
7
+ const authAzureAd = (state = INITIAL_STATE, action) => {
8
+ switch (action.type) {
9
+ case UPDATE_AUTH_AZURE_AD:
10
+ return { ...state }
11
+
12
+ default:
13
+ return state
14
+ }
15
+ }
16
+
17
+ export default authAzureAd
@@ -0,0 +1,7 @@
1
+ export default function route(page: string) {
2
+ switch (page) {
3
+ case 'auth-azure-ad-main':
4
+ import('./pages/main')
5
+ return page
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig-base.json",
3
+ "compilerOptions": {
4
+ "strict": true,
5
+ "declaration": true,
6
+ "module": "esnext",
7
+ "outDir": "../dist-client",
8
+ "baseUrl": "./"
9
+ },
10
+ "include": ["./**/*"]
11
+ }
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ SSOAzureAD: {
3
+ identityMetadata: 'https://login.microsoftonline.com/your_tenant_id/v2.0/.well-known/openid-configuration',
4
+ clientID: 'your_client_id',
5
+ responseType: 'code id_token',
6
+ responseMode: 'form_post',
7
+ redirectUrl: 'http://localhost:3000/auth/openid/return',
8
+ allowHttpForRedirectUrl: true,
9
+ clientSecret: 'your_client_secret',
10
+ validateIssuer: false,
11
+ passReqToCallback: false
12
+ // useCookieInsteadOfSession: true,
13
+ // cookieEncryptionKeys: [{ key: 'your_cookie_encryption_key', iv: 'your_cookie_encryption_iv' }]
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ SSOAzureAD: {
3
+ identityMetadata: 'https://login.microsoftonline.com/your_tenant_id/v2.0/.well-known/openid-configuration',
4
+ clientID: 'your_client_id',
5
+ responseType: 'code id_token',
6
+ responseMode: 'form_post',
7
+ redirectUrl: 'http://localhost:3000/auth/openid/return',
8
+ allowHttpForRedirectUrl: true,
9
+ clientSecret: 'your_client_secret',
10
+ validateIssuer: false,
11
+ passReqToCallback: false
12
+ // useCookieInsteadOfSession: true,
13
+ // cookieEncryptionKeys: [{ key: 'your_cookie_encryption_key', iv: 'your_cookie_encryption_iv' }]
14
+ }
15
+ }
@@ -0,0 +1 @@
1
+ export declare const UPDATE_AUTH_AZURE_AD = "UPDATE_AUTH_AZURE_AD";
@@ -0,0 +1,2 @@
1
+ export const UPDATE_AUTH_AZURE_AD = 'UPDATE_AUTH_AZURE_AD';
2
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/actions/main.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAA","sourcesContent":["export const UPDATE_AUTH_AZURE_AD = 'UPDATE_AUTH_AZURE_AD'\n"]}
@@ -0,0 +1 @@
1
+ export default function bootstrap(): void;
@@ -0,0 +1,8 @@
1
+ import { store } from '@operato/shell';
2
+ import authAzureAd from './reducers/main';
3
+ export default function bootstrap() {
4
+ store.addReducers({
5
+ authAzureAd
6
+ });
7
+ }
8
+ //# sourceMappingURL=bootstrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAEzC,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,KAAK,CAAC,WAAW,CAAC;QAChB,WAAW;KACZ,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { store } from '@operato/shell'\nimport authAzureAd from './reducers/main'\n\nexport default function bootstrap() {\n store.addReducers({\n authAzureAd\n })\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from './actions/main';
@@ -0,0 +1,2 @@
1
+ export * from './actions/main';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA","sourcesContent":["export * from './actions/main'"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { html } from 'lit';
3
+ import { customElement, property } from 'lit/decorators.js';
4
+ import { connect } from 'pwa-helpers/connect-mixin.js';
5
+ import { store, PageView } from '@operato/shell';
6
+ let AuthAzureAdMain = class AuthAzureAdMain extends connect(store)(PageView) {
7
+ render() {
8
+ return html `
9
+ <section>
10
+ <h2>AuthAzureAd</h2>
11
+ </section>
12
+ `;
13
+ }
14
+ stateChanged(state) {
15
+ this.authAzureAd = state.authAzureAd.state_main;
16
+ }
17
+ };
18
+ __decorate([
19
+ property({ type: String }),
20
+ __metadata("design:type", String)
21
+ ], AuthAzureAdMain.prototype, "authAzureAd", void 0);
22
+ AuthAzureAdMain = __decorate([
23
+ customElement('auth-azure-ad-main')
24
+ ], AuthAzureAdMain);
25
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/pages/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGhD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;IAGpD,MAAM;QACJ,OAAO,IAAI,CAAA;;;;KAIV,CAAA;IACH,CAAC;IAED,YAAY,CAAC,KAAK;QAChB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,UAAU,CAAA;IACjD,CAAC;CACF,CAAA;AAbC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAqB;AAD5C,eAAe;IADpB,aAAa,CAAC,oBAAoB,CAAC;GAC9B,eAAe,CAcpB","sourcesContent":["import { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin.js'\nimport { store, PageView } from '@operato/shell'\n\n@customElement('auth-azure-ad-main')\nclass AuthAzureAdMain extends connect(store)(PageView) {\n @property({ type: String }) authAzureAd?: string\n\n render() {\n return html`\n <section>\n <h2>AuthAzureAd</h2>\n </section>\n `\n }\n\n stateChanged(state) {\n this.authAzureAd = state.authAzureAd.state_main\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ declare const authAzureAd: (state: {
2
+ authAzureAd: string;
3
+ } | undefined, action: any) => {
4
+ authAzureAd: string;
5
+ };
6
+ export default authAzureAd;
@@ -0,0 +1,14 @@
1
+ import { UPDATE_AUTH_AZURE_AD } from '../actions/main';
2
+ const INITIAL_STATE = {
3
+ authAzureAd: 'ABC'
4
+ };
5
+ const authAzureAd = (state = INITIAL_STATE, action) => {
6
+ switch (action.type) {
7
+ case UPDATE_AUTH_AZURE_AD:
8
+ return Object.assign({}, state);
9
+ default:
10
+ return state;
11
+ }
12
+ };
13
+ export default authAzureAd;
14
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../client/reducers/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,aAAa,GAAG;IACpB,WAAW,EAAE,KAAK;CACnB,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,KAAK,GAAG,aAAa,EAAE,MAAM,EAAE,EAAE;IACpD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,oBAAoB;YACvB,yBAAY,KAAK,EAAE;QAErB;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA","sourcesContent":["import { UPDATE_AUTH_AZURE_AD } from '../actions/main'\n\nconst INITIAL_STATE = {\n authAzureAd: 'ABC'\n}\n\nconst authAzureAd = (state = INITIAL_STATE, action) => {\n switch (action.type) {\n case UPDATE_AUTH_AZURE_AD:\n return { ...state }\n\n default:\n return state\n }\n}\n\nexport default authAzureAd\n"]}
@@ -0,0 +1 @@
1
+ export default function route(page: string): "auth-azure-ad-main" | undefined;
@@ -0,0 +1,8 @@
1
+ export default function route(page) {
2
+ switch (page) {
3
+ case 'auth-azure-ad-main':
4
+ import('./pages/main');
5
+ return page;
6
+ }
7
+ }
8
+ //# sourceMappingURL=route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAY;IACxC,QAAQ,IAAI,EAAE;QACZ,KAAK,oBAAoB;YACvB,MAAM,CAAC,cAAc,CAAC,CAAA;YACtB,OAAO,IAAI,CAAA;KACd;AACH,CAAC","sourcesContent":["export default function route(page: string) {\n switch (page) {\n case 'auth-azure-ad-main':\n import('./pages/main')\n return page\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/lerna/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/lerna/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@operato/shell/dist/src/types/domain.d.ts","../../../node_modules/@operato/shell/dist/src/types/user.d.ts","../../../node_modules/@operato/shell/dist/src/types/role.d.ts","../../../node_modules/@operato/shell/dist/src/types/privilege.d.ts","../../../node_modules/@operato/shell/dist/src/types/types.d.ts","../../../node_modules/@operato/shell/dist/src/types/index.d.ts","../../../node_modules/redux/index.d.ts","../../../node_modules/pwa-helpers/lazy-reducer-enhancer.d.ts","../../../node_modules/@operato/shell/dist/src/store.d.ts","../../../node_modules/@operato/shell/dist/src/actions/app.d.ts","../../../node_modules/@operato/shell/dist/src/actions/route.d.ts","../../../node_modules/@operato/shell/dist/src/actions/busy.d.ts","../../../node_modules/@operato/shell/dist/src/actions/const.d.ts","../../../node_modules/@operato/shell/dist/src/actions/index.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/@types/trusted-types/index.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit-html/is-server.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@operato/shell/dist/src/app/pages/page-view.d.ts","../../../node_modules/@operato/shell/dist/src/object-store.d.ts","../../../node_modules/@operato/shell/dist/src/index.d.ts","../client/actions/main.ts","../client/reducers/main.ts","../client/bootstrap.ts","../client/index.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../../../node_modules/pwa-helpers/connect-mixin.d.ts","../client/pages/main.ts","../client/route.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","4d4cf93a6b4c81851ad759e4569b6feb7a701e80b13a6f9d8d9c6012bbb86bd6","2e6035af8f3e43bf95e4983329c8277d66f9b271106af27b99a85d1c1b9daf4a","774308610e8d4a9954cd93840f99decbf340accfe3ad7365547950ede8162c92","36c15dd26c66c97b9df26ce34baacdb13fc760c5b9a2d789dcc317d27b189257","3d7c0b593a29d717b2b2ba3f03f819c3c48bf9e250d79c4a31860af80f177e8c","f228d440342f5d0933f5db093aafab2f07de24a427b4488ccfae27b7457d7666",{"version":"fd624f7d7b264922476685870f08c5e1c6d6a0f05dee2429a9747b41f6b699d4","affectsGlobalScope":true},"701978f3975f96e76e3ffc2e1762e3a97e3d323812049fb6fdfd559579b89708",{"version":"4ab17f80ced148d509345cee706b2b85941515dd76e32cf47118bcdf6a4bd56a","affectsGlobalScope":true},"641089f0b8094ef74b9d4b3364d5dec1592d5e3b8a51c1ba491bc8872049e79a","9197b3ca76c01df6120b4ee288fe2d08f8a2089221da97956bee402de0ffd37e","b42033bf1067564808e4d360d79281667c2b3b0792c2d615ab641eb85974d4ba","7af29b0589483f7bb8a99405ddb849f34bc053146184561ed4179e02f5fe4d0f","78faa3783191b2d5d5f7a9e835ee3f6a1456dc391d6eb5b40d3a27dfd9decd6e","52dd370c807255c61765347fc90a9bee3c522b8744dc222714e2bf6b5be3a823","1e5743b25a63fd34ffbae89adcbf248ee17db6ed08d90079ffa93803c3e80d2a","ccf8ea81b0ac699c220b874b804ad02b8aabc5b494e1c3bda0d255ec8d08694d","15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e",{"version":"17f2b4d00e42e0cc1dfc3be692a6da5a14a6cb73b87259e6d20ff02bcd6d573f","affectsGlobalScope":true},"c567d37119d6f56381af48eb7516030ccf35a36f9aca045e238d9c207a7c536c","b448dfbb5a6c4505f6b6beab587cf41f180ad62bcb506b44e3f2c09d20ba63a9","eba7cf33380cc3a3cf614faf67300e14d0bdff9ea6c5cd6f4b040b1756a48ab1","5e7e090243bf203382a5cb04eabbdc38d78f6d5922f16f543e4da8fa007d5ff9","cd823094ded7c8ac4f94ab6dc387dab699293eb8323d9f948304efc07e4ae7b2","6bf72b2541469cac7a7882468d25a04fdff489625452ff7d3e670c764e5a9ba1","fc48282c397084016a939e1b3f91dcaf4199b6cba339d91d8b2dc2acade79762","981fc22acc36b6a33c9f5b3d468e975b104cf3409b881ca6cffe84c5f9fda7c1",{"version":"2424eba5303e99238f74784c435fd8d50f03d9d0f3c7d84d656c95f55c4c4ab5","signature":"ba960175f14a79c6138113034a9e443ee24a85aa7258669a97bc7e586964f862"},{"version":"b63da6e9f5a056da29ef25aaec292940ec55b70418cf3ed00a50324c2da987bf","signature":"34562c363f5c0b2d399d24ef78b8d5e1732eafd81fd3d0123cc290900ca9aeb2"},{"version":"972e432c9575c47cd1bee8b5589d1a567cd9dbdf658ddb27ddb86328a6bd8d3d","signature":"aac4ddff3d5c1247433870879e9838b1e23b81a9b62c75f59c3e1b64802f2b16"},{"version":"c7cbdfbcebb4e5ab702361ba74b008091f72d1c177a8ab1d04c9e6865f366750","signature":"3bb52b8cf0f82f57d755cae9943caf7fb107719348612ee55ea395f6c599dfa1"},"d45c02bf8b85203f35de2971eafb8f8092090d150c7805a189b3e197f53b12b6","ac388c7c7a262213a3700451bc921e382a93fb27c0252c34ccf03540b4ce044b","097a7e3badfd1c4b35f72aa0f722f5714a4f6a84e53fca5a79dcfebbfc5e718d","fb0107c83e2e0e75b77dacd0c3c6c3ab6844e98dce2a8f858c6f0a57c12136a6","ea410c8280b0ec480acb195c7dd36c1f054403f5fccee0beca85717777cf8562","628bceb593b3a5b3d73ff44a808a347ec07d6ee397104a1d88b0f9a20d8b4599","57e25505a5de058216a8f4416ca850788bfc3a412c8e90109b2ef91f75fdd615","2ba453918c1fcf1cbb2836f731534f356d5fe65ed9628811f686e8de3920ed0e","4bcb813ea56182beaaab1e8274524eb9f1449b0d8e79efc4a0399de09e43f816","cc689acd4eff461c808e01225be6a16d1787e44d451310be5dd556dd7ab08457","f0380f581cb015778c0fe51e95b5b7f6dae237280654558469b2486c1572268a","23c05cc4d97aa608b5ea8badadb4e1b0c4e306ed5d651c5d1760552e91d1ad92",{"version":"27586641ebcf582ce1796d1c87b30a375cd0d7220b4d6195380e3e0875eaf157","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"dfd0643a91faf33fa2de5170a6f2c7bf30926e53665532275db3d834178e6948","signature":"12e50a105b2d989ac7a6f6c2c1e90beb1853ebcc0376221360317d94cd9ce28e"},"09df3b4f1c937f02e7fee2836d4c4d7a63e66db70fd4d4e97126f4542cc21d9d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419",{"version":"32465ea19404cb188e84cf08c6b1f6b12d739140436402cdbc184a3fd20a7d81","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"45c22e7e615c8bb6e27325339490f6bd83828d843f9f3cf0ce9fd4d81f6cd923","affectsGlobalScope":true},"546ab07e19116d935ad982e76a223275b53bff7771dab94f433b7ab04652936e","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"aefb5a4a209f756b580eb53ea771cca8aad411603926f307a5e5b8ec6b16dcf6","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","f5a8b7ec4b798c88679194a8ebc25dcb6f5368e6e5811fcda9fe12b0d445b8db","b86e1a45b29437f3a99bad4147cb9fe2357617e8008c0484568e5bb5138d6e13","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","42c431e7965b641106b5e25ab3283aa4865ca7bb9909610a2abfa6226e4348be","0b7e732af0a9599be28c091d6bd1cb22c856ec0d415d4749c087c3881ca07a56","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"c65eca1f892b9e5ee97af93963b2bdf813e4be3b599d06dfb681da19df8358b0","affectsGlobalScope":true},"3b4c85eea12187de9929a76792b98406e8778ce575caca8c574f06da82622c54","f788131a39c81e0c9b9e463645dd7132b5bc1beb609b0e31e5c1ceaea378b4df","1ee64912f7961165a3b6e6209fb7a8aced98b578ca1373b9f0ea144edfe17f6c","21894466693f64957b9bd4c80fa3ec7fdfd4efa9d1861e070aca23f10220c9b2","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","ad8848c289c0b633452e58179f46edccd14b5a0fe90ebce411f79ff040b803e0",{"version":"5d4ef3f46c7f9d62f7c964f9f9ccdd293be99fb3dcc66c983f2aea7430e3c7c6","affectsGlobalScope":true},"91f8b5abcdff8f9ecb9656b9852878718416fb7700b2c4fad8331e5b97c080bb","59d8f064f86a4a2be03b33c0efcc9e7a268ad27b22f82dce16899f3364f70ba8","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"f49fb15c4aa06b65b0dce4db4584bfd8a9f74644baef1511b404dc95be34af00","affectsGlobalScope":true},{"version":"d48009cbe8a30a504031cc82e1286f78fed33b7a42abf7602c23b5547b382563","affectsGlobalScope":true},"7aaeb5e62f90e1b2be0fc4844df78cdb1be15c22b427bc6c39d57308785b8f10","3ba30205a029ebc0c91d7b1ab4da73f6277d730ca1fc6692d5a9144c6772c76b","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"786dd9ad95e335a5e76759d078940fdb5001b74498a31f90fad98afe196a84ca","affectsGlobalScope":true},{"version":"cbf046714f3a3ba2544957e1973ac94aa819fa8aa668846fa8de47eb1c41b0b2","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eae74e3d50820f37c72c0679fed959cd1e63c98f6a146a55b8c4361582fa6a52","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"aed89e3c18f4c659ee8153a76560dffda23e2d801e1e60d7a67abd84bc555f8d","affectsGlobalScope":true},{"version":"0ed13c80faeb2b7160bffb4926ff299c468e67a37a645b3ae0917ba0db633c1b","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","2f940651c2f30e6b29f8743fae3f40b7b1c03615184f837132b56ea75edad08b","5749c327c3f789f658072f8340786966c8b05ea124a56c1d8d60e04649495a4d",{"version":"c9d62b2a51b2ff166314d8be84f6881a7fcbccd37612442cf1c70d27d5352f50","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d3f4c342fb62f348f25f54b473b0ab7371828cbf637134194fa9cdf04856f87b","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"c8950367d1812758e9e354c695c60c3e6311bf2cd98b9f9eb469a19df8a9a486","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":4,"useDefineForClassFields":false},"fileIdsList":[[136],[136,146],[61,136],[76,136],[61,76,136],[61,76,84,136],[59,60,136],[54,55,56,57,136],[68,136],[50,53,58,69,70,136],[51,52,136],[45,46,47,48,49,136],[46,47,136],[45,46,48,136],[136,148,151],[90,136],[93,136],[94,99,127,136],[95,106,107,114,124,135,136],[95,96,106,114,136],[97,136],[98,99,107,115,136],[99,124,132,136],[100,102,106,114,136],[101,136],[102,103,136],[106,136],[104,106,136],[93,106,136],[106,107,108,124,135,136],[106,107,108,121,124,127,136],[136,140],[102,106,109,114,124,135,136],[106,107,109,110,114,124,132,135,136],[109,111,124,132,135,136],[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142],[106,112,136],[113,135,136,140],[102,106,114,124,136],[115,136],[116,136],[93,117,136],[118,134,136,140],[119,136],[120,136],[106,121,122,136],[121,123,136,138],[94,106,124,125,126,127,136],[94,124,126,136],[124,125,136],[127,136],[128,136],[93,124,136],[106,130,131,136],[130,131,136],[99,114,124,132,136],[133,136],[114,134,136],[94,109,120,135,136],[99,136],[124,136,137],[113,136,138],[136,139],[94,99,106,108,117,124,135,136,138,140],[124,136,141],[62,136],[136,144,150],[136,148],[136,145,149],[61,65,136],[65,136],[63,64,136],[77,78,79,80,81,82,83,84,85,136],[61,65,66,67,136],[136,147],[51,136],[44,136],[44,71,73,136],[44,72,136],[44,68,71,86,87,136],[44,88,136],[72]],"referencedMap":[[144,1],[147,2],[59,1],[76,3],[77,4],[80,5],[78,5],[82,5],[85,6],[84,1],[83,5],[81,5],[79,4],[60,1],[61,7],[54,1],[56,1],[57,1],[58,8],[55,1],[69,9],[71,10],[70,1],[53,11],[45,1],[50,12],[48,13],[47,14],[49,1],[46,1],[146,1],[152,15],[90,16],[91,16],[93,17],[94,18],[95,19],[96,20],[97,21],[98,22],[99,23],[100,24],[101,25],[102,26],[103,26],[105,27],[104,28],[106,29],[107,30],[108,31],[92,32],[142,1],[109,33],[110,34],[111,35],[143,36],[112,37],[113,38],[114,39],[115,40],[116,41],[117,42],[118,43],[119,44],[120,45],[121,46],[122,46],[123,47],[124,48],[126,49],[125,50],[127,51],[128,52],[129,53],[130,54],[131,55],[132,56],[133,57],[134,58],[135,59],[136,60],[137,61],[138,62],[139,63],[140,64],[141,65],[63,66],[62,1],[145,1],[151,67],[149,68],[150,69],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[23,1],[20,1],[21,1],[22,1],[24,1],[25,1],[26,1],[5,1],[27,1],[28,1],[29,1],[30,1],[6,1],[34,1],[31,1],[32,1],[33,1],[35,1],[7,1],[36,1],[41,1],[42,1],[37,1],[38,1],[39,1],[40,1],[1,1],[43,1],[66,70],[64,71],[67,1],[65,72],[86,73],[68,74],[148,75],[87,76],[52,76],[51,1],[44,1],[72,77],[74,78],[75,79],[88,80],[73,79],[89,81]],"exportedModulesMap":[[144,1],[147,2],[59,1],[76,3],[77,4],[80,5],[78,5],[82,5],[85,6],[84,1],[83,5],[81,5],[79,4],[60,1],[61,7],[54,1],[56,1],[57,1],[58,8],[55,1],[69,9],[71,10],[70,1],[53,11],[45,1],[50,12],[48,13],[47,14],[49,1],[46,1],[146,1],[152,15],[90,16],[91,16],[93,17],[94,18],[95,19],[96,20],[97,21],[98,22],[99,23],[100,24],[101,25],[102,26],[103,26],[105,27],[104,28],[106,29],[107,30],[108,31],[92,32],[142,1],[109,33],[110,34],[111,35],[143,36],[112,37],[113,38],[114,39],[115,40],[116,41],[117,42],[118,43],[119,44],[120,45],[121,46],[122,46],[123,47],[124,48],[126,49],[125,50],[127,51],[128,52],[129,53],[130,54],[131,55],[132,56],[133,57],[134,58],[135,59],[136,60],[137,61],[138,62],[139,63],[140,64],[141,65],[63,66],[62,1],[145,1],[151,67],[149,68],[150,69],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[23,1],[20,1],[21,1],[22,1],[24,1],[25,1],[26,1],[5,1],[27,1],[28,1],[29,1],[30,1],[6,1],[34,1],[31,1],[32,1],[33,1],[35,1],[7,1],[36,1],[41,1],[42,1],[37,1],[38,1],[39,1],[40,1],[1,1],[43,1],[66,70],[64,71],[67,1],[65,72],[86,73],[68,74],[148,75],[87,76],[52,76],[51,1],[44,1],[75,82]],"semanticDiagnosticsPerFile":[144,147,59,76,77,80,78,82,85,84,83,81,79,60,61,54,56,57,58,55,69,71,70,53,45,50,48,47,49,46,146,152,90,91,93,94,95,96,97,98,99,100,101,102,103,105,104,106,107,108,92,142,109,110,111,143,112,113,114,115,116,117,118,119,120,121,122,123,124,126,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,63,62,145,151,149,150,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,34,31,32,33,35,7,36,41,42,37,38,39,40,1,43,66,64,67,65,86,68,148,87,52,51,44,72,74,75,88,73,89]},"version":"4.9.5"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./middlewares"), exports);
5
+ require("./routes");
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAE7B,oBAAiB","sourcesContent":["export * from './middlewares'\n\nimport './routes'\n"]}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.azureADSubscriptionMiddleware = exports.azureADMiddleware = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const koa_passport_1 = tslib_1.__importDefault(require("koa-passport"));
6
+ const passport_azure_ad_1 = require("passport-azure-ad");
7
+ const env_1 = require("@things-factory/env");
8
+ const auth_base_1 = require("@things-factory/auth-base");
9
+ const SSOAzureADConfig = env_1.config.get('SSOAzureAD');
10
+ if (SSOAzureADConfig) {
11
+ koa_passport_1.default.use(new passport_azure_ad_1.OIDCStrategy(Object.assign({ passReqToCallback: true, allowHttpForRedirectUrl: true, isB2C: false, scope: ['openid', 'email', 'profile'] }, SSOAzureADConfig), async (req, iss, sub, profile, accessToken, refreshToken, done) => {
12
+ var _a;
13
+ if (!profile.oid || !((_a = profile._json) === null || _a === void 0 ? void 0 : _a.email)) {
14
+ return done(new Error('No oid or no email found'), null);
15
+ }
16
+ try {
17
+ const { email } = profile._json;
18
+ const user = await auth_base_1.User.checkAuthWithEmail({ email });
19
+ const { id, userType, status } = user;
20
+ return done(null, {
21
+ id,
22
+ userType,
23
+ status
24
+ });
25
+ }
26
+ catch (error) {
27
+ return done(error);
28
+ }
29
+ }));
30
+ }
31
+ async function azureADMiddleware(context, next) {
32
+ const { path } = context;
33
+ const { user } = context.state;
34
+ if (user) {
35
+ return await next();
36
+ }
37
+ await koa_passport_1.default.authenticate('azuread-openidconnect', {
38
+ failureRedirect: '/auth/signin',
39
+ successRedirect: '/auth/checkin'
40
+ })(context, next);
41
+ }
42
+ exports.azureADMiddleware = azureADMiddleware;
43
+ async function azureADSubscriptionMiddleware(context, next) {
44
+ var _a;
45
+ const { path } = context;
46
+ const { user } = context.state;
47
+ if (user) {
48
+ return await next();
49
+ }
50
+ await koa_passport_1.default.authenticate('azuread-openidconnect', {
51
+ failureRedirect: '/auth/signin',
52
+ successRedirect: '/auth/checkin'
53
+ })(context);
54
+ /* 다음은, websocket 에서 인증을 처리하기 위한 작업임. */
55
+ const passportObject = (_a = context.session) === null || _a === void 0 ? void 0 : _a.passport;
56
+ if (passportObject) {
57
+ const userEntity = await auth_base_1.User.checkAuth(passportObject === null || passportObject === void 0 ? void 0 : passportObject.user);
58
+ context.state.user = userEntity;
59
+ }
60
+ return await next();
61
+ }
62
+ exports.azureADSubscriptionMiddleware = azureADSubscriptionMiddleware;
63
+ //# sourceMappingURL=azure-ad-authenticate-middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azure-ad-authenticate-middleware.js","sourceRoot":"","sources":["../../server/middlewares/azure-ad-authenticate-middleware.ts"],"names":[],"mappings":";;;;AAAA,wEAAmC;AACnC,yDAAgD;AAEhD,6CAA4C;AAC5C,yDAAgD;AAEhD,MAAM,gBAAgB,GAAG,YAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEjD,IAAI,gBAAgB,EAAE;IACpB,sBAAQ,CAAC,GAAG,CACV,IAAI,gCAAY,iBAEZ,iBAAiB,EAAE,IAAI,EACvB,uBAAuB,EAAE,IAAI,EAC7B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,IAClC,gBAAgB,GAErB,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE;;QAChE,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,KAAK,CAAA,EAAE;YACzC,OAAO,IAAI,CAAC,IAAI,KAAK,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC,CAAA;SACzD;QAED,IAAI;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;YAE/B,MAAM,IAAI,GAAG,MAAM,gBAAI,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;YAErD,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;YAErC,OAAO,IAAI,CAAC,IAAI,EAAE;gBAChB,EAAE;gBACF,QAAQ;gBACR,MAAM;aACP,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,IAAI,CAAC,KAAK,CAAC,CAAA;SACnB;IACH,CAAC,CACF,CACF,CAAA;CACF;AAEM,KAAK,UAAU,iBAAiB,CAAC,OAAO,EAAE,IAAI;IACnD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAE9B,IAAI,IAAI,EAAE;QACR,OAAO,MAAM,IAAI,EAAE,CAAA;KACpB;IAED,MAAM,sBAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE;QACnD,eAAe,EAAE,cAAc;QAC/B,eAAe,EAAE,eAAe;KACjC,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACnB,CAAC;AAZD,8CAYC;AAEM,KAAK,UAAU,6BAA6B,CAAC,OAAO,EAAE,IAAI;;IAC/D,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAE9B,IAAI,IAAI,EAAE;QACR,OAAO,MAAM,IAAI,EAAE,CAAA;KACpB;IAED,MAAM,sBAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE;QACnD,eAAe,EAAE,cAAc;QAC/B,eAAe,EAAE,eAAe;KACjC,CAAC,CAAC,OAAO,CAAC,CAAA;IAEX,wCAAwC;IACxC,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,OAAO,0CAAE,QAAQ,CAAA;IAChD,IAAI,cAAc,EAAE;QAClB,MAAM,UAAU,GAAG,MAAM,gBAAI,CAAC,SAAS,CAAC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,CAAC,CAAA;QAC7D,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,UAAU,CAAA;KAChC;IAED,OAAO,MAAM,IAAI,EAAE,CAAA;AACrB,CAAC;AArBD,sEAqBC","sourcesContent":["import passport from 'koa-passport'\nimport { OIDCStrategy } from 'passport-azure-ad'\n\nimport { config } from '@things-factory/env'\nimport { User } from '@things-factory/auth-base'\n\nconst SSOAzureADConfig = config.get('SSOAzureAD')\n\nif (SSOAzureADConfig) {\n passport.use(\n new OIDCStrategy(\n {\n passReqToCallback: true,\n allowHttpForRedirectUrl: true,\n isB2C: false,\n scope: ['openid', 'email', 'profile'],\n ...SSOAzureADConfig\n },\n async (req, iss, sub, profile, accessToken, refreshToken, done) => {\n if (!profile.oid || !profile._json?.email) {\n return done(new Error('No oid or no email found'), null)\n }\n\n try {\n const { email } = profile._json\n\n const user = await User.checkAuthWithEmail({ email })\n\n const { id, userType, status } = user\n\n return done(null, {\n id,\n userType,\n status\n })\n } catch (error) {\n return done(error)\n }\n }\n )\n )\n}\n\nexport async function azureADMiddleware(context, next) {\n const { path } = context\n const { user } = context.state\n\n if (user) {\n return await next()\n }\n\n await passport.authenticate('azuread-openidconnect', {\n failureRedirect: '/auth/signin',\n successRedirect: '/auth/checkin'\n })(context, next)\n}\n\nexport async function azureADSubscriptionMiddleware(context, next) {\n const { path } = context\n const { user } = context.state\n\n if (user) {\n return await next()\n }\n\n await passport.authenticate('azuread-openidconnect', {\n failureRedirect: '/auth/signin',\n successRedirect: '/auth/checkin'\n })(context)\n\n /* 다음은, websocket 에서 인증을 처리하기 위한 작업임. */\n const passportObject = context.session?.passport\n if (passportObject) {\n const userEntity = await User.checkAuth(passportObject?.user)\n context.state.user = userEntity\n }\n\n return await next()\n}\n"]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./azure-ad-authenticate-middleware"), exports);
5
+ const azure_ad_authenticate_middleware_1 = require("./azure-ad-authenticate-middleware");
6
+ process.on('bootstrap-module-subscription', (app, subscriptionMiddleware) => {
7
+ subscriptionMiddleware.unshift(azure_ad_authenticate_middleware_1.azureADSubscriptionMiddleware);
8
+ });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,6EAAkD;AAElD,yFAAkF;AAElF,OAAO,CAAC,EAAE,CAAC,+BAAsC,EAAE,CAAC,GAAG,EAAE,sBAAsB,EAAE,EAAE;IACjF,sBAAsB,CAAC,OAAO,CAAC,gEAA6B,CAAC,CAAA;AAC/D,CAAC,CAAC,CAAA","sourcesContent":["export * from './azure-ad-authenticate-middleware'\n\nimport { azureADSubscriptionMiddleware } from './azure-ad-authenticate-middleware'\n\nprocess.on('bootstrap-module-subscription' as any, (app, subscriptionMiddleware) => {\n subscriptionMiddleware.unshift(azureADSubscriptionMiddleware)\n})\n"]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.authAzureADRouter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const koa_router_1 = tslib_1.__importDefault(require("koa-router"));
6
+ const koa_passport_1 = tslib_1.__importDefault(require("koa-passport"));
7
+ // import { setAccessTokenCookie } from '../utils/access-token-cookie'
8
+ exports.authAzureADRouter = new koa_router_1.default();
9
+ exports.authAzureADRouter.post('/auth/callback-azure-ad', koa_passport_1.default.authenticate('azuread-openidconnect', { failureRedirect: '/auth/signin', successRedirect: '/auth/checkin' }));
10
+ // authAzureADRouter.post('/auth/callback-azure-ad', azureADMiddleware, async (context, next) => {
11
+ // const { request, t } = context
12
+ // const { token, domain } = context.state
13
+ // const { body: reqBody, header } = request
14
+ // // if (!accepts(header.accept, ['text/html', '*/*'])) {
15
+ // // context.body = token
16
+ // // return
17
+ // // }
18
+ // var redirectTo = `/auth/checkin${domain ? '/' + domain.subdomain : ''}?redirect_to=${encodeURIComponent(
19
+ // reqBody.redirectTo || '/'
20
+ // )}`
21
+ // setAccessTokenCookie(context, token)
22
+ // context.redirect(redirectTo)
23
+ // })
24
+ //# sourceMappingURL=auth-azure-ad-router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-azure-ad-router.js","sourceRoot":"","sources":["../../server/router/auth-azure-ad-router.ts"],"names":[],"mappings":";;;;AAAA,oEAA+B;AAE/B,wEAAmC;AAEnC,sEAAsE;AAEzD,QAAA,iBAAiB,GAAG,IAAI,oBAAM,EAAE,CAAA;AAE7C,yBAAiB,CAAC,IAAI,CACpB,yBAAyB,EACzB,sBAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,CACtH,CAAA;AAED,kGAAkG;AAClG,mCAAmC;AACnC,4CAA4C;AAC5C,8CAA8C;AAE9C,4DAA4D;AAC5D,8BAA8B;AAC9B,gBAAgB;AAChB,SAAS;AAET,6GAA6G;AAC7G,gCAAgC;AAChC,QAAQ;AAER,yCAAyC;AAEzC,iCAAiC;AACjC,KAAK","sourcesContent":["import Router from 'koa-router'\n\nimport passport from 'koa-passport'\nimport { azureADMiddleware } from '../middlewares'\n// import { setAccessTokenCookie } from '../utils/access-token-cookie'\n\nexport const authAzureADRouter = new Router()\n\nauthAzureADRouter.post(\n '/auth/callback-azure-ad',\n passport.authenticate('azuread-openidconnect', { failureRedirect: '/auth/signin', successRedirect: '/auth/checkin' })\n)\n\n// authAzureADRouter.post('/auth/callback-azure-ad', azureADMiddleware, async (context, next) => {\n// const { request, t } = context\n// const { token, domain } = context.state\n// const { body: reqBody, header } = request\n\n// // if (!accepts(header.accept, ['text/html', '*/*'])) {\n// // context.body = token\n// // return\n// // }\n\n// var redirectTo = `/auth/checkin${domain ? '/' + domain.subdomain : ''}?redirect_to=${encodeURIComponent(\n// reqBody.redirectTo || '/'\n// )}`\n\n// setAccessTokenCookie(context, token)\n\n// context.redirect(redirectTo)\n// })\n"]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./auth-azure-ad-router"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/router/index.ts"],"names":[],"mappings":";;;AAAA,iEAAsC","sourcesContent":["export * from './auth-azure-ad-router'\n"]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const middlewares_1 = require("./middlewares");
4
+ const router_1 = require("./router");
5
+ process.on('bootstrap-collect-sso-middleware', (_, ssoMiddlewares) => {
6
+ ssoMiddlewares.push(middlewares_1.azureADMiddleware);
7
+ });
8
+ process.on('bootstrap-module-domain-public-route', (app, domainPublicRouter) => {
9
+ domainPublicRouter.use(router_1.authAzureADRouter.routes(), router_1.authAzureADRouter.allowedMethods());
10
+ });
11
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,+CAAiD;AACjD,qCAA4C;AAE5C,OAAO,CAAC,EAAE,CAAC,kCAAyC,EAAE,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE;IAC1E,cAAc,CAAC,IAAI,CAAC,+BAAiB,CAAC,CAAA;AACxC,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF,kBAAkB,CAAC,GAAG,CAAC,0BAAiB,CAAC,MAAM,EAAE,EAAE,0BAAiB,CAAC,cAAc,EAAE,CAAC,CAAA;AACxF,CAAC,CAAC,CAAA","sourcesContent":["import { azureADMiddleware } from './middlewares'\nimport { authAzureADRouter } from './router'\n\nprocess.on('bootstrap-collect-sso-middleware' as any, (_, ssoMiddlewares) => {\n ssoMiddlewares.push(azureADMiddleware)\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n domainPublicRouter.use(authAzureADRouter.routes(), authAzureADRouter.allowedMethods())\n})\n"]}