@loopback/authentication-jwt 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/jwt-authentication-component.js +4 -4
- package/dist/jwt-authentication-component.js.map +1 -1
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +4 -4
- package/dist/models/index.js.map +1 -1
- package/dist/models/refresh-token.model.js +8 -8
- package/dist/models/user-credentials.model.js +9 -9
- package/dist/models/user-credentials.model.js.map +1 -1
- package/dist/models/user.model.js +17 -17
- package/dist/models/user.model.js.map +1 -1
- package/dist/repositories/index.d.ts +1 -1
- package/dist/repositories/index.js +4 -4
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/refresh-token.repository.js +3 -3
- package/dist/repositories/refresh-token.repository.js.map +1 -1
- package/dist/repositories/user-credentials.repository.js +4 -4
- package/dist/repositories/user-credentials.repository.js.map +1 -1
- package/dist/repositories/user.repository.js +5 -5
- package/dist/repositories/user.repository.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +6 -6
- package/dist/services/index.js.map +1 -1
- package/dist/services/jwt.auth.strategy.js +4 -4
- package/dist/services/jwt.auth.strategy.js.map +1 -1
- package/dist/services/jwt.service.js +5 -5
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/refreshtoken.service.js +8 -8
- package/dist/services/refreshtoken.service.js.map +1 -1
- package/dist/services/security.spec.enhancer.js +3 -3
- package/dist/services/security.spec.enhancer.js.map +1 -1
- package/dist/services/user.service.js +4 -4
- package/dist/services/user.service.js.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +23 -23
- package/src/index.ts +1 -1
- package/src/jwt-authentication-component.ts +1 -1
- package/src/keys.ts +1 -1
- package/src/models/index.ts +2 -2
- package/src/models/user-credentials.model.ts +1 -1
- package/src/models/user.model.ts +1 -1
- package/src/repositories/index.ts +2 -2
- package/src/repositories/user-credentials.repository.ts +1 -1
- package/src/repositories/user.repository.ts +1 -1
- package/src/services/index.ts +2 -2
- package/src/services/jwt.auth.strategy.ts +1 -1
- package/src/services/jwt.service.ts +1 -1
- package/src/services/security.spec.enhancer.ts +1 -1
- package/src/services/user.service.ts +1 -1
- package/src/types.ts +1 -1
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./jwt-authentication-component"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./keys"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./repositories"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./services"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yEAA+C;AAC/C,iDAAuB;AACvB,mDAAyB;AACzB,yDAA+B;AAC/B,qDAA2B;AAC3B,kDAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -38,9 +38,9 @@ let JWTAuthenticationComponent = class JWTAuthenticationComponent {
|
|
|
38
38
|
(0, authentication_1.registerAuthenticationStrategy)(app, jwt_auth_strategy_1.JWTAuthenticationStrategy);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
JWTAuthenticationComponent =
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
JWTAuthenticationComponent = tslib_1.__decorate([
|
|
42
|
+
tslib_1.__param(0, (0, core_1.inject)(core_1.CoreBindings.APPLICATION_INSTANCE)),
|
|
43
|
+
tslib_1.__metadata("design:paramtypes", [core_1.Application])
|
|
44
44
|
], JWTAuthenticationComponent);
|
|
45
45
|
exports.JWTAuthenticationComponent = JWTAuthenticationComponent;
|
|
46
46
|
//# sourceMappingURL=jwt-authentication-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt-authentication-component.js","sourceRoot":"","sources":["../src/jwt-authentication-component.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"jwt-authentication-component.js","sourceRoot":"","sources":["../src/jwt-authentication-component.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,6DAAwE;AACxE,yCAOwB;AACxB,iCAMgB;AAChB,iDAIwB;AACxB,yCAA8D;AAC9D,oEAAuE;AACvE,wDAAkD;AAClD,8EAAuE;AAEvE,IAAa,0BAA0B,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B,CACvB;SACF,CAAC;QAEA,IAAA,+CAA8B,EAAC,GAAG,EAAE,6CAAyB,CAAC,CAAC;IACjE,CAAC;CACF,CAAA;AAzCY,0BAA0B;IAsCxB,mBAAA,IAAA,aAAM,EAAC,mBAAY,CAAC,oBAAoB,CAAC,CAAA;6CAAM,kBAAW;GAtC5D,0BAA0B,CAyCtC;AAzCY,gEAA0B"}
|
package/dist/keys.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;AAGhE,yCAA0C;AAK1C,IAAiB,qBAAqB,CAGrC;AAHD,WAAiB,qBAAqB;IACvB,wCAAkB,GAAG,aAAa,CAAC;IACnC,4CAAsB,GAAG,OAAO,CAAC;AAChD,CAAC,EAHgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGrC;AAED,IAAiB,oBAAoB,CAUpC;AAVD,WAAiB,oBAAoB;IACtB,iCAAY,GAAG,iBAAU,CAAC,MAAM,CAC3C,2BAA2B,CAC5B,CAAC;IACW,qCAAgB,GAAG,iBAAU,CAAC,MAAM,CAC/C,uCAAuC,CACxC,CAAC;IACW,kCAAa,GAAG,iBAAU,CAAC,MAAM,CAC5C,0CAA0C,CAC3C,CAAC;AACJ,CAAC,EAVgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAUpC;AAED,IAAiB,mBAAmB,CAQnC;AARD,WAAiB,mBAAmB;IACrB,gCAAY,GAAG,iBAAU,CAAC,MAAM,CAC3C,uBAAuB,CACxB,CAAC;IACW,mCAAe,GAAG,OAAO,CAAC;IAC1B,mCAAe,GAAG,6BAA6B,CAAC;IAChD,+CAA2B,GACtC,wCAAwC,CAAC;AAC7C,CAAC,EARgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQnC;AAED;;GAEG;AACH,IAAiB,qBAAqB,CAarC;AAbD,WAAiB,qBAAqB;IACpC;;OAEG;IACU,0CAAoB,GAAG,cAAc,CAAC;IACnD;;OAEG;IACU,8CAAwB,GAAG,QAAQ,CAAC;IACjD;;OAEG;IACU,0CAAoB,GAAG,WAAW,CAAC;AAClD,CAAC,EAbgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAarC;AAED;;;GAGG;AACH,IAAiB,2BAA2B,CAsB3C;AAtBD,WAAiB,2BAA2B;IAC7B,iDAAqB,GAAG,iBAAU,CAAC,MAAM,CACpD,kDAAkD,CACnD,CAAC;IACW,0CAAc,GAAG,iBAAU,CAAC,MAAM,CAC7C,mCAAmC,CACpC,CAAC;IACW,8CAAkB,GAAG,iBAAU,CAAC,MAAM,CACjD,+CAA+C,CAChD,CAAC;IACW,0CAAc,GAAG,iBAAU,CAAC,MAAM,CAC7C,mCAAmC,CACpC,CAAC;IACF;;OAEG;IACU,2CAAe,GAAG,WAAW,CAAC;IAC3C;;;OAGG;IACU,8CAAkB,GAAG,qCAAqC,CAAC;AAC1E,CAAC,EAtBgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAsB3C"}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./refresh-token.model"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./user-credentials.model"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./user.model"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,gEAAsC;AACtC,mEAAyC;AACzC,uDAA6B"}
|
|
@@ -9,28 +9,28 @@ let RefreshToken = class RefreshToken extends repository_1.Entity {
|
|
|
9
9
|
super(data);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
tslib_1.__decorate([
|
|
13
13
|
(0, repository_1.property)({
|
|
14
14
|
type: 'number',
|
|
15
15
|
id: 1,
|
|
16
16
|
generated: true,
|
|
17
17
|
}),
|
|
18
|
-
|
|
18
|
+
tslib_1.__metadata("design:type", Number)
|
|
19
19
|
], RefreshToken.prototype, "id", void 0);
|
|
20
|
-
|
|
20
|
+
tslib_1.__decorate([
|
|
21
21
|
(0, repository_1.belongsTo)(() => _1.User),
|
|
22
|
-
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
23
|
], RefreshToken.prototype, "userId", void 0);
|
|
24
|
-
|
|
24
|
+
tslib_1.__decorate([
|
|
25
25
|
(0, repository_1.property)({
|
|
26
26
|
type: 'string',
|
|
27
27
|
required: true,
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], RefreshToken.prototype, "refreshToken", void 0);
|
|
31
|
-
RefreshToken =
|
|
31
|
+
RefreshToken = tslib_1.__decorate([
|
|
32
32
|
(0, repository_1.model)({ settings: { strict: false } }),
|
|
33
|
-
|
|
33
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
34
34
|
], RefreshToken);
|
|
35
35
|
exports.RefreshToken = RefreshToken;
|
|
36
36
|
//# sourceMappingURL=refresh-token.model.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -12,32 +12,32 @@ let UserCredentials = class UserCredentials extends repository_1.Entity {
|
|
|
12
12
|
super(data);
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
tslib_1.__decorate([
|
|
16
16
|
(0, repository_1.property)({
|
|
17
17
|
type: 'string',
|
|
18
18
|
id: true,
|
|
19
19
|
generated: false,
|
|
20
20
|
defaultFn: 'uuidv4',
|
|
21
21
|
}),
|
|
22
|
-
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
23
|
], UserCredentials.prototype, "id", void 0);
|
|
24
|
-
|
|
24
|
+
tslib_1.__decorate([
|
|
25
25
|
(0, repository_1.property)({
|
|
26
26
|
type: 'string',
|
|
27
27
|
required: true,
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], UserCredentials.prototype, "password", void 0);
|
|
31
|
-
|
|
31
|
+
tslib_1.__decorate([
|
|
32
32
|
(0, repository_1.property)({
|
|
33
33
|
type: 'string',
|
|
34
34
|
required: true,
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
37
|
], UserCredentials.prototype, "userId", void 0);
|
|
38
|
-
UserCredentials =
|
|
38
|
+
UserCredentials = tslib_1.__decorate([
|
|
39
39
|
(0, repository_1.model)({ settings: { strict: false } }),
|
|
40
|
-
|
|
40
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
41
41
|
], UserCredentials);
|
|
42
42
|
exports.UserCredentials = UserCredentials;
|
|
43
43
|
//# sourceMappingURL=user-credentials.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.model.js","sourceRoot":"","sources":["../../src/models/user-credentials.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-credentials.model.js","sourceRoot":"","sources":["../../src/models/user-credentials.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAA6D;AAG7D,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,mBAAM;IA2BzC,YAAY,IAA+B;QACzC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AAvBC;IANC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,QAAQ;KACpB,CAAC;;2CACS;AAMX;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACe;AAMjB;IAJC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACa;AAnBJ,eAAe;IAD3B,IAAA,kBAAK,EAAC,EAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC,EAAC,CAAC;;GACtB,eAAe,CA8B3B;AA9BY,0CAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -13,28 +13,28 @@ let User = class User extends repository_1.Entity {
|
|
|
13
13
|
super(data);
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
tslib_1.__decorate([
|
|
17
17
|
(0, repository_1.property)({
|
|
18
18
|
type: 'string',
|
|
19
19
|
id: true,
|
|
20
20
|
generated: false,
|
|
21
21
|
defaultFn: 'uuidv4',
|
|
22
22
|
}),
|
|
23
|
-
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
24
|
], User.prototype, "id", void 0);
|
|
25
|
-
|
|
25
|
+
tslib_1.__decorate([
|
|
26
26
|
(0, repository_1.property)({
|
|
27
27
|
type: 'string',
|
|
28
28
|
}),
|
|
29
|
-
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], User.prototype, "realm", void 0);
|
|
31
|
-
|
|
31
|
+
tslib_1.__decorate([
|
|
32
32
|
(0, repository_1.property)({
|
|
33
33
|
type: 'string',
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
36
|
], User.prototype, "username", void 0);
|
|
37
|
-
|
|
37
|
+
tslib_1.__decorate([
|
|
38
38
|
(0, repository_1.property)({
|
|
39
39
|
type: 'string',
|
|
40
40
|
required: true,
|
|
@@ -42,31 +42,31 @@ let User = class User extends repository_1.Entity {
|
|
|
42
42
|
unique: true,
|
|
43
43
|
},
|
|
44
44
|
}),
|
|
45
|
-
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
46
|
], User.prototype, "email", void 0);
|
|
47
|
-
|
|
47
|
+
tslib_1.__decorate([
|
|
48
48
|
(0, repository_1.property)({
|
|
49
49
|
type: 'boolean',
|
|
50
50
|
}),
|
|
51
|
-
|
|
51
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
52
52
|
], User.prototype, "emailVerified", void 0);
|
|
53
|
-
|
|
53
|
+
tslib_1.__decorate([
|
|
54
54
|
(0, repository_1.property)({
|
|
55
55
|
type: 'string',
|
|
56
56
|
}),
|
|
57
|
-
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
58
|
], User.prototype, "verificationToken", void 0);
|
|
59
|
-
|
|
59
|
+
tslib_1.__decorate([
|
|
60
60
|
(0, repository_1.hasOne)(() => user_credentials_model_1.UserCredentials),
|
|
61
|
-
|
|
61
|
+
tslib_1.__metadata("design:type", user_credentials_model_1.UserCredentials)
|
|
62
62
|
], User.prototype, "userCredentials", void 0);
|
|
63
|
-
User =
|
|
63
|
+
User = tslib_1.__decorate([
|
|
64
64
|
(0, repository_1.model)({
|
|
65
65
|
settings: {
|
|
66
66
|
strict: false,
|
|
67
67
|
},
|
|
68
68
|
}),
|
|
69
|
-
|
|
69
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
70
70
|
], User);
|
|
71
71
|
exports.User = User;
|
|
72
72
|
//# sourceMappingURL=user.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAAqE;AACrE,qEAAyD;AAOzD,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,mBAAM;IAoD9B,YAAY,IAAoB;QAC9B,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF,CAAA;AA9CC;IANC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,QAAQ;KACpB,CAAC;;gCACS;AAKX;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;mCACa;AAMf;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;sCACgB;AAWlB;IAPC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE;YACL,MAAM,EAAE,IAAI;SACb;KACF,CAAC;;mCACY;AAKd;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,SAAS;KAChB,CAAC;;2CACsB;AAKxB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;+CACyB;AAG3B;IADC,IAAA,mBAAM,EAAC,GAAG,EAAE,CAAC,wCAAe,CAAC;sCACb,wCAAe;6CAAC;AA5CtB,IAAI;IALhB,IAAA,kBAAK,EAAC;QACL,QAAQ,EAAE;YACR,MAAM,EAAE,KAAK;SACd;KACF,CAAC;;GACW,IAAI,CAuDhB;AAvDY,oBAAI"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./refresh-token.repository"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./user-credentials.repository"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./user.repository"), exports);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,qEAA2C;AAC3C,wEAA8C;AAC9C,4DAAkC"}
|
|
@@ -11,9 +11,9 @@ let RefreshTokenRepository = class RefreshTokenRepository extends repository_1.D
|
|
|
11
11
|
super(models_1.RefreshToken, dataSource);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
RefreshTokenRepository =
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
RefreshTokenRepository = tslib_1.__decorate([
|
|
15
|
+
tslib_1.__param(0, (0, core_1.inject)(`datasources.${keys_1.RefreshTokenServiceBindings.DATASOURCE_NAME}`)),
|
|
16
|
+
tslib_1.__metadata("design:paramtypes", [repository_1.juggler.DataSource])
|
|
17
17
|
], RefreshTokenRepository);
|
|
18
18
|
exports.RefreshTokenRepository = RefreshTokenRepository;
|
|
19
19
|
//# sourceMappingURL=refresh-token.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.repository.js","sourceRoot":"","sources":["../../src/repositories/refresh-token.repository.ts"],"names":[],"mappings":";;;;AAAA,yCAAsC;AACtC,qDAAoE;AACpE,sCAA8D;AAC9D,kCAAoD;AAEpD,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,kCAI3C;IACC,YAEE,UAA8B;QAE9B,KAAK,CAAC,qBAAY,EAAE,UAAU,CAAC,CAAC;IAClC,CAAC;CACF,CAAA;AAXY,sBAAsB;IAM9B,
|
|
1
|
+
{"version":3,"file":"refresh-token.repository.js","sourceRoot":"","sources":["../../src/repositories/refresh-token.repository.ts"],"names":[],"mappings":";;;;AAAA,yCAAsC;AACtC,qDAAoE;AACpE,sCAA8D;AAC9D,kCAAoD;AAEpD,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,kCAI3C;IACC,YAEE,UAA8B;QAE9B,KAAK,CAAC,qBAAY,EAAE,UAAU,CAAC,CAAC;IAClC,CAAC;CACF,CAAA;AAXY,sBAAsB;IAM9B,mBAAA,IAAA,aAAM,EAAC,eAAe,kCAA2B,CAAC,eAAe,EAAE,CAAC,CAAA;6CACzD,oBAAO,CAAC,UAAU;GAPrB,sBAAsB,CAWlC;AAXY,wDAAsB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -15,9 +15,9 @@ let UserCredentialsRepository = class UserCredentialsRepository extends reposito
|
|
|
15
15
|
super(models_1.UserCredentials, dataSource);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
UserCredentialsRepository =
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
UserCredentialsRepository = tslib_1.__decorate([
|
|
19
|
+
tslib_1.__param(0, (0, core_1.inject)(`datasources.${keys_1.UserServiceBindings.DATASOURCE_NAME}`)),
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [repository_1.juggler.DataSource])
|
|
21
21
|
], UserCredentialsRepository);
|
|
22
22
|
exports.UserCredentialsRepository = UserCredentialsRepository;
|
|
23
23
|
//# sourceMappingURL=user-credentials.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user-credentials.repository.js","sourceRoot":"","sources":["../../src/repositories/user-credentials.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,qDAAoE;AACpE,kCAA4C;AAC5C,sCAAoE;AAEpE,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,kCAI9C;IACC,YAEE,UAA8B;QAE9B,KAAK,CAAC,wBAAe,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AAXY,yBAAyB;IAMjC,mBAAA,IAAA,aAAM,EAAC,eAAe,0BAAmB,CAAC,eAAe,EAAE,CAAC,CAAA;6CACjD,oBAAO,CAAC,UAAU;GAPrB,yBAAyB,CAWrC;AAXY,8DAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -29,10 +29,10 @@ let UserRepository = class UserRepository extends repository_1.DefaultCrudReposi
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
UserRepository =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
UserRepository = tslib_1.__decorate([
|
|
33
|
+
tslib_1.__param(0, (0, core_1.inject)(`datasources.${keys_1.UserServiceBindings.DATASOURCE_NAME}`)),
|
|
34
|
+
tslib_1.__param(1, repository_1.repository.getter('UserCredentialsRepository')),
|
|
35
|
+
tslib_1.__metadata("design:paramtypes", [repository_1.juggler.DataSource, Function])
|
|
36
36
|
], UserRepository);
|
|
37
37
|
exports.UserRepository = UserRepository;
|
|
38
38
|
//# sourceMappingURL=user.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.repository.js","sourceRoot":"","sources":["../../src/repositories/user.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA8C;AAC9C,qDAK8B;AAC9B,kCAA4C;AAC5C,sCAA+D;AAG/D,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,kCAInC;IAMC,YAEE,UAA8B,EAEpB,+BAAkE;QAE5E,KAAK,CAAC,aAAI,EAAE,UAAU,CAAC,CAAC;QAFd,oCAA+B,GAA/B,+BAA+B,CAAmC;QAG5E,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,gCAAgC,CAC1D,iBAAiB,EACjB,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,yBAAyB,CAC5B,iBAAiB,EACjB,IAAI,CAAC,eAAe,CAAC,iBAAiB,CACvC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,MAAgC;QAEhC,IAAI;YACF,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC;SACjD;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACnC,OAAO,SAAS,CAAC;aAClB;YACD,MAAM,GAAG,CAAC;SACX;IACH,CAAC;CACF,CAAA;AAvCY,cAAc;IAWtB,mBAAA,IAAA,aAAM,EAAC,eAAe,0BAAmB,CAAC,eAAe,EAAE,CAAC,CAAA;IAE5D,mBAAA,uBAAU,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;6CADnC,oBAAO,CAAC,UAAU;GAZrB,cAAc,CAuC1B;AAvCY,wCAAc"}
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./jwt.auth.strategy"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./jwt.service"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./refreshtoken.service"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./security.spec.enhancer"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./user.service"), exports);
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;AAEhE,8DAAoC;AACpC,wDAA8B;AAC9B,iEAAuC;AACvC,mEAAyC;AACzC,yDAA+B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -36,9 +36,9 @@ let JWTAuthenticationStrategy = class JWTAuthenticationStrategy {
|
|
|
36
36
|
return token;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
JWTAuthenticationStrategy =
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
JWTAuthenticationStrategy = tslib_1.__decorate([
|
|
40
|
+
tslib_1.__param(0, (0, core_1.inject)(keys_1.TokenServiceBindings.TOKEN_SERVICE)),
|
|
41
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
42
42
|
], JWTAuthenticationStrategy);
|
|
43
43
|
exports.JWTAuthenticationStrategy = JWTAuthenticationStrategy;
|
|
44
44
|
//# sourceMappingURL=jwt.auth.strategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.auth.strategy.js","sourceRoot":"","sources":["../../src/services/jwt.auth.strategy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"jwt.auth.strategy.js","sourceRoot":"","sources":["../../src/services/jwt.auth.strategy.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,yCAAsC;AACtC,yCAAmD;AAEnD,kCAA6C;AAE7C,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAGpC,YAES,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAJnC,SAAI,GAAG,KAAK,CAAC;IAKV,CAAC;IAEJ,KAAK,CAAC,YAAY,CAAC,OAAgB;QACjC,MAAM,KAAK,GAAW,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,WAAW,GAAgB,MAAM,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC5E,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,kBAAkB,CAAC,OAAgB;QACjC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE;YAClC,MAAM,IAAI,iBAAU,CAAC,YAAY,CAAC,iCAAiC,CAAC,CAAC;SACtE;QAED,mCAAmC;QACnC,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;QAEtD,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACzC,MAAM,IAAI,iBAAU,CAAC,YAAY,CAC/B,+CAA+C,CAChD,CAAC;SACH;QAED,iEAAiE;QACjE,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACzC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YACpB,MAAM,IAAI,iBAAU,CAAC,YAAY,CAC/B,mIAAmI,CACpI,CAAC;QACJ,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAEvB,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAA;AAtCY,yBAAyB;IAIjC,mBAAA,IAAA,aAAM,EAAC,2BAAoB,CAAC,aAAa,CAAC,CAAA;;GAJlC,yBAAyB,CAsCrC;AAtCY,8DAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -61,10 +61,10 @@ let JWTService = class JWTService {
|
|
|
61
61
|
return token;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
JWTService =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
JWTService = tslib_1.__decorate([
|
|
65
|
+
tslib_1.__param(0, (0, core_1.inject)(keys_1.TokenServiceBindings.TOKEN_SECRET)),
|
|
66
|
+
tslib_1.__param(1, (0, core_1.inject)(keys_1.TokenServiceBindings.TOKEN_EXPIRES_IN)),
|
|
67
|
+
tslib_1.__metadata("design:paramtypes", [String, String])
|
|
68
68
|
], JWTService);
|
|
69
69
|
exports.JWTService = JWTService;
|
|
70
70
|
//# sourceMappingURL=jwt.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.service.js","sourceRoot":"","sources":["../../src/services/jwt.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"jwt.service.js","sourceRoot":"","sources":["../../src/services/jwt.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,yCAAsC;AACtC,yCAA0C;AAC1C,iDAA2D;AAC3D,+BAA+B;AAC/B,kCAA6C;AAE7C,MAAM,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AACpC,MAAM,SAAS,GAAG,IAAA,gBAAS,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACtC,MAAM,WAAW,GAAG,IAAA,gBAAS,EAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE1C,IAAa,UAAU,GAAvB,MAAa,UAAU;IACrB,YAEU,SAAiB,EAEjB,YAAoB;QAFpB,cAAS,GAAT,SAAS,CAAQ;QAEjB,iBAAY,GAAZ,YAAY,CAAQ;IAC3B,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,KAAa;QAC7B,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,iBAAU,CAAC,YAAY,CAC/B,yCAAyC,CAC1C,CAAC;SACH;QAED,IAAI,WAAwB,CAAC;QAE7B,IAAI;YACF,iCAAiC;YACjC,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9D,4EAA4E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A5DY,gCAAU"}
|
|
@@ -97,15 +97,15 @@ let RefreshtokenService = class RefreshtokenService {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
RefreshtokenService =
|
|
100
|
+
RefreshtokenService = tslib_1.__decorate([
|
|
101
101
|
(0, core_1.injectable)({ scope: core_1.BindingScope.TRANSIENT }),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
tslib_1.__param(0, (0, core_1.inject)(keys_1.RefreshTokenServiceBindings.REFRESH_SECRET)),
|
|
103
|
+
tslib_1.__param(1, (0, core_1.inject)(keys_1.RefreshTokenServiceBindings.REFRESH_EXPIRES_IN)),
|
|
104
|
+
tslib_1.__param(2, (0, core_1.inject)(keys_1.RefreshTokenServiceBindings.REFRESH_ISSUER)),
|
|
105
|
+
tslib_1.__param(3, (0, repository_1.repository)(repositories_1.RefreshTokenRepository)),
|
|
106
|
+
tslib_1.__param(4, (0, core_1.inject)(keys_1.UserServiceBindings.USER_SERVICE)),
|
|
107
|
+
tslib_1.__param(5, (0, core_1.inject)(keys_1.TokenServiceBindings.TOKEN_SERVICE)),
|
|
108
|
+
tslib_1.__metadata("design:paramtypes", [String, String, String, repositories_1.RefreshTokenRepository,
|
|
109
109
|
user_service_1.MyUserService, Object])
|
|
110
110
|
], RefreshtokenService);
|
|
111
111
|
exports.RefreshtokenService = RefreshtokenService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshtoken.service.js","sourceRoot":"","sources":["../../src/services/refreshtoken.service.ts"],"names":[],"mappings":";;;;AACA,yCAAsE;AACtE,qDAAgD;AAChD,yCAA0C;AAC1C,iDAA2D;AAC3D,+BAA+B;AAC/B,kCAIiB;AACjB,sCAA8D;AAC9D,kDAAuD;AAEvD,iDAA6C;AAC7C,MAAM,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AACpC,MAAM,S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= void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@loopback/core");
|
|
6
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
6
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
7
7
|
// Node module: @loopback/authentication-jwt"
|
|
8
8
|
// This file is licensed under the MIT License.
|
|
9
9
|
// License text available at https://opensource.org/licenses/MIT
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
|
-
const debug_1 =
|
|
11
|
+
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
12
12
|
const util_1 = require("util");
|
|
13
13
|
const debug = (0, debug_1.default)('loopback:jwt-extension:spec-enhancer');
|
|
14
14
|
exports.OPERATION_SECURITY_SPEC = [
|
|
@@ -44,7 +44,7 @@ let SecuritySpecEnhancer = class SecuritySpecEnhancer {
|
|
|
44
44
|
return mergedSpec;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
SecuritySpecEnhancer =
|
|
47
|
+
SecuritySpecEnhancer = tslib_1.__decorate([
|
|
48
48
|
(0, core_1.injectable)(rest_1.asSpecEnhancer)
|
|
49
49
|
], SecuritySpecEnhancer);
|
|
50
50
|
exports.SecuritySpecEnhancer = SecuritySpecEnhancer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.spec.enhancer.js","sourceRoot":"","sources":["../../src/services/security.spec.enhancer.ts"],"names":[],"mappings":";;;;AAAA,yCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"security.spec.enhancer.js","sourceRoot":"","sources":["../../src/services/security.spec.enhancer.ts"],"names":[],"mappings":";;;;AAAA,yCAA0C;AAC1C,2EAA2E;AAC3E,6CAA6C;AAC7C,+CAA+C;AAC/C,gEAAgE;AAChE,yCAOwB;AACxB,0DAAgC;AAChC,+BAA6B;AAC7B,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,sCAAsC,CAAC,CAAC;AAMrD,QAAA,uBAAuB,GAAG;IACrC;QACE,kCAAkC;QAClC,GAAG,EAAE,EAAE;KACR;CACF,CAAC;AAEW,QAAA,oBAAoB,GAA0B;IACzD,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE,KAAK;KACpB;CACF,CAAC;AAEF;;;GAGG;AAEH,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAAjC;QACE,SAAI,GAAG,YAAY,CAAC;IAatB,CAAC;IAXC,UAAU,CAAC,IAAiB;QAC1B,MAAM,SAAS,GAAG;YAChB,UAAU,EAAE;gBACV,eAAe,EAAE,4BAAoB;aACtC;YACD,QAAQ,EAAE,+BAAuB;SAClC,CAAC;QACF,MAAM,UAAU,GAAG,IAAA,uBAAgB,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACrD,KAAK,CAAC,yCAAyC,IAAA,cAAO,EAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACtE,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAdY,oBAAoB;IADhC,IAAA,iBAAU,EAAC,qBAAc,CAAC;GACd,oBAAoB,CAchC;AAdY,oDAAoB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -53,9 +53,9 @@ let MyUserService = class MyUserService {
|
|
|
53
53
|
return foundUser;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
MyUserService =
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
MyUserService = tslib_1.__decorate([
|
|
57
|
+
tslib_1.__param(0, (0, repository_1.repository)(repositories_1.UserRepository)),
|
|
58
|
+
tslib_1.__metadata("design:paramtypes", [repositories_1.UserRepository])
|
|
59
59
|
], MyUserService);
|
|
60
60
|
exports.MyUserService = MyUserService;
|
|
61
61
|
//# sourceMappingURL=user.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/services/user.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/services/user.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE;;;;AAGhE,qDAAgD;AAChD,yCAA0C;AAC1C,iDAA2D;AAC3D,uCAAiC;AAEjC,kDAA+C;AAW/C,IAAa,aAAa,GAA1B,MAAa,aAAa;IACxB,YACqC,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAChE,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CAAC,WAAwB;QAC9C,MAAM,uBAAuB,GAAG,4BAA4B,CAAC;QAE7D,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE,EAAC,KAAK,EAAE,WAAW,CAAC,KAAK,EAAC;SAClC,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,iBAAU,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;SAC5D;QAED,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAChE,SAAS,CAAC,EAAE,CACb,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,iBAAU,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;SAC5D;QAED,MAAM,eAAe,GAAG,MAAM,IAAA,kBAAO,EACnC,WAAW,CAAC,QAAQ,EACpB,gBAAgB,CAAC,QAAQ,CAC1B,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,iBAAU,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;SAC5D;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO;YACL,CAAC,qBAAU,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,6BAA6B;IAC7B,KAAK,CAAC,YAAY,CAAC,EAAU;QAC3B,MAAM,YAAY,GAAG,cAAc,CAAC;QACpC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YAClD,KAAK,EAAE,EAAC,EAAE,EAAE,EAAE,EAAC;SAChB,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,iBAAU,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;SACjD;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAA;AAvDY,aAAa;IAErB,mBAAA,IAAA,uBAAU,EAAC,6BAAc,CAAC,CAAA;6CAAwB,6BAAc;GAFxD,aAAa,CAuDzB;AAvDY,sCAAa"}
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,4CAA4C;AAC5C,+CAA+C;AAC/C,gEAAgE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/authentication-jwt",
|
|
3
3
|
"description": "Extension for the prototype of JWT authentication",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LoopBack",
|
|
7
7
|
"Authentication",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
|
-
"author": "IBM Corp.",
|
|
14
|
-
"copyright.owner": "IBM Corp.",
|
|
13
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
14
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
18
18
|
"directory": "extensions/authentication-jwt"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": "
|
|
21
|
+
"node": "14 || 16 || 17 || 18"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "lb-tsc",
|
|
@@ -37,33 +37,33 @@
|
|
|
37
37
|
"!*/__tests__"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@loopback/authentication": "^
|
|
41
|
-
"@loopback/core": "^
|
|
42
|
-
"@loopback/rest": "^
|
|
40
|
+
"@loopback/authentication": "^9.0.1",
|
|
41
|
+
"@loopback/core": "^4.0.1",
|
|
42
|
+
"@loopback/rest": "^12.0.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@loopback/security": "^0.
|
|
45
|
+
"@loopback/security": "^0.8.1",
|
|
46
46
|
"@types/bcryptjs": "2.4.2",
|
|
47
47
|
"bcryptjs": "^2.4.3",
|
|
48
|
-
"debug": "^4.3.
|
|
48
|
+
"debug": "^4.3.4",
|
|
49
49
|
"jsonwebtoken": "^8.5.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@loopback/authentication": "^
|
|
53
|
-
"@loopback/boot": "^
|
|
54
|
-
"@loopback/build": "^
|
|
55
|
-
"@loopback/core": "^
|
|
56
|
-
"@loopback/eslint-config": "^
|
|
57
|
-
"@loopback/repository": "^
|
|
58
|
-
"@loopback/rest": "^
|
|
59
|
-
"@loopback/rest-explorer": "^
|
|
60
|
-
"@loopback/service-proxy": "^
|
|
61
|
-
"@loopback/testlab": "^
|
|
52
|
+
"@loopback/authentication": "^9.0.1",
|
|
53
|
+
"@loopback/boot": "^5.0.1",
|
|
54
|
+
"@loopback/build": "^9.0.1",
|
|
55
|
+
"@loopback/core": "^4.0.1",
|
|
56
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
57
|
+
"@loopback/repository": "^5.0.1",
|
|
58
|
+
"@loopback/rest": "^12.0.1",
|
|
59
|
+
"@loopback/rest-explorer": "^5.0.1",
|
|
60
|
+
"@loopback/service-proxy": "^5.0.1",
|
|
61
|
+
"@loopback/testlab": "^5.0.1",
|
|
62
62
|
"@types/debug": "^4.1.7",
|
|
63
|
-
"@types/lodash": "^4.14.
|
|
64
|
-
"@types/node": "^
|
|
63
|
+
"@types/lodash": "^4.14.182",
|
|
64
|
+
"@types/node": "^14.18.21",
|
|
65
65
|
"lodash": "^4.17.21",
|
|
66
|
-
"typescript": "~4.
|
|
66
|
+
"typescript": "~4.7.3"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
69
69
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/keys.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
export * from './refresh-token.model';
|
|
6
7
|
export * from './user-credentials.model';
|
|
7
8
|
export * from './user.model';
|
|
8
|
-
export * from './refresh-token.model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/models/user.model.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
|
+
export * from './refresh-token.repository';
|
|
6
7
|
export * from './user-credentials.repository';
|
|
7
8
|
export * from './user.repository';
|
|
8
|
-
export * from './refresh-token.repository';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/services/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
5
5
|
|
|
6
6
|
export * from './jwt.auth.strategy';
|
|
7
7
|
export * from './jwt.service';
|
|
8
|
+
export * from './refreshtoken.service';
|
|
8
9
|
export * from './security.spec.enhancer';
|
|
9
10
|
export * from './user.service';
|
|
10
|
-
export * from './refreshtoken.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {injectable} from '@loopback/core';
|
|
2
|
-
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/authentication-jwt"
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/authentication-jwt
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|