@celljs/oauth2-client 3.0.0 → 3.1.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/lib/node/authentication/index.js +4 -17
- package/lib/node/authentication/index.js.map +1 -1
- package/lib/node/authentication/oauth2-authentication-provider.js +24 -32
- package/lib/node/authentication/oauth2-authentication-provider.js.map +1 -1
- package/lib/node/authentication/oidc-authentication-provider.js +6 -14
- package/lib/node/authentication/oidc-authentication-provider.js.map +1 -1
- package/lib/node/authorization/authorization-code-authorized-client-provider.js +2 -7
- package/lib/node/authorization/authorization-code-authorized-client-provider.js.map +1 -1
- package/lib/node/authorization/authorization-code-grant-middleware.js +26 -34
- package/lib/node/authorization/authorization-code-grant-middleware.js.map +1 -1
- package/lib/node/authorization/authorization-failure-handler.js +4 -12
- package/lib/node/authorization/authorization-failure-handler.js.map +1 -1
- package/lib/node/authorization/authorization-request-manager.js +2 -7
- package/lib/node/authorization/authorization-request-manager.js.map +1 -1
- package/lib/node/authorization/authorization-request-redirect-middleware.js +18 -26
- package/lib/node/authorization/authorization-request-redirect-middleware.js.map +1 -1
- package/lib/node/authorization/authorization-request-resolver.js +18 -26
- package/lib/node/authorization/authorization-request-resolver.js.map +1 -1
- package/lib/node/authorization/authorization-success-handler.js +4 -12
- package/lib/node/authorization/authorization-success-handler.js.map +1 -1
- package/lib/node/authorization/authorized-client-manager.js +4 -12
- package/lib/node/authorization/authorized-client-manager.js.map +1 -1
- package/lib/node/authorization/authorized-client-service.js +14 -22
- package/lib/node/authorization/authorized-client-service.js.map +1 -1
- package/lib/node/authorization/client-credentials-authorized-client-provider.js +6 -14
- package/lib/node/authorization/client-credentials-authorized-client-provider.js.map +1 -1
- package/lib/node/authorization/context-attributes-mapper.js +2 -7
- package/lib/node/authorization/context-attributes-mapper.js.map +1 -1
- package/lib/node/authorization/index.js +14 -27
- package/lib/node/authorization/index.js.map +1 -1
- package/lib/node/authorization/password-authorized-client-provider.js +6 -14
- package/lib/node/authorization/password-authorized-client-provider.js.map +1 -1
- package/lib/node/authorization/refresh-token-authorized-client-provider.js +6 -14
- package/lib/node/authorization/refresh-token-authorized-client-provider.js.map +1 -1
- package/lib/node/endpoint/authorization-code-token-response-client.js +8 -16
- package/lib/node/endpoint/authorization-code-token-response-client.js.map +1 -1
- package/lib/node/endpoint/client-credentials-token-response-client.js +8 -16
- package/lib/node/endpoint/client-credentials-token-response-client.js.map +1 -1
- package/lib/node/endpoint/index.js +7 -20
- package/lib/node/endpoint/index.js.map +1 -1
- package/lib/node/endpoint/password-token-response-client.js +8 -16
- package/lib/node/endpoint/password-token-response-client.js.map +1 -1
- package/lib/node/endpoint/refresh-token-token-response-client.js +8 -16
- package/lib/node/endpoint/refresh-token-token-response-client.js.map +1 -1
- package/lib/node/endpoint/user-response-client.js +6 -14
- package/lib/node/endpoint/user-response-client.js.map +1 -1
- package/lib/node/error/error-hander.js +6 -14
- package/lib/node/error/error-hander.js.map +1 -1
- package/lib/node/error/index.js +4 -17
- package/lib/node/error/index.js.map +1 -1
- package/lib/node/index.js +8 -21
- package/lib/node/index.js.map +1 -1
- package/lib/node/provider/index.js +3 -16
- package/lib/node/provider/index.js.map +1 -1
- package/lib/node/provider/provider-details-manager.js +9 -17
- package/lib/node/provider/provider-details-manager.js.map +1 -1
- package/lib/node/registration/id-token-jwt-decoder-facatory.js +10 -18
- package/lib/node/registration/id-token-jwt-decoder-facatory.js.map +1 -1
- package/lib/node/registration/index.js +5 -18
- package/lib/node/registration/index.js.map +1 -1
- package/lib/node/registration/jws-algorithm-resolver.js +2 -7
- package/lib/node/registration/jws-algorithm-resolver.js.map +1 -1
- package/lib/node/registration/registration-manager.js +9 -17
- package/lib/node/registration/registration-manager.js.map +1 -1
- package/lib/node/user/index.js +4 -17
- package/lib/node/user/index.js.map +1 -1
- package/lib/node/user/oauth2-user-service.js +6 -14
- package/lib/node/user/oauth2-user-service.js.map +1 -1
- package/lib/node/user/oidc-user-service.js +10 -18
- package/lib/node/user/oidc-user-service.js.map +1 -1
- package/lib/node/utils/authorization-grant-request-entity-util.js +1 -1
- package/lib/node/utils/authorization-grant-request-entity-util.js.map +1 -1
- package/lib/node/utils/index.js +3 -16
- package/lib/node/utils/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.RefreshTokenTokenResponseClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const endpoint_protocol_1 = require("./endpoint-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const http_1 = require("@celljs/http");
|
|
@@ -68,19 +60,19 @@ let RefreshTokenTokenResponseClient = class RefreshTokenTokenResponseClient {
|
|
|
68
60
|
return qs.stringify(formParameters);
|
|
69
61
|
}
|
|
70
62
|
};
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
73
|
-
__metadata("design:type", Function)
|
|
65
|
+
tslib_1.__metadata("design:type", Function)
|
|
74
66
|
], RefreshTokenTokenResponseClient.prototype, "restOperations", void 0);
|
|
75
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
76
68
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
77
|
-
__metadata("design:type", Object)
|
|
69
|
+
tslib_1.__metadata("design:type", Object)
|
|
78
70
|
], RefreshTokenTokenResponseClient.prototype, "providerDetailsManager", void 0);
|
|
79
|
-
__decorate([
|
|
71
|
+
tslib_1.__decorate([
|
|
80
72
|
(0, core_1.Autowired)(oauth2_core_1.AccessTokenResponseConverter),
|
|
81
|
-
__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
73
|
+
tslib_1.__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
82
74
|
], RefreshTokenTokenResponseClient.prototype, "accessTokenResponseConverter", void 0);
|
|
83
|
-
RefreshTokenTokenResponseClient = __decorate([
|
|
75
|
+
RefreshTokenTokenResponseClient = tslib_1.__decorate([
|
|
84
76
|
(0, core_1.Component)()
|
|
85
77
|
], RefreshTokenTokenResponseClient);
|
|
86
78
|
exports.RefreshTokenTokenResponseClient = RefreshTokenTokenResponseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/refresh-token-token-response-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refresh-token-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/refresh-token-token-response-client.ts"],"names":[],"mappings":";;;;AAAA,2DAA6H;AAC7H,uCAAoD;AACpD,uCAA8C;AAC9C,0CAAqD;AACrD,qDAAiL;AACjL,oCAA+D;AAC/D,yBAAyB;AAGlB,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAWxC,KAAK,CAAC,gBAAgB,CAAC,wBAAkD;QACrE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,wBAAwB,CAAC;QACnF,MAAM,eAAe,GAAG,MAAM,IAAI,C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B,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAAC;QACtG,MAAM,cAAc,GAA2B;YAC3C,CAAC,kCAAoB,CAAC,UAAU,CAAC,EAAE,sBAAsB;YACzD,CAAC,kCAAoB,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,UAAU;SAChE,CAAC;QACF,IAAI,MAAM,EAAE;YACR,cAAc,CAAC,kCAAoB,CAAC,KAAK,CAAC,GAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAClE;QACD,MAAM,EAAE,0BAA0B,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,kBAAkB,CAAC;QAClF,IAAI,wCAA0B,CAAC,IAAI,KAAK,0BAA0B,EAAE;YAChE,cAAc,CAAC,kCAAoB,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC;YAC1D,cAAc,CAAC,kCAAoB,CAAC,aAAa,CAAC,GAAG,YAAY,CAAC;SACrE;QACD,OAAO,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC;CAEJ,CAAA;AAjEG;IAAC,IAAA,gBAAS,EAAC,qBAAc,CAAC;;uEACwB;AAElD;IAAC,IAAA,gBAAS,EAAC,iCAAsB,CAAC;;+EACgC;AAElE;IAAC,IAAA,gBAAS,EAAC,0CAA4B,CAAC;sCACS,0CAA4B;qFAAC;AATrE,+BAA+B;IAD3C,IAAA,gBAAS,GAAE;GACC,+BAA+B,CAmE3C;AAnEY,0EAA+B"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.DefaultUserResponseClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const endpoint_protocol_1 = require("./endpoint-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const http_1 = require("@celljs/http");
|
|
@@ -69,15 +61,15 @@ let DefaultUserResponseClient = class DefaultUserResponseClient {
|
|
|
69
61
|
};
|
|
70
62
|
}
|
|
71
63
|
};
|
|
72
|
-
__decorate([
|
|
64
|
+
tslib_1.__decorate([
|
|
73
65
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
74
|
-
__metadata("design:type", Function)
|
|
66
|
+
tslib_1.__metadata("design:type", Function)
|
|
75
67
|
], DefaultUserResponseClient.prototype, "restOperations", void 0);
|
|
76
|
-
__decorate([
|
|
68
|
+
tslib_1.__decorate([
|
|
77
69
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
78
|
-
__metadata("design:type", Object)
|
|
70
|
+
tslib_1.__metadata("design:type", Object)
|
|
79
71
|
], DefaultUserResponseClient.prototype, "providerDetailsManager", void 0);
|
|
80
|
-
DefaultUserResponseClient = __decorate([
|
|
72
|
+
DefaultUserResponseClient = tslib_1.__decorate([
|
|
81
73
|
(0, core_1.Component)(endpoint_protocol_1.UserResponseClient)
|
|
82
74
|
], DefaultUserResponseClient);
|
|
83
75
|
exports.DefaultUserResponseClient = DefaultUserResponseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/user-response-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/user-response-client.ts"],"names":[],"mappings":";;;;AAAA,2DACmI;AACnI,uCAAoD;AACpD,uCAAkF;AAClF,0CAAqD;AACrD,qDAAmJ;AACnJ,yBAAyB;AAIlB,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAQlC,KAAK,CAAC,eAAe,CAAC,WAA8B;;QAChD,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC;QACxD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAE3F,IAAI,CAAC,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,gBAAgB,0CAAE,GAAG,CAAA,EAAE;YACzC,MAAM,IAAI,uCAAyB,CAAC;gBAChC,SAAS,EAAE,oDAAgC;gBAC3C,WAAW,EAAE,8EAA8E,kBAAkB,CAAC,cAAc,EAAE;aACjI,CAAC,CAAC;SACN;QACD,MAAM,qBAAqB,GAAG,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,gBAAgB,0CAAE,qBAAqB,CAAC;QACvF,IAAI,CAAC,qBAAqB,EAAE;YACxB,MAAM,IAAI,uCAAyB,CAAC;gBAChC,SAAS,EAAE,0DAAsC;gBACjD,WAAW,EAAE,8FAA8F,kBAAkB,CAAC,cAAc,EAAE;aACjJ,CAAC,CAAC;SACN;QAED,IAAI,QAAQ,CAAC;QACb,IAAI;YACA,MAAM,UAAU,GAAG,eAAe,CAAC,gBAAgB,CAAC,oBAAoB,KAAK,kCAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAU,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAU,CAAC,GAAG,CAAC;YAC1I,MAAM,MAAM,GAAuB;gBAC/B,GAAG,EAAE,MAAA,e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IAAA,gBAAS,EAAC,sCAAkB,CAAC;GACjB,yBAAyB,CA6DrC;AA7DY,8DAAyB"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.OAuth2AuthorizationErrorHandler = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const error_protocol_1 = require("./error-protocol");
|
|
14
6
|
const node_1 = require("@celljs/web/lib/node");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -37,15 +29,15 @@ let OAuth2AuthorizationErrorHandler = class OAuth2AuthorizationErrorHandler {
|
|
|
37
29
|
ctx.response.end(err.message);
|
|
38
30
|
}
|
|
39
31
|
};
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, core_1.Autowired)(node_1.RedirectStrategy),
|
|
42
|
-
__metadata("design:type", Object)
|
|
34
|
+
tslib_1.__metadata("design:type", Object)
|
|
43
35
|
], OAuth2AuthorizationErrorHandler.prototype, "redirectStrategy", void 0);
|
|
44
|
-
__decorate([
|
|
36
|
+
tslib_1.__decorate([
|
|
45
37
|
(0, core_1.Autowired)(authorization_1.AuthorizationRequestManager),
|
|
46
|
-
__metadata("design:type", Object)
|
|
38
|
+
tslib_1.__metadata("design:type", Object)
|
|
47
39
|
], OAuth2AuthorizationErrorHandler.prototype, "authorizationRequestManager", void 0);
|
|
48
|
-
OAuth2AuthorizationErrorHandler = __decorate([
|
|
40
|
+
OAuth2AuthorizationErrorHandler = tslib_1.__decorate([
|
|
49
41
|
(0, core_1.Component)(node_1.ErrorHandler)
|
|
50
42
|
], OAuth2AuthorizationErrorHandler);
|
|
51
43
|
exports.OAuth2AuthorizationErrorHandler = OAuth2AuthorizationErrorHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-hander.js","sourceRoot":"","sources":["../../../src/node/error/error-hander.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-hander.js","sourceRoot":"","sources":["../../../src/node/error/error-hander.ts"],"names":[],"mappings":";;;;AAAA,qDAA+E;AAC/E,+CAA+E;AAC/E,uCAAoD;AACpD,qDAA2G;AAC3G,oDAA+D;AAC/D,yCAAgC;AAGzB,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAArC;QACM,aAAQ,GAAW,4DAA2C,CAAC;IA6B5E,CAAC;IArBG,SAAS,CAAC,GAAY,EAAE,GAAU;QAC9B,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,YAAY,sCAAwB,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,GAA6B;QACpD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;QAC5B,MAAM,oBAAoB,GAAyB,MAAM,IAAI,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC;QAEnG,IAAI,WAAW,GAAG,GAAG,oBAAoB,CAAC,WAAW,IAAI,kCAAoB,CAAC,KAAK,IAAI,WAAW,CAAC,SAAS,EAAE,CAAC;QAC/G,IAAI,WAAW,CAAC,WAAW,EAAE;YACzB,WAAW,GAAG,GAAG,WAAW,IAAI,kCAAoB,CAAC,iBAAiB,IAAI,eAAG,CAAC,MAAM,CAAC,SAAS,CAAC,eAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;SAC7I;QAED,IAAI,WAAW,CAAC,GAAG,EAAE;YACjB,WAAW,GAAG,GAAG,WAAW,IAAI,kCAAoB,CAAC,SAAS,IAAI,eAAG,CAAC,MAAM,CAAC,SAAS,CAAC,eAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;SAE7H;QAED,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AA3BG;IAAC,IAAA,gBAAS,EAAC,uBAAgB,CAAC;;yEAC0B;AAEtD;IAAC,IAAA,gBAAS,EAAC,2CAA2B,CAAC;;oFAC2D;AAPzF,+BAA+B;IAD3C,IAAA,gBAAS,EAAC,mBAAY,CAAC;GACX,+BAA+B,CA8B3C;AA9BY,0EAA+B"}
|
package/lib/node/error/index.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./error-
|
|
19
|
-
__exportStar(require("./error"), exports);
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./error-hander"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./error-protocol"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
20
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,2DAAiC;AACjC,kDAAwB"}
|
package/lib/node/index.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./registration"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./provider"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./authorization"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./authentication"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./endpoint"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./user"), exports);
|
|
24
11
|
//# sourceMappingURL=index.js.map
|
package/lib/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,qDAA2B;AAC3B,0DAAgC;AAChC,2DAAiC;AACjC,qDAA2B;AAC3B,sDAA4B;AAC5B,iDAAuB"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./provider-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./provider-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./provider-details-manager"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/provider/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/provider/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,qEAA2C"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.InMemoryProviderDetailsManager = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const provider_protocol_1 = require("./provider-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
let InMemoryProviderDetailsManager = class InMemoryProviderDetailsManager {
|
|
@@ -23,9 +15,9 @@ let InMemoryProviderDetailsManager = class InMemoryProviderDetailsManager {
|
|
|
23
15
|
for (const id in this.providers) {
|
|
24
16
|
if (Object.prototype.hasOwnProperty.call(this.providers, id)) {
|
|
25
17
|
const template = this.providerTemplates[id];
|
|
26
|
-
const provider =
|
|
27
|
-
provider.userInfoEndpoint =
|
|
28
|
-
provider.configurationMetadata =
|
|
18
|
+
const provider = { ...template, ...this.providers[id] };
|
|
19
|
+
provider.userInfoEndpoint = { ...template === null || template === void 0 ? void 0 : template.userInfoEndpoint, ...provider.userInfoEndpoint };
|
|
20
|
+
provider.configurationMetadata = { ...template === null || template === void 0 ? void 0 : template.configurationMetadata, ...provider.configurationMetadata };
|
|
29
21
|
this.providers[id] = provider;
|
|
30
22
|
}
|
|
31
23
|
}
|
|
@@ -35,15 +27,15 @@ let InMemoryProviderDetailsManager = class InMemoryProviderDetailsManager {
|
|
|
35
27
|
return this.providers[providerId] || this.providerTemplates[providerId];
|
|
36
28
|
}
|
|
37
29
|
};
|
|
38
|
-
__decorate([
|
|
30
|
+
tslib_1.__decorate([
|
|
39
31
|
(0, core_1.Value)('cell.oauth2.client.providers'),
|
|
40
|
-
__metadata("design:type", Object)
|
|
32
|
+
tslib_1.__metadata("design:type", Object)
|
|
41
33
|
], InMemoryProviderDetailsManager.prototype, "providers", void 0);
|
|
42
|
-
__decorate([
|
|
34
|
+
tslib_1.__decorate([
|
|
43
35
|
(0, core_1.Value)('cell.oauth2.client.providerTemplates'),
|
|
44
|
-
__metadata("design:type", Object)
|
|
36
|
+
tslib_1.__metadata("design:type", Object)
|
|
45
37
|
], InMemoryProviderDetailsManager.prototype, "providerTemplates", void 0);
|
|
46
|
-
InMemoryProviderDetailsManager = __decorate([
|
|
38
|
+
InMemoryProviderDetailsManager = tslib_1.__decorate([
|
|
47
39
|
(0, core_1.Component)(provider_protocol_1.ProviderDetailsManager)
|
|
48
40
|
], InMemoryProviderDetailsManager);
|
|
49
41
|
exports.InMemoryProviderDetailsManager = InMemoryProviderDetailsManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-details-manager.js","sourceRoot":"","sources":["../../../src/node/provider/provider-details-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-details-manager.js","sourceRoot":"","sources":["../../../src/node/provider/provider-details-manager.ts"],"names":[],"mappings":";;;;AAAA,2DAA8E;AAC9E,uCAAgD;AAGzC,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAApC;QAGO,cAAS,GAAsC,EAAE,CAAC;QAGzC,sBAAiB,GAAsC,EAAE,CAAC;QAEnE,gBAAW,GAAG,KAAK,CAAC;IAoBlC,CAAC;IAlBG,KAAK,CAAC,GAAG,CAAC,UAAkB;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE;gBAC7B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE;oBAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;oBAC5C,MAAM,QAAQ,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC;oBACxD,QAAQ,CAAC,gBAAgB,GAAG,EAAE,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,gBAAgB,EAAE,GAAG,QAAQ,CAAC,gBAAgB,EAAE,CAAC;oBAC5F,QAAQ,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,qBAAqB,EAAE,GAAG,QAAQ,CAAC,qBAAqB,EAAE,CAAC;oBAC3G,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC;iBACjC;aACJ;YACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;YACtC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;SAC3B;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC5E,CAAC;CAEJ,CAAA;AA1BG;IAAC,IAAA,YAAK,EAAC,8BAA8B,CAAC;;iEACsB;AAE5D;IAAC,IAAA,YAAK,EAAC,sCAAsC,CAAC;;yEAC+B;AANpE,8BAA8B;IAD1C,IAAA,gBAAS,EAAC,0CAAsB,CAAC;GACrB,8BAA8B,CA4B1C;AA5BY,wEAA8B"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.IdTokenJwtDecoderFactory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const oauth2_jose_1 = require("@celljs/oauth2-jose");
|
|
14
6
|
const registration_protocol_1 = require("./registration-protocol");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -66,23 +58,23 @@ let IdTokenJwtDecoderFactory = class IdTokenJwtDecoderFactory {
|
|
|
66
58
|
return jwtDecoder;
|
|
67
59
|
}
|
|
68
60
|
};
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, core_1.Autowired)(registration_protocol_1.JwsAlgorithmResolver),
|
|
71
|
-
__metadata("design:type", Object)
|
|
63
|
+
tslib_1.__metadata("design:type", Object)
|
|
72
64
|
], IdTokenJwtDecoderFactory.prototype, "jwsAlgorithmResolver", void 0);
|
|
73
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
74
66
|
(0, core_1.Autowired)(authorization_1.AuthorizationRequestManager),
|
|
75
|
-
__metadata("design:type", Object)
|
|
67
|
+
tslib_1.__metadata("design:type", Object)
|
|
76
68
|
], IdTokenJwtDecoderFactory.prototype, "authorizationRequestManager", void 0);
|
|
77
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
78
70
|
(0, core_1.Autowired)(oauth2_jose_1.JwkSetManager),
|
|
79
|
-
__metadata("design:type", Object)
|
|
71
|
+
tslib_1.__metadata("design:type", Object)
|
|
80
72
|
], IdTokenJwtDecoderFactory.prototype, "jwkSetManager", void 0);
|
|
81
|
-
__decorate([
|
|
73
|
+
tslib_1.__decorate([
|
|
82
74
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
83
|
-
__metadata("design:type", Object)
|
|
75
|
+
tslib_1.__metadata("design:type", Object)
|
|
84
76
|
], IdTokenJwtDecoderFactory.prototype, "providerDetailsManager", void 0);
|
|
85
|
-
IdTokenJwtDecoderFactory = __decorate([
|
|
77
|
+
IdTokenJwtDecoderFactory = tslib_1.__decorate([
|
|
86
78
|
(0, core_1.Component)()
|
|
87
79
|
], IdTokenJwtDecoderFactory);
|
|
88
80
|
exports.IdTokenJwtDecoderFactory = IdTokenJwtDecoderFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-token-jwt-decoder-facatory.js","sourceRoot":"","sources":["../../../src/node/registration/id-token-jwt-decoder-facatory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"id-token-jwt-decoder-facatory.js","sourceRoot":"","sources":["../../../src/node/registration/id-token-jwt-decoder-facatory.ts"],"names":[],"mappings":";;;;AAAA,qDAAkG;AAClG,mEAA0H;AAC1H,uCAAoD;AACpD,0CAAsE;AACtE,+BAA0D;AAC1D,qDAAsF;AACtF,oDAA+D;AAGxD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QAcgB,gBAAW,GAAG,IAAI,GAAG,EAAsB,CAAC;IA+CnE,CAAC;IA7CG,KAAK,CAAC,MAAM,CAAC,kBAAsC;QAC/C,MAAM,EAAE,cAAc,EAAE,GAAG,kBAAkB,CAAC;QAC9C,IAAI,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,EAAE;YACb,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;YAChF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAqB,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAEzG,IAAI,GAAyB,CAAC;YAC9B,IAAI,YAAY,KAAK,2BAAa,CAAC,KAAK,EAAE;gBACtC,IAAI,CAAC,SAAS,EAAE;oBACZ,MAAM,IAAI,uCAAyB,CAAC;wBAChC,SAAS,EAAE,6DAAqC;wBAChD,WAAW,EAAE,iEAAiE,cAAc,wDAAwD;qBACvJ,CAAC,CAAC;iBACN;gBACD,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,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.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./registration-
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./registration-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./registration-manager"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./id-token-jwt-decoder-facatory"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./jws-algorithm-resolver"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/registration/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/registration/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,iEAAuC;AACvC,0EAAgD;AAChD,mEAAyC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.DefaultJwsAlgorithmResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const oauth2_jose_1 = require("@celljs/oauth2-jose");
|
|
11
6
|
const registration_protocol_1 = require("./registration-protocol");
|
|
12
7
|
const core_1 = require("@celljs/core");
|
|
@@ -15,7 +10,7 @@ let DefaultJwsAlgorithmResolver = class DefaultJwsAlgorithmResolver {
|
|
|
15
10
|
return oauth2_jose_1.JwsAlgorithms.RS256;
|
|
16
11
|
}
|
|
17
12
|
};
|
|
18
|
-
DefaultJwsAlgorithmResolver = __decorate([
|
|
13
|
+
DefaultJwsAlgorithmResolver = tslib_1.__decorate([
|
|
19
14
|
(0, core_1.Component)(registration_protocol_1.JwsAlgorithmResolver)
|
|
20
15
|
], DefaultJwsAlgorithmResolver);
|
|
21
16
|
exports.DefaultJwsAlgorithmResolver = DefaultJwsAlgorithmResolver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jws-algorithm-resolver.js","sourceRoot":"","sources":["../../../src/node/registration/jws-algorithm-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jws-algorithm-resolver.js","sourceRoot":"","sources":["../../../src/node/registration/jws-algorithm-resolver.ts"],"names":[],"mappings":";;;;AAAA,qDAAoD;AACpD,mEAAmF;AACnF,uCAAyC;AAGlC,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEpC,KAAK,CAAC,MAAM,CAAC,kBAAsC;QAC/C,OAAO,2BAAa,CAAC,KAAK,CAAC;IAC/B,CAAC;CAEJ,CAAA;AANY,2BAA2B;IADvC,IAAA,gBAAS,EAAC,4CAAoB,CAAC;GACnB,2BAA2B,CAMvC;AANY,kEAA2B"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.InMemoryClientRegistrationManager = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const registration_protocol_1 = require("./registration-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const oauth2_core_1 = require("@celljs/oauth2-core");
|
|
@@ -24,7 +16,7 @@ let InMemoryClientRegistrationManager = class InMemoryClientRegistrationManager
|
|
|
24
16
|
for (const id in this.registrations) {
|
|
25
17
|
if (Object.prototype.hasOwnProperty.call(this.registrations, id)) {
|
|
26
18
|
const template = this.registrationTemplates[id];
|
|
27
|
-
const registration =
|
|
19
|
+
const registration = { ...template, ...this.registrations[id] };
|
|
28
20
|
this.registrations[id] = registration;
|
|
29
21
|
registration.registrationId = id;
|
|
30
22
|
registration.clientAuthenticationMethod = registration.clientAuthenticationMethod || this.deduceClientAuthenticationMethod(registration);
|
|
@@ -45,19 +37,19 @@ let InMemoryClientRegistrationManager = class InMemoryClientRegistrationManager
|
|
|
45
37
|
return oauth2_core_1.ClientAuthenticationMethod.Basic;
|
|
46
38
|
}
|
|
47
39
|
};
|
|
48
|
-
__decorate([
|
|
40
|
+
tslib_1.__decorate([
|
|
49
41
|
(0, core_1.Value)('cell.oauth2.client.registrations'),
|
|
50
|
-
__metadata("design:type", Object)
|
|
42
|
+
tslib_1.__metadata("design:type", Object)
|
|
51
43
|
], InMemoryClientRegistrationManager.prototype, "registrations", void 0);
|
|
52
|
-
__decorate([
|
|
44
|
+
tslib_1.__decorate([
|
|
53
45
|
(0, core_1.Value)('cell.oauth2.client.registrationTemplates'),
|
|
54
|
-
__metadata("design:type", Object)
|
|
46
|
+
tslib_1.__metadata("design:type", Object)
|
|
55
47
|
], InMemoryClientRegistrationManager.prototype, "registrationTemplates", void 0);
|
|
56
|
-
__decorate([
|
|
48
|
+
tslib_1.__decorate([
|
|
57
49
|
(0, core_1.Value)('cell.oauth2.client.defaultRedirectUri'),
|
|
58
|
-
__metadata("design:type", String)
|
|
50
|
+
tslib_1.__metadata("design:type", String)
|
|
59
51
|
], InMemoryClientRegistrationManager.prototype, "defaultRedirectUri", void 0);
|
|
60
|
-
InMemoryClientRegistrationManager = __decorate([
|
|
52
|
+
InMemoryClientRegistrationManager = tslib_1.__decorate([
|
|
61
53
|
(0, core_1.Component)(registration_protocol_1.ClientRegistrationManager)
|
|
62
54
|
], InMemoryClientRegistrationManager);
|
|
63
55
|
exports.InMemoryClientRegistrationManager = InMemoryClientRegistrationManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration-manager.js","sourceRoot":"","sources":["../../../src/node/registration/registration-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registration-manager.js","sourceRoot":"","sources":["../../../src/node/registration/registration-manager.ts"],"names":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IAAI,oCAAsB,CAAC,iBAAiB,KAAK,kBAAkB,CAAC,sBAAsB;eACnF,CAAC,kBAAkB,CAAC,YAAY,EAAE;YACrC,OAAO,wCAA0B,CAAC,IAAI,CAAC;SAC1C;QACD,OAAO,wCAA0B,CAAC,KAAK,CAAC;IAC5C,CAAC;CAEJ,CAAA;AAvCG;IAAC,IAAA,YAAK,EAAC,kCAAkC,CAAC;;wEACkC;AAE5E;IAAC,IAAA,YAAK,EAAC,0CAA0C,CAAC;;gFACkC;AAEpF;IAAC,IAAA,YAAK,EAAC,uCAAuC,CAAC;;6EACD;AATrC,iCAAiC;IAD7C,IAAA,gBAAS,EAAC,iDAAyB,CAAC;GACxB,iCAAiC,CAyC7C;AAzCY,8EAAiC"}
|
package/lib/node/user/index.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./user-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./oauth2-user-service"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./oidc-user-service"), exports);
|
|
20
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/user/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/user/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,gEAAsC;AACtC,8DAAoC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.OAuth2UserService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const endpoint_1 = require("../endpoint");
|
|
15
7
|
const provider_1 = require("../provider");
|
|
@@ -46,15 +38,15 @@ let OAuth2UserService = class OAuth2UserService {
|
|
|
46
38
|
};
|
|
47
39
|
}
|
|
48
40
|
};
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
51
|
-
__metadata("design:type", Object)
|
|
43
|
+
tslib_1.__metadata("design:type", Object)
|
|
52
44
|
], OAuth2UserService.prototype, "providerDetailsManager", void 0);
|
|
53
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
54
46
|
(0, core_1.Autowired)(endpoint_1.UserResponseClient),
|
|
55
|
-
__metadata("design:type", Object)
|
|
47
|
+
tslib_1.__metadata("design:type", Object)
|
|
56
48
|
], OAuth2UserService.prototype, "userResponseClient", void 0);
|
|
57
|
-
OAuth2UserService = __decorate([
|
|
49
|
+
OAuth2UserService = tslib_1.__decorate([
|
|
58
50
|
(0, core_1.Component)()
|
|
59
51
|
], OAuth2UserService);
|
|
60
52
|
exports.OAuth2UserService = OAuth2UserService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2-user-service.js","sourceRoot":"","sources":["../../../src/node/user/oauth2-user-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oauth2-user-service.js","sourceRoot":"","sources":["../../../src/node/user/oauth2-user-service.ts"],"names":[],"mappings":";;;;AAAA,uCAAoD;AAGpD,0CAA8I;AAC9I,0CAAqD;AACrD,qDAAgE;AAGzD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAQ1B,KAAK,CAAC,IAAI,CAAC,WAA8B;QACrC,MAAM,EAAE,kBAAkB,EAAE,GAAG,WAAW,CAAC;QAC3C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAC3F,IAAI,CAAC,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,gBAAgB,CAAC,GAAG,CAAA,EAAE;YACxC,MAAM,IAAI,uCAAyB,CAAC;gBAChC,SAAS,EAAE,2CAAgC;gBAC3C,WAAW,EAAE,8EAA8E,kBAAkB,CAAC,cAAc,EAAE;aACj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