@darraghor/nest-backend-libs 1.21.0 → 1.23.0
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.
- package/dist/authz/AccessToken.d.ts +1 -1
- package/dist/authz/AccessToken.js +2 -1
- package/dist/authz/AuthConfigurationService.js +17 -15
- package/dist/authz/AuthConfigurationService.js.map +1 -1
- package/dist/authz/AuthConfigurationVariables.js +4 -2
- package/dist/authz/AuthConfigurationVariables.js.map +1 -1
- package/dist/authz/ClaimsAuthorisationGuard.js +10 -9
- package/dist/authz/ClaimsAuthorisationGuard.js.map +1 -1
- package/dist/authz/DefaultAuthGuard.js +8 -5
- package/dist/authz/DefaultAuthGuard.js.map +1 -1
- package/dist/authz/MandatoryUserClaims.decorator.js +6 -2
- package/dist/authz/MandatoryUserClaims.decorator.js.map +1 -1
- package/dist/authz/RequestWithUser.d.ts +1 -1
- package/dist/authz/RequestWithUser.js +2 -1
- package/dist/authz/authz.module.js +23 -17
- package/dist/authz/authz.module.js.map +1 -1
- package/dist/authz/authzstrategy.js +22 -20
- package/dist/authz/authzstrategy.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationService.js +13 -11
- package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationVariables.js +4 -2
- package/dist/authzclient/AuthClientConfigurationVariables.js.map +1 -1
- package/dist/authzclient/AuthzClientProvider.js +8 -5
- package/dist/authzclient/AuthzClientProvider.js.map +1 -1
- package/dist/authzclient/UserProfile.dto.js +5 -21
- package/dist/authzclient/UserProfile.dto.js.map +1 -1
- package/dist/authzclient/authz-client.module.js +19 -13
- package/dist/authzclient/authz-client.module.js.map +1 -1
- package/dist/authzclient/authz.service.js +14 -10
- package/dist/authzclient/authz.service.js.map +1 -1
- package/dist/configuration/ValidatedConfigurationService.js +8 -5
- package/dist/configuration/ValidatedConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfig.module.js +15 -9
- package/dist/core-config/CoreConfig.module.js.map +1 -1
- package/dist/core-config/CoreConfigurationService.js +27 -25
- package/dist/core-config/CoreConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfigurationVariables.js +4 -2
- package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
- package/dist/database-postgres/PostgresDatabase.module.js +14 -11
- package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js +8 -5
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js.map +1 -1
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +12 -5
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/database-postgres/write-typeorm-config.js +10 -5
- package/dist/database-postgres/write-typeorm-config.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabase.module.js +14 -11
- package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js +8 -5
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js.map +1 -1
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js +12 -5
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/database-sqlite/write-typeorm-config.js +10 -5
- package/dist/database-sqlite/write-typeorm-config.js.map +1 -1
- package/dist/email-client/EmailConfigurationService.js +23 -21
- package/dist/email-client/EmailConfigurationService.js.map +1 -1
- package/dist/email-client/EmailConfigurationVariables.js +4 -2
- package/dist/email-client/EmailConfigurationVariables.js.map +1 -1
- package/dist/email-client/email-client.module.js +23 -17
- package/dist/email-client/email-client.module.js.map +1 -1
- package/dist/email-client/email-client.service.js +20 -18
- package/dist/email-client/email-client.service.js.map +1 -1
- package/dist/email-client/email.controller.js +15 -13
- package/dist/email-client/email.controller.js.map +1 -1
- package/dist/email-client/email.entity.js +31 -38
- package/dist/email-client/email.entity.js.map +1 -1
- package/dist/index.js +42 -19
- package/dist/index.js.map +1 -1
- package/dist/logger/CoreLoggerService.js +12 -12
- package/dist/logger/CoreLoggerService.js.map +1 -1
- package/dist/logger/LoggingConfigurationService.js +15 -13
- package/dist/logger/LoggingConfigurationService.js.map +1 -1
- package/dist/logger/LoggingConfigurationVariables.js +4 -2
- package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
- package/dist/logger/LoggingInterceptor.js +13 -8
- package/dist/logger/LoggingInterceptor.js.map +1 -1
- package/dist/logger/logger.module.js +20 -14
- package/dist/logger/logger.module.js.map +1 -1
- package/dist/organisation/dto/create-organisation.dto.js +11 -10
- package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
- package/dist/organisation/dto/update-organisation.dto.js +7 -3
- package/dist/organisation/dto/update-organisation.dto.js.map +1 -1
- package/dist/organisation/entities/organisation.entity.js +34 -40
- package/dist/organisation/entities/organisation.entity.js.map +1 -1
- package/dist/organisation/organisation.controller.js +32 -30
- package/dist/organisation/organisation.controller.js.map +1 -1
- package/dist/organisation/organisation.module.js +15 -12
- package/dist/organisation/organisation.module.js.map +1 -1
- package/dist/organisation/organisation.service.js +11 -9
- package/dist/organisation/organisation.service.js.map +1 -1
- package/dist/person/PersonConfigurationService.js +23 -21
- package/dist/person/PersonConfigurationService.js.map +1 -1
- package/dist/person/PersonConfigurationVariables.js +4 -2
- package/dist/person/PersonConfigurationVariables.js.map +1 -1
- package/dist/person/dto/create-person.dto.js +5 -1
- package/dist/person/dto/create-person.dto.js.map +1 -1
- package/dist/person/dto/update-person.dto.js +7 -3
- package/dist/person/dto/update-person.dto.js.map +1 -1
- package/dist/person/entities/person.entity.js +46 -59
- package/dist/person/entities/person.entity.js.map +1 -1
- package/dist/person/person.controller.js +28 -26
- package/dist/person/person.controller.js.map +1 -1
- package/dist/person/person.module.js +25 -19
- package/dist/person/person.module.js.map +1 -1
- package/dist/person/person.service.js +25 -23
- package/dist/person/person.service.js.map +1 -1
- package/dist/root-app/SwaggerGen.js +21 -17
- package/dist/root-app/SwaggerGen.js.map +1 -1
- package/dist/root-app/app.controller.js +23 -19
- package/dist/root-app/app.controller.js.map +1 -1
- package/dist/root-app/app.service.js +6 -3
- package/dist/root-app/app.service.js.map +1 -1
- package/dist/root-app/core-app.module.js +31 -25
- package/dist/root-app/core-app.module.js.map +1 -1
- package/dist/root-app/notfound.interceptor.js +9 -7
- package/dist/root-app/notfound.interceptor.js.map +1 -1
- package/dist/testing/preRun.js +3 -1
- package/dist/testing/preRun.js.map +1 -1
- package/package.json +5 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7,13 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthConfigurationService = void 0;
|
|
10
13
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let AuthConfigurationService = class AuthConfigurationService extends ValidatedConfigurationService {
|
|
16
|
-
configService;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const config_1 = require("@nestjs/config");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const ValidatedConfigurationService_1 = require("../configuration/ValidatedConfigurationService");
|
|
18
|
+
let AuthConfigurationService = class AuthConfigurationService extends ValidatedConfigurationService_1.ValidatedConfigurationService {
|
|
17
19
|
constructor(configService) {
|
|
18
20
|
super();
|
|
19
21
|
this.configService = configService;
|
|
@@ -29,26 +31,26 @@ let AuthConfigurationService = class AuthConfigurationService extends ValidatedC
|
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
33
|
__decorate([
|
|
32
|
-
IsDefined(),
|
|
33
|
-
IsString(),
|
|
34
|
+
(0, class_validator_1.IsDefined)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
34
36
|
__metadata("design:type", String),
|
|
35
37
|
__metadata("design:paramtypes", [])
|
|
36
38
|
], AuthConfigurationService.prototype, "auth0IssuerUrl", null);
|
|
37
39
|
__decorate([
|
|
38
|
-
IsDefined(),
|
|
39
|
-
IsString(),
|
|
40
|
+
(0, class_validator_1.IsDefined)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
40
42
|
__metadata("design:type", String),
|
|
41
43
|
__metadata("design:paramtypes", [])
|
|
42
44
|
], AuthConfigurationService.prototype, "auth0Audience", null);
|
|
43
45
|
__decorate([
|
|
44
|
-
IsDefined(),
|
|
45
|
-
IsString(),
|
|
46
|
+
(0, class_validator_1.IsDefined)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
46
48
|
__metadata("design:type", String),
|
|
47
49
|
__metadata("design:paramtypes", [])
|
|
48
50
|
], AuthConfigurationService.prototype, "auth0Domain", null);
|
|
49
51
|
AuthConfigurationService = __decorate([
|
|
50
|
-
Injectable(),
|
|
51
|
-
__metadata("design:paramtypes", [ConfigService])
|
|
52
|
+
(0, common_1.Injectable)(),
|
|
53
|
+
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
52
54
|
], AuthConfigurationService);
|
|
53
|
-
|
|
55
|
+
exports.AuthConfigurationService = AuthConfigurationService;
|
|
54
56
|
//# sourceMappingURL=AuthConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthConfigurationService.js","sourceRoot":"","sources":["../../src/authz/AuthConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthConfigurationService.js","sourceRoot":"","sources":["../../src/authz/AuthConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA0C;AAC1C,2CAA6C;AAC7C,qDAAoD;AACpD,kGAA6F;AAGtF,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,6DAA6B;IACvE,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,cAAc;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAE,CAAC;IAClE,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAE,CAAC;IACjE,CAAC;IAED,IAEI,WAAW;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,kBAAkB,CAAE,CAAC;IAC/D,CAAC;CACJ,CAAA;AAjBG;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;8DAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;6DAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;2DAGV;AArBQ,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,wBAAwB,CAsBpC;AAtBY,4DAAwB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const config_1 = require("@nestjs/config");
|
|
4
|
+
exports.default = (0, config_1.registerAs)("auth", () => ({
|
|
3
5
|
auth0Domain: process.env.AUTH0_DOMAIN,
|
|
4
6
|
auth0issuerUrl: process.env.AUTH0_ISSUER_URL,
|
|
5
7
|
auth0audience: process.env.AUTH0_AUDIENCE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthConfigurationVariables.js","sourceRoot":"","sources":["../../src/authz/AuthConfigurationVariables.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AuthConfigurationVariables.js","sourceRoot":"","sources":["../../src/authz/AuthConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IACrC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC5C,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;CAC5C,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7,12 +8,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClaimsAuthorisationGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
15
|
+
const __1 = require("..");
|
|
13
16
|
let ClaimsAuthorisationGuard = class ClaimsAuthorisationGuard {
|
|
14
|
-
reflector;
|
|
15
|
-
logger;
|
|
16
17
|
constructor(reflector, logger) {
|
|
17
18
|
this.reflector = reflector;
|
|
18
19
|
this.logger = logger;
|
|
@@ -36,9 +37,9 @@ let ClaimsAuthorisationGuard = class ClaimsAuthorisationGuard {
|
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
ClaimsAuthorisationGuard = __decorate([
|
|
39
|
-
Injectable(),
|
|
40
|
-
__metadata("design:paramtypes", [Reflector,
|
|
41
|
-
CoreLoggerService])
|
|
40
|
+
(0, common_1.Injectable)(),
|
|
41
|
+
__metadata("design:paramtypes", [core_1.Reflector,
|
|
42
|
+
__1.CoreLoggerService])
|
|
42
43
|
], ClaimsAuthorisationGuard);
|
|
43
|
-
|
|
44
|
+
exports.ClaimsAuthorisationGuard = ClaimsAuthorisationGuard;
|
|
44
45
|
//# sourceMappingURL=ClaimsAuthorisationGuard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsAuthorisationGuard.js","sourceRoot":"","sources":["../../src/authz/ClaimsAuthorisationGuard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClaimsAuthorisationGuard.js","sourceRoot":"","sources":["../../src/authz/ClaimsAuthorisationGuard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyE;AAEzE,uCAAuC;AAEvC,0BAAqC;AAG9B,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YACqB,SAAoB,EACpB,MAAyB;QADzB,cAAS,GAAT,SAAS,CAAW;QACpB,WAAM,GAAN,MAAM,CAAmB;IAC3C,CAAC;IAEJ,WAAW,CACP,OAAyB;QAEzB,IAAI;YACA,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACvC,qBAAqB,EACrB,OAAO,CAAC,UAAU,EAAE,CACvB,CAAC;YAEF,MAAM,WAAW,GAAG,OAAO;iBACtB,YAAY,EAAE;iBACd,UAAU,EAAmB,CAAC;YACnC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;YAE9B,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE;gBACpD,OAAO,IAAI,CAAC;aACf;YAED,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,EAAE,CAC9C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,eAAe,CAAC,CAC7C,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;YACjD,OAAO,KAAK,CAAC;SAChB;IACL,CAAC;CACJ,CAAA;AAhCY,wBAAwB;IADpC,IAAA,mBAAU,GAAE;qCAGuB,gBAAS;QACZ,qBAAiB;GAHrC,wBAAwB,CAgCpC;AAhCY,4DAAwB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7,16 +8,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DefaultAuthGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const passport_1 = require("@nestjs/passport");
|
|
15
|
+
let DefaultAuthGuard = class DefaultAuthGuard extends (0, passport_1.AuthGuard)("jwt") {
|
|
13
16
|
constructor() {
|
|
14
17
|
super();
|
|
15
18
|
}
|
|
16
19
|
};
|
|
17
20
|
DefaultAuthGuard = __decorate([
|
|
18
|
-
Injectable(),
|
|
21
|
+
(0, common_1.Injectable)(),
|
|
19
22
|
__metadata("design:paramtypes", [])
|
|
20
23
|
], DefaultAuthGuard);
|
|
21
|
-
|
|
24
|
+
exports.DefaultAuthGuard = DefaultAuthGuard;
|
|
22
25
|
//# sourceMappingURL=DefaultAuthGuard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAuthGuard.js","sourceRoot":"","sources":["../../src/authz/DefaultAuthGuard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefaultAuthGuard.js","sourceRoot":"","sources":["../../src/authz/DefaultAuthGuard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,+CAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,IAAA,oBAAS,EAAC,KAAK,CAAC;IAClD;QACI,KAAK,EAAE,CAAC;IACZ,CAAC;CACJ,CAAA;AAJY,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;;GACA,gBAAgB,CAI5B;AAJY,4CAAgB"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MandatoryUserClaims = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
2
5
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
3
|
-
|
|
6
|
+
const MandatoryUserClaims = (...mandatoryUserClaims) => (0, common_1.SetMetadata)("mandatoryUserClaims", mandatoryUserClaims);
|
|
7
|
+
exports.MandatoryUserClaims = MandatoryUserClaims;
|
|
4
8
|
//# sourceMappingURL=MandatoryUserClaims.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MandatoryUserClaims.decorator.js","sourceRoot":"","sources":["../../src/authz/MandatoryUserClaims.decorator.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"MandatoryUserClaims.decorator.js","sourceRoot":"","sources":["../../src/authz/MandatoryUserClaims.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C,6EAA6E;AACtE,MAAM,mBAAmB,GAAG,CAAC,GAAG,mBAA6B,EAAE,EAAE,CACpE,IAAA,oBAAW,EAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;AAD/C,QAAA,mBAAmB,uBAC4B"}
|
|
@@ -3,6 +3,6 @@ import { Request } from "express";
|
|
|
3
3
|
export interface RequestWithUser extends Request {
|
|
4
4
|
user: RequestPerson;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type RequestPerson = Pick<Person, Exclude<keyof Person, "nullChecks">> & {
|
|
7
7
|
permissions: string[];
|
|
8
8
|
};
|
|
@@ -1,31 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthzModule = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const passport_1 = require("@nestjs/passport");
|
|
15
|
+
const logger_module_1 = require("../logger/logger.module");
|
|
16
|
+
const person_module_1 = require("../person/person.module");
|
|
17
|
+
const AuthConfigurationService_1 = require("./AuthConfigurationService");
|
|
18
|
+
const authzstrategy_1 = require("./authzstrategy");
|
|
19
|
+
const AuthConfigurationVariables_1 = __importDefault(require("./AuthConfigurationVariables"));
|
|
20
|
+
const config_1 = require("@nestjs/config");
|
|
21
|
+
const DefaultAuthGuard_1 = require("./DefaultAuthGuard");
|
|
16
22
|
let AuthzModule = class AuthzModule {
|
|
17
23
|
};
|
|
18
24
|
AuthzModule = __decorate([
|
|
19
|
-
Module({
|
|
25
|
+
(0, common_1.Module)({
|
|
20
26
|
imports: [
|
|
21
|
-
ConfigModule.forFeature(
|
|
22
|
-
PassportModule.register({ defaultStrategy: "jwt" }),
|
|
23
|
-
LoggerModule,
|
|
24
|
-
PersonModule,
|
|
27
|
+
config_1.ConfigModule.forFeature(AuthConfigurationVariables_1.default),
|
|
28
|
+
passport_1.PassportModule.register({ defaultStrategy: "jwt" }),
|
|
29
|
+
logger_module_1.LoggerModule,
|
|
30
|
+
person_module_1.PersonModule,
|
|
25
31
|
],
|
|
26
|
-
providers: [JwtStrategy, AuthConfigurationService, DefaultAuthGuard],
|
|
27
|
-
exports: [PassportModule, AuthConfigurationService, DefaultAuthGuard],
|
|
32
|
+
providers: [authzstrategy_1.JwtStrategy, AuthConfigurationService_1.AuthConfigurationService, DefaultAuthGuard_1.DefaultAuthGuard],
|
|
33
|
+
exports: [passport_1.PassportModule, AuthConfigurationService_1.AuthConfigurationService, DefaultAuthGuard_1.DefaultAuthGuard],
|
|
28
34
|
})
|
|
29
35
|
], AuthzModule);
|
|
30
|
-
|
|
36
|
+
exports.AuthzModule = AuthzModule;
|
|
31
37
|
//# sourceMappingURL=authz.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz.module.js","sourceRoot":"","sources":["../../src/authz/authz.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authz.module.js","sourceRoot":"","sources":["../../src/authz/authz.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsC;AACtC,+CAAgD;AAChD,2DAAqD;AACrD,2DAAqD;AACrD,yEAAoE;AACpE,mDAA4C;AAC5C,8FAA2D;AAC3D,2CAA4C;AAC5C,yDAAoD;AAY7C,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,WAAW;IAVvB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,qBAAY,CAAC,UAAU,CAAC,oCAAe,CAAC;YACxC,yBAAc,CAAC,QAAQ,CAAC,EAAC,eAAe,EAAE,KAAK,EAAC,CAAC;YACjD,4BAAY;YACZ,4BAAY;SACf;QACD,SAAS,EAAE,CAAC,2BAAW,EAAE,mDAAwB,EAAE,mCAAgB,CAAC;QACpE,OAAO,EAAE,CAAC,yBAAc,EAAE,mDAAwB,EAAE,mCAAgB,CAAC;KACxE,CAAC;GACW,WAAW,CAAG;AAAd,kCAAW"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7,21 +8,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.JwtStrategy = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const passport_1 = require("@nestjs/passport");
|
|
18
|
+
const passport_jwt_1 = require("passport-jwt");
|
|
19
|
+
const jwks_rsa_1 = require("jwks-rsa");
|
|
20
|
+
const person_service_1 = require("../person/person.service");
|
|
21
|
+
const AuthConfigurationService_1 = require("./AuthConfigurationService");
|
|
22
|
+
const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
|
|
23
|
+
let JwtStrategy = class JwtStrategy extends (0, passport_1.PassportStrategy)(passport_jwt_1.Strategy) {
|
|
22
24
|
constructor(personService, logger, config) {
|
|
23
25
|
super({
|
|
24
|
-
secretOrKeyProvider: passportJwtSecret({
|
|
26
|
+
secretOrKeyProvider: (0, jwks_rsa_1.passportJwtSecret)({
|
|
25
27
|
cache: true,
|
|
26
28
|
rateLimit: true,
|
|
27
29
|
jwksRequestsPerMinute: 5,
|
|
@@ -29,7 +31,7 @@ let JwtStrategy = class JwtStrategy extends PassportStrategy(Strategy) {
|
|
|
29
31
|
}),
|
|
30
32
|
passReqToCallback: true,
|
|
31
33
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
|
32
|
-
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
|
|
34
|
+
jwtFromRequest: passport_jwt_1.ExtractJwt.fromAuthHeaderAsBearerToken(),
|
|
33
35
|
audience: config.auth0Audience,
|
|
34
36
|
issuer: config.auth0IssuerUrl,
|
|
35
37
|
algorithms: ["RS256"],
|
|
@@ -40,7 +42,7 @@ let JwtStrategy = class JwtStrategy extends PassportStrategy(Strategy) {
|
|
|
40
42
|
console.debug("Config usage", this._config.auth0IssuerUrl);
|
|
41
43
|
}
|
|
42
44
|
async validate(request, payload) {
|
|
43
|
-
const rawAccessToken = ExtractJwt.fromAuthHeaderAsBearerToken()(request);
|
|
45
|
+
const rawAccessToken = passport_jwt_1.ExtractJwt.fromAuthHeaderAsBearerToken()(request);
|
|
44
46
|
if (rawAccessToken === undefined || rawAccessToken === null) {
|
|
45
47
|
this.logger.error("Couldn't log the raw access token");
|
|
46
48
|
return;
|
|
@@ -51,10 +53,10 @@ let JwtStrategy = class JwtStrategy extends PassportStrategy(Strategy) {
|
|
|
51
53
|
}
|
|
52
54
|
};
|
|
53
55
|
JwtStrategy = __decorate([
|
|
54
|
-
Injectable(),
|
|
55
|
-
__metadata("design:paramtypes", [PersonService,
|
|
56
|
-
|
|
57
|
-
AuthConfigurationService])
|
|
56
|
+
(0, common_1.Injectable)(),
|
|
57
|
+
__metadata("design:paramtypes", [person_service_1.PersonService,
|
|
58
|
+
CoreLoggerService_1.default,
|
|
59
|
+
AuthConfigurationService_1.AuthConfigurationService])
|
|
58
60
|
], JwtStrategy);
|
|
59
|
-
|
|
61
|
+
exports.JwtStrategy = JwtStrategy;
|
|
60
62
|
//# sourceMappingURL=authzstrategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authzstrategy.js","sourceRoot":"","sources":["../../src/authz/authzstrategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authzstrategy.js","sourceRoot":"","sources":["../../src/authz/authzstrategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0C;AAC1C,+CAAkD;AAClD,+CAAkD;AAClD,uCAA2C;AAC3C,6DAAuD;AAGvD,yEAAoE;AACpE,oFAA4D;AAIrD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,IAAA,2BAAgB,EAAC,uBAAQ,CAAC;IAIvD,YACqB,aAA4B,EAC5B,MAAyB,EAC1C,MAAgC;QAEhC,KAAK,CAAC;YACF,mBAAmB,EAAE,IAAA,4BAAiB,EAAC;gBACnC,KAAK,EAAE,IAAI;gBACX,SAAS,EAAE,IAAI;gBACf,qBAAqB,EAAE,CAAC;gBACxB,OAAO,EAAE,GAAG,MAAM,CAAC,cAAc,uBAAuB;aAC3D,CAAC;YACF,iBAAiB,EAAE,IAAI;YACvB,iJAAiJ;YACjJ,cAAc,EAAE,yBAAU,CAAC,2BAA2B,EAAE;YACxD,QAAQ,EAAE,MAAM,CAAC,aAAa;YAC9B,MAAM,EAAE,MAAM,CAAC,cAAc;YAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;SACxB,CAAC,CAAC;QAjBc,kBAAa,GAAb,aAAa,CAAe;QAC5B,WAAM,GAAN,MAAM,CAAmB;QAiB1C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,QAAQ,CACV,OAAgB,EAChB,OAAoB;QAEpB,MAAM,cAAc,GAChB,yBAAU,CAAC,2BAA2B,EAAE,CAAC,OAAO,CAAC,CAAC;QACtD,IAAI,cAAc,KAAK,SAAS,IAAI,cAAc,KAAK,IAAI,EAAE;YACzD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;YACvD,OAAO;SACV;QAED,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CACtD,OAAO,EACP,cAAc,CACjB,CAAC;QACF,MAAM,eAAe,GAAG,EAAC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE,EAAC,CAAC;QACjE,OAAO,EAAC,GAAG,YAAY,EAAE,GAAG,eAAe,EAAkB,CAAC;IAClE,CAAC;CACJ,CAAA;AA9CY,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAM2B,8BAAa;QACpB,2BAAiB;QAClC,mDAAwB;GAP3B,WAAW,CA8CvB;AA9CY,kCAAW"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7,13 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthClientConfigurationService = void 0;
|
|
10
13
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let AuthClientConfigurationService = class AuthClientConfigurationService extends ValidatedConfigurationService {
|
|
16
|
-
configService;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const config_1 = require("@nestjs/config");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
const ValidatedConfigurationService_1 = require("../configuration/ValidatedConfigurationService");
|
|
18
|
+
let AuthClientConfigurationService = class AuthClientConfigurationService extends ValidatedConfigurationService_1.ValidatedConfigurationService {
|
|
17
19
|
constructor(configService) {
|
|
18
20
|
super();
|
|
19
21
|
this.configService = configService;
|
|
@@ -23,14 +25,14 @@ let AuthClientConfigurationService = class AuthClientConfigurationService extend
|
|
|
23
25
|
}
|
|
24
26
|
};
|
|
25
27
|
__decorate([
|
|
26
|
-
IsDefined(),
|
|
27
|
-
IsString(),
|
|
28
|
+
(0, class_validator_1.IsDefined)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
28
30
|
__metadata("design:type", String),
|
|
29
31
|
__metadata("design:paramtypes", [])
|
|
30
32
|
], AuthClientConfigurationService.prototype, "auth0Domain", null);
|
|
31
33
|
AuthClientConfigurationService = __decorate([
|
|
32
|
-
Injectable(),
|
|
33
|
-
__metadata("design:paramtypes", [ConfigService])
|
|
34
|
+
(0, common_1.Injectable)(),
|
|
35
|
+
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
34
36
|
], AuthClientConfigurationService);
|
|
35
|
-
|
|
37
|
+
exports.AuthClientConfigurationService = AuthClientConfigurationService;
|
|
36
38
|
//# sourceMappingURL=AuthClientConfigurationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthClientConfigurationService.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthClientConfigurationService.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA0C;AAC1C,2CAA6C;AAC7C,qDAAoD;AACpD,kGAA6F;AAGtF,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,6DAA6B;IAC7E,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,WAAW;QACX,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,wBAAwB,CAAE,CAAC;IACrE,CAAC;CACJ,CAAA;AALG;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;iEAGV;AATQ,8BAA8B;IAD1C,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,8BAA8B,CAU1C;AAVY,wEAA8B"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const config_1 = require("@nestjs/config");
|
|
4
|
+
exports.default = (0, config_1.registerAs)("authclient", () => ({
|
|
3
5
|
auth0Domain: process.env.AUTH0_DOMAIN,
|
|
4
6
|
}));
|
|
5
7
|
//# sourceMappingURL=AuthClientConfigurationVariables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthClientConfigurationVariables.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationVariables.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AuthClientConfigurationVariables.js","sourceRoot":"","sources":["../../src/authzclient/AuthClientConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3C,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthzClientProvider = void 0;
|
|
4
|
+
const auth0_1 = require("auth0");
|
|
5
|
+
const AuthClientConfigurationService_1 = require("./AuthClientConfigurationService");
|
|
6
|
+
exports.AuthzClientProvider = {
|
|
4
7
|
provide: "AuthzClient",
|
|
5
8
|
useFactory: (config) => {
|
|
6
9
|
const options = {
|
|
7
10
|
domain: config.auth0Domain,
|
|
8
11
|
};
|
|
9
12
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call
|
|
10
|
-
return new AuthenticationClient(options);
|
|
13
|
+
return new auth0_1.AuthenticationClient(options);
|
|
11
14
|
},
|
|
12
|
-
inject: [AuthClientConfigurationService],
|
|
15
|
+
inject: [AuthClientConfigurationService_1.AuthClientConfigurationService],
|
|
13
16
|
};
|
|
14
17
|
//# sourceMappingURL=AuthzClientProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthzClientProvider.js","sourceRoot":"","sources":["../../src/authzclient/AuthzClientProvider.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"AuthzClientProvider.js","sourceRoot":"","sources":["../../src/authzclient/AuthzClientProvider.ts"],"names":[],"mappings":";;;AAAA,iCAAwE;AACxE,qFAAgF;AAEnE,QAAA,mBAAmB,GAAG;IAC/B,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,CAAC,MAAsC,EAAE,EAAE;QACnD,MAAM,OAAO,GAAgC;YACzC,MAAM,EAAE,MAAM,CAAC,WAAW;SAC7B,CAAC;QACF,qGAAqG;QACrG,OAAO,IAAI,4BAAoB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,EAAE,CAAC,+DAA8B,CAAC;CAC3C,CAAC"}
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserProfile = void 0;
|
|
1
4
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
|
|
3
|
-
sub;
|
|
4
|
-
name;
|
|
5
|
-
given_name;
|
|
6
|
-
family_name;
|
|
7
|
-
middle_name;
|
|
8
|
-
nickname;
|
|
9
|
-
preferred_username;
|
|
10
|
-
profile;
|
|
11
|
-
picture;
|
|
12
|
-
website;
|
|
13
|
-
email;
|
|
14
|
-
email_verified;
|
|
15
|
-
gender;
|
|
16
|
-
birthdate;
|
|
17
|
-
zoneinfo;
|
|
18
|
-
locale;
|
|
19
|
-
phone_number;
|
|
20
|
-
phone_number_verified;
|
|
21
|
-
address;
|
|
22
|
-
updated_at;
|
|
5
|
+
class UserProfile {
|
|
23
6
|
}
|
|
7
|
+
exports.UserProfile = UserProfile;
|
|
24
8
|
//# sourceMappingURL=UserProfile.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfile.dto.js","sourceRoot":"","sources":["../../src/authzclient/UserProfile.dto.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"UserProfile.dto.js","sourceRoot":"","sources":["../../src/authzclient/UserProfile.dto.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,MAAa,WAAW;CAuBvB;AAvBD,kCAuBC"}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthzClientModule = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const AuthClientConfigurationService_1 = require("./AuthClientConfigurationService");
|
|
15
|
+
const authz_service_1 = require("./authz.service");
|
|
16
|
+
const AuthClientConfigurationVariables_1 = __importDefault(require("./AuthClientConfigurationVariables"));
|
|
17
|
+
const config_1 = require("@nestjs/config");
|
|
18
|
+
const AuthzClientProvider_1 = require("./AuthzClientProvider");
|
|
13
19
|
let AuthzClientModule = class AuthzClientModule {
|
|
14
20
|
};
|
|
15
21
|
AuthzClientModule = __decorate([
|
|
16
|
-
Module({
|
|
17
|
-
imports: [ConfigModule.forFeature(
|
|
22
|
+
(0, common_1.Module)({
|
|
23
|
+
imports: [config_1.ConfigModule.forFeature(AuthClientConfigurationVariables_1.default)],
|
|
18
24
|
providers: [
|
|
19
|
-
|
|
20
|
-
AuthZClientService,
|
|
21
|
-
AuthClientConfigurationService,
|
|
25
|
+
AuthzClientProvider_1.AuthzClientProvider,
|
|
26
|
+
authz_service_1.AuthZClientService,
|
|
27
|
+
AuthClientConfigurationService_1.AuthClientConfigurationService,
|
|
22
28
|
],
|
|
23
|
-
exports: [AuthZClientService],
|
|
29
|
+
exports: [authz_service_1.AuthZClientService],
|
|
24
30
|
})
|
|
25
31
|
], AuthzClientModule);
|
|
26
|
-
|
|
32
|
+
exports.AuthzClientModule = AuthzClientModule;
|
|
27
33
|
//# sourceMappingURL=authz-client.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authz-client.module.js","sourceRoot":"","sources":["../../src/authzclient/authz-client.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authz-client.module.js","sourceRoot":"","sources":["../../src/authzclient/authz-client.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsC;AACtC,qFAAgF;AAChF,mDAAmD;AACnD,0GAAiE;AACjE,2CAA4C;AAC5C,+DAAiF;AAW1E,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,iBAAiB;IAT7B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,qBAAY,CAAC,UAAU,CAAC,0CAAe,CAAC,CAAC;QACnD,SAAS,EAAE;YACP,yCAAmB;YACnB,kCAAkB;YAClB,+DAA8B;SACjC;QACD,OAAO,EAAE,CAAC,kCAAkB,CAAC;KAChC,CAAC;GACW,iBAAiB,CAAG;AAApB,8CAAiB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -10,12 +11,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
11
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.AuthZClientService = void 0;
|
|
19
|
+
const common_1 = require("@nestjs/common");
|
|
20
|
+
const auth0_1 = require("auth0");
|
|
21
|
+
const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
|
|
16
22
|
let AuthZClientService = class AuthZClientService {
|
|
17
|
-
logger;
|
|
18
|
-
auth0Client;
|
|
19
23
|
constructor(logger, auth0Client) {
|
|
20
24
|
this.logger = logger;
|
|
21
25
|
this.auth0Client = auth0Client;
|
|
@@ -32,10 +36,10 @@ let AuthZClientService = class AuthZClientService {
|
|
|
32
36
|
}
|
|
33
37
|
};
|
|
34
38
|
AuthZClientService = __decorate([
|
|
35
|
-
Injectable(),
|
|
36
|
-
__param(1, Inject("AuthzClient")),
|
|
37
|
-
__metadata("design:paramtypes", [
|
|
38
|
-
AuthenticationClient])
|
|
39
|
+
(0, common_1.Injectable)(),
|
|
40
|
+
__param(1, (0, common_1.Inject)("AuthzClient")),
|
|
41
|
+
__metadata("design:paramtypes", [CoreLoggerService_1.default,
|
|
42
|
+
auth0_1.AuthenticationClient])
|
|
39
43
|
], AuthZClientService);
|
|
40
|
-
|
|
44
|
+
exports.AuthZClientService = AuthZClientService;
|
|
41
45
|
//# sourceMappingURL=authz.service.js.map
|