@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.DefaultAuthorizationSuccessHandler = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
let DefaultAuthorizationSuccessHandler = class DefaultAuthorizationSuccessHandler {
|
|
@@ -17,11 +9,11 @@ let DefaultAuthorizationSuccessHandler = class DefaultAuthorizationSuccessHandle
|
|
|
17
9
|
return this.authorizedClientManager.save(authorizedClient, principal.name);
|
|
18
10
|
}
|
|
19
11
|
};
|
|
20
|
-
__decorate([
|
|
12
|
+
tslib_1.__decorate([
|
|
21
13
|
(0, core_1.Autowired)(authorization_protocol_1.AuthorizedClientManager),
|
|
22
|
-
__metadata("design:type", Object)
|
|
14
|
+
tslib_1.__metadata("design:type", Object)
|
|
23
15
|
], DefaultAuthorizationSuccessHandler.prototype, "authorizedClientManager", void 0);
|
|
24
|
-
DefaultAuthorizationSuccessHandler = __decorate([
|
|
16
|
+
DefaultAuthorizationSuccessHandler = tslib_1.__decorate([
|
|
25
17
|
(0, core_1.Component)(authorization_protocol_1.AuthorizationSuccessHandler)
|
|
26
18
|
], DefaultAuthorizationSuccessHandler);
|
|
27
19
|
exports.DefaultAuthorizationSuccessHandler = DefaultAuthorizationSuccessHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-success-handler.js","sourceRoot":"","sources":["../../../src/node/authorization/authorization-success-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authorization-success-handler.js","sourceRoot":"","sources":["../../../src/node/authorization/authorization-success-handler.ts"],"names":[],"mappings":";;;;AAAA,qEAAkH;AAElH,uCAAoD;AAG7C,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAK3C,sBAAsB,CAAC,gBAAkC,EAAE,SAAyB;QAChF,OAAO,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;CAEJ,CAAA;AAPG;IAAC,IAAA,gBAAS,EAAC,gDAAuB,CAAC;;mFACmD;AAH7E,kCAAkC;IAD9C,IAAA,gBAAS,EAAC,oDAA2B,CAAC;GAC1B,kCAAkC,CAS9C;AATY,gFAAkC"}
|
|
@@ -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.InMemoryAuthorizedClientManager = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const registration_1 = require("../registration");
|
|
@@ -37,11 +29,11 @@ let InMemoryAuthorizedClientManager = class InMemoryAuthorizedClientManager {
|
|
|
37
29
|
return `${clientRegistrationId}@${principalName}`;
|
|
38
30
|
}
|
|
39
31
|
};
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, core_1.Autowired)(registration_1.ClientRegistrationManager),
|
|
42
|
-
__metadata("design:type", Object)
|
|
34
|
+
tslib_1.__metadata("design:type", Object)
|
|
43
35
|
], InMemoryAuthorizedClientManager.prototype, "clientRegistrationManager", void 0);
|
|
44
|
-
InMemoryAuthorizedClientManager = __decorate([
|
|
36
|
+
InMemoryAuthorizedClientManager = tslib_1.__decorate([
|
|
45
37
|
(0, core_1.Component)(authorization_protocol_1.AuthorizedClientManager)
|
|
46
38
|
], InMemoryAuthorizedClientManager);
|
|
47
39
|
exports.InMemoryAuthorizedClientManager = InMemoryAuthorizedClientManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-client-manager.js","sourceRoot":"","sources":["../../../src/node/authorization/authorized-client-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authorized-client-manager.js","sourceRoot":"","sources":["../../../src/node/authorization/authorized-client-manager.ts"],"names":[],"mappings":";;;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B3C;AA7BY,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.DefaultAuthorizedClientService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const registration_1 = require("../registration");
|
|
@@ -56,31 +48,31 @@ let DefaultAuthorizedClientService = class DefaultAuthorizedClientService {
|
|
|
56
48
|
return authorizedClient;
|
|
57
49
|
}
|
|
58
50
|
};
|
|
59
|
-
__decorate([
|
|
51
|
+
tslib_1.__decorate([
|
|
60
52
|
(0, core_1.Autowired)(authorization_protocol_1.AuthorizedClientProvider),
|
|
61
|
-
__metadata("design:type", Array)
|
|
53
|
+
tslib_1.__metadata("design:type", Array)
|
|
62
54
|
], DefaultAuthorizedClientService.prototype, "authorizedClientProviders", void 0);
|
|
63
|
-
__decorate([
|
|
55
|
+
tslib_1.__decorate([
|
|
64
56
|
(0, core_1.Autowired)(registration_1.ClientRegistrationManager),
|
|
65
|
-
__metadata("design:type", Object)
|
|
57
|
+
tslib_1.__metadata("design:type", Object)
|
|
66
58
|
], DefaultAuthorizedClientService.prototype, "clientRegistrationManager", void 0);
|
|
67
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
68
60
|
(0, core_1.Autowired)(authorization_protocol_1.AuthorizedClientManager),
|
|
69
|
-
__metadata("design:type", Object)
|
|
61
|
+
tslib_1.__metadata("design:type", Object)
|
|
70
62
|
], DefaultAuthorizedClientService.prototype, "authorizedClientManager", void 0);
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, core_1.Autowired)(authorization_protocol_1.ContextAttributesMapper),
|
|
73
|
-
__metadata("design:type", Object)
|
|
65
|
+
tslib_1.__metadata("design:type", Object)
|
|
74
66
|
], DefaultAuthorizedClientService.prototype, "contextAttributesMapper", void 0);
|
|
75
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
76
68
|
(0, core_1.Autowired)(authorization_protocol_1.AuthorizationSuccessHandler),
|
|
77
|
-
__metadata("design:type", Object)
|
|
69
|
+
tslib_1.__metadata("design:type", Object)
|
|
78
70
|
], DefaultAuthorizedClientService.prototype, "authorizationSuccessHandler", void 0);
|
|
79
|
-
__decorate([
|
|
71
|
+
tslib_1.__decorate([
|
|
80
72
|
(0, core_1.Autowired)(authorization_protocol_1.AuthorizationFailureHandler),
|
|
81
|
-
__metadata("design:type", Object)
|
|
73
|
+
tslib_1.__metadata("design:type", Object)
|
|
82
74
|
], DefaultAuthorizedClientService.prototype, "authorizationFailureHandler", void 0);
|
|
83
|
-
DefaultAuthorizedClientService = __decorate([
|
|
75
|
+
DefaultAuthorizedClientService = tslib_1.__decorate([
|
|
84
76
|
(0, core_1.Component)(authorization_protocol_1.AuthorizedClientService)
|
|
85
77
|
], DefaultAuthorizedClientService);
|
|
86
78
|
exports.DefaultAuthorizedClientService = DefaultAuthorizedClientService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorized-client-service.js","sourceRoot":"","sources":["../../../src/node/authorization/authorized-client-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authorized-client-service.js","sourceRoot":"","sources":["../../../src/node/authorization/authorized-client-service.ts"],"names":[],"mappings":";;;;AAAA,qEACwH;AACxH,uCAAoD;AACpD,kDAA4D;AAC5D,mCAA4B;AAC5B,qDAA+D;AAGxD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAoBvC,KAAK,CAAC,SAAS,CAAC,gBAAkC;QAC9C,MAAM,EAAE,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,gBAAgB,CAAC;QAC3F,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAErF,IAAI,UAAU,EAAE;YACZ,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE;gBAC7C,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;aACrC;SACJ;QACD,MAAM,OAAO,GAAyB;YAClC,SAAS;YACT,UAAU,EAAE,iBAAiB;SAChC,CAAC;QACF,IAAI,CAAC,gBAAgB,EAAE;YACnB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;YAC1F,IAAA,WAAE,EAAC,kBAAkB,EAAE,8CAA8C,oBAAoB,GAAG,CAAC,CAAC;YAC9F,OAAO,CAAC,kBAAkB,GAAG,kBAAmB,CAAC;YACjD,OAAO,CAAC,gBAAgB,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,oBAAoB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;SAC3G;QAED,IAAI,MAAoC,CAAC;QAEzC,IAAI;YACA,KAAK,MAAM,wBAAwB,IAAI,IAAI,CAAC,yBAAyB,EAAE;gBACnE,MAAM,GAAG,MAAM,wBAAwB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACzD,IAAI,MAAM,EAAE;oBACR,MAAM;iBACT;aACJ;SACJ;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,sCAAwB,EAAE;gBAC3C,MAAM,IAAI,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;aACnF;YACD,MAAM,KAAK,CAAC;SACf;QAED,IAAI,MAAM,EAAE;YACR,MAAM,IAAI,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACjF,OAAO,MAAM,CAAC;SACjB;QACD,OAAO,gBAAgB,CAAC;IAE5B,CAAC;CAEJ,CAAA;AA9DG;IAAC,IAAA,gBAAS,EAAC,iDAAwB,CAAC;;iFACqC;AAEzE;IAAC,IAAA,gBAAS,EAAC,wCAAyB,CAAC;;iFACmC;AAExE;IAAC,IAAA,gBAAS,EAAC,gDAAuB,CAAC;;+EACmD;AAEtF;IAAC,IAAA,gBAAS,EAAC,gDAAuB,CAAC;;+EACiC;AAEpE;IAAC,IAAA,gBAAS,EAAC,oDAA2B,CAAC;;mFACqC;AAE5E;IAAC,IAAA,gBAAS,EAAC,oDAA2B,CAAC;;mFACqC;AAlBnE,8BAA8B;IAD1C,IAAA,gBAAS,EAAC,gDAAuB,CAAC;GACtB,8BAA8B,CAgE1C;AAhEY,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.ClientCredentialsAuthorizedClientProvider = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const oauth2_core_1 = require("@celljs/oauth2-core");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -57,15 +49,15 @@ let ClientCredentialsAuthorizedClientProvider = class ClientCredentialsAuthorize
|
|
|
57
49
|
}
|
|
58
50
|
}
|
|
59
51
|
};
|
|
60
|
-
__decorate([
|
|
52
|
+
tslib_1.__decorate([
|
|
61
53
|
(0, core_1.Value)('cell.oauth2.client.clockSkew'),
|
|
62
|
-
__metadata("design:type", Number)
|
|
54
|
+
tslib_1.__metadata("design:type", Number)
|
|
63
55
|
], ClientCredentialsAuthorizedClientProvider.prototype, "clockSkew", void 0);
|
|
64
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
65
57
|
(0, core_1.Autowired)(endpoint_1.ClientCredentialsTokenResponseClient),
|
|
66
|
-
__metadata("design:type", endpoint_1.ClientCredentialsTokenResponseClient)
|
|
58
|
+
tslib_1.__metadata("design:type", endpoint_1.ClientCredentialsTokenResponseClient)
|
|
67
59
|
], ClientCredentialsAuthorizedClientProvider.prototype, "accessTokenResponseClient", void 0);
|
|
68
|
-
ClientCredentialsAuthorizedClientProvider = __decorate([
|
|
60
|
+
ClientCredentialsAuthorizedClientProvider = tslib_1.__decorate([
|
|
69
61
|
(0, core_1.Component)(authorization_protocol_1.AuthorizedClientProvider)
|
|
70
62
|
], ClientCredentialsAuthorizedClientProvider);
|
|
71
63
|
exports.ClientCredentialsAuthorizedClientProvider = ClientCredentialsAuthorizedClientProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-credentials-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/client-credentials-authorized-client-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-credentials-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/client-credentials-authorized-client-provider.ts"],"names":[],"mappings":";;;;AAAA,qEAA4G;AAC5G,qDAAoG;AACpG,uCAA2D;AAC3D,0CAAmE;AAEnE,oCAAoD;AAG7C,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAQlD,KAAK,CAAC,OAAO,CAAC,OAA6B;QACvC,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;QACzD,IAAI,oCAAsB,CAAC,iBAAiB,KAAK,kBAAkB,CAAC,sBAAsB,EAAE;YACxF,OAAQ;SACX;QAED,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;YACzE,0EAA0E;YAC1E,4BAA4B;YAC5B,OAAO;SACV;QAED,sDAAsD;QACtD,oDAAoD;QACpD,0CAA0C;QAC1C,EAAE;QACF,iEAAiE;QACjE,+DAA+D;QAC/D,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;QACtE,OAAO;YACH,kBAAkB;YAClB,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI;YACrC,WAAW,EAAE,aAAa,CAAC,WAAW;SACzC,CAAC;IACN,CAAC;IAED,eAAe,CAAC,WAAwB;QACpC,OAAO,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;IAC/D,CAAC;IAES,gBAAgB,CAAC,kBAAsC;QAC7D,IAAI;YACA,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;gBACnD,sBAAsB,EAAE,oCAAsB,CAAC,iBAAiB;gBAChE,kBAAkB;aACrB,CAAC,CAAC;SACN;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,sCAAwB,EAAE;gBAC3C,MAAM,IAAI,gCAAwB,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;aACnG;YACD,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CAEJ,CAAA;AAlDG;IAAC,IAAA,YAAK,EAAC,8BAA8B,CAAC;;4EACD;AAErC;IAAC,IAAA,gBAAS,EAAC,+CAAoC,CAAC;sCACF,+CAAoC;4FAAC;AAN1E,yCAAyC;IADrD,IAAA,gBAAS,EAAC,iDAAwB,CAAC;GACvB,yCAAyC,CAoDrD;AApDY,8FAAyC"}
|
|
@@ -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.DefaultContextAttributesMapper = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
10
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
11
6
|
const core_1 = require("@celljs/core");
|
|
12
7
|
const node_1 = require("@celljs/web/lib/node");
|
|
@@ -21,7 +16,7 @@ let DefaultContextAttributesMapper = class DefaultContextAttributesMapper {
|
|
|
21
16
|
return contextAttributes;
|
|
22
17
|
}
|
|
23
18
|
};
|
|
24
|
-
DefaultContextAttributesMapper = __decorate([
|
|
19
|
+
DefaultContextAttributesMapper = tslib_1.__decorate([
|
|
25
20
|
(0, core_1.Component)(authorization_protocol_1.ContextAttributesMapper)
|
|
26
21
|
], DefaultContextAttributesMapper);
|
|
27
22
|
exports.DefaultContextAttributesMapper = DefaultContextAttributesMapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-attributes-mapper.js","sourceRoot":"","sources":["../../../src/node/authorization/context-attributes-mapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context-attributes-mapper.js","sourceRoot":"","sources":["../../../src/node/authorization/context-attributes-mapper.ts"],"names":[],"mappings":";;;;AAAA,qEAA2G;AAC3G,uCAAyC;AACzC,+CAA+D;AAC/D,qDAA2D;AAGpD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAEvC,KAAK,CAAC,KAAK,CAAC,gBAAkC;QAC1C,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAe,CAAC;QACjD,MAAM,MAAM,GAAG,cAAO,CAAC,OAAO,CAAS,kCAAoB,CAAC,KAAK,EAAE,qBAAc,CAAC,OAAO,CAAC,CAAC;QAC3F,IAAI,MAAM,EAAE;YACR,iBAAiB,CAAC,GAAG,CAAC,6CAAoB,CAAC,4BAA4B,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;SAC/F;QACD,OAAO,iBAAiB,CAAC;IAC7B,CAAC;CAEJ,CAAA;AAXY,8BAA8B;IAD1C,IAAA,gBAAS,EAAC,gDAAuB,CAAC;GACtB,8BAA8B,CAW1C;AAXY,wEAA8B"}
|
|
@@ -1,30 +1,17 @@
|
|
|
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("./authorization-
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./authorization-request-
|
|
22
|
-
__exportStar(require("./authorization-
|
|
23
|
-
__exportStar(require("./authorization-code-
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./authorization-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./authorization-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./authorization-request-resolver"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./authorized-client-manager"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./authorization-request-manager"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./authorization-request-redirect-middleware"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./authorization-code-grant-middleware"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./authorization-code-authorized-client-provider"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./client-credentials-authorized-client-provider"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./password-authorized-client-provider"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./refresh-token-authorized-client-provider"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./context-attributes-mapper"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./authorization-failure-handler"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./authorization-success-handler"), exports);
|
|
30
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/authorization/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/authorization/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,2EAAiD;AACjD,sEAA4C;AAC5C,0EAAgD;AAChD,sFAA4D;AAC5D,gFAAsD;AACtD,0FAAgE;AAChE,0FAAgE;AAChE,gFAAsD;AACtD,qFAA2D;AAC3D,sEAA4C;AAC5C,0EAAgD;AAChD,0EAAgD"}
|
|
@@ -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.PasswordAuthorizedClientProvider = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const oauth2_core_1 = require("@celljs/oauth2-core");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -70,15 +62,15 @@ let PasswordAuthorizedClientProvider = class PasswordAuthorizedClientProvider {
|
|
|
70
62
|
}
|
|
71
63
|
}
|
|
72
64
|
};
|
|
73
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
74
66
|
(0, core_1.Value)('cell.oauth2.client.clockSkew'),
|
|
75
|
-
__metadata("design:type", Number)
|
|
67
|
+
tslib_1.__metadata("design:type", Number)
|
|
76
68
|
], PasswordAuthorizedClientProvider.prototype, "clockSkew", void 0);
|
|
77
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
78
70
|
(0, core_1.Autowired)(password_token_response_client_1.PasswordTokenResponseClient),
|
|
79
|
-
__metadata("design:type", password_token_response_client_1.PasswordTokenResponseClient)
|
|
71
|
+
tslib_1.__metadata("design:type", password_token_response_client_1.PasswordTokenResponseClient)
|
|
80
72
|
], PasswordAuthorizedClientProvider.prototype, "accessTokenResponseClient", void 0);
|
|
81
|
-
PasswordAuthorizedClientProvider = __decorate([
|
|
73
|
+
PasswordAuthorizedClientProvider = tslib_1.__decorate([
|
|
82
74
|
(0, core_1.Component)(authorization_protocol_1.AuthorizedClientProvider)
|
|
83
75
|
], PasswordAuthorizedClientProvider);
|
|
84
76
|
exports.PasswordAuthorizedClientProvider = PasswordAuthorizedClientProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/password-authorized-client-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/password-authorized-client-provider.ts"],"names":[],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O,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;IAC/D,CAAC;IAES,gBAAgB,CAAC,kBAAsC,EAAE,QAAgB,EAAE,QAAgB;QACjG,IAAI;YACA,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;gBACnD,sBAAsB,EAAE,oCAAsB,CAAC,QAAQ;gBACvD,kBAAkB;gBAClB,QAAQ;gBACR,QAAQ;aAEX,CAAC,CAAC;SACN;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,sCAAwB,EAAE;gBAC3C,MAAM,IAAI,gCAAwB,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;aACnG;YACD,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CAEJ,CAAA;AAnEG;IAAC,IAAA,YAAK,EAAC,8BAA8B,CAAC;;mEACD;AAErC;IAAC,IAAA,gBAAS,EAAC,4DAA2B,CAAC;sCACO,4DAA2B;mFAAC;AANjE,gCAAgC;IAD5C,IAAA,gBAAS,EAAC,iDAAwB,CAAC;GACvB,gCAAgC,CAqE5C;AArEY,4EAAgC"}
|
|
@@ -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.RefreshTokenAuthorizedClientProvider = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const authorization_protocol_1 = require("./authorization-protocol");
|
|
14
6
|
const oauth2_core_1 = require("@celljs/oauth2-core");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -53,15 +45,15 @@ let RefreshTokenAuthorizedClientProvider = class RefreshTokenAuthorizedClientPro
|
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
};
|
|
56
|
-
__decorate([
|
|
48
|
+
tslib_1.__decorate([
|
|
57
49
|
(0, core_1.Value)('cell.oauth2.client.clockSkew'),
|
|
58
|
-
__metadata("design:type", Number)
|
|
50
|
+
tslib_1.__metadata("design:type", Number)
|
|
59
51
|
], RefreshTokenAuthorizedClientProvider.prototype, "clockSkew", void 0);
|
|
60
|
-
__decorate([
|
|
52
|
+
tslib_1.__decorate([
|
|
61
53
|
(0, core_1.Autowired)(endpoint_1.RefreshTokenTokenResponseClient),
|
|
62
|
-
__metadata("design:type", endpoint_1.RefreshTokenTokenResponseClient)
|
|
54
|
+
tslib_1.__metadata("design:type", endpoint_1.RefreshTokenTokenResponseClient)
|
|
63
55
|
], RefreshTokenAuthorizedClientProvider.prototype, "accessTokenResponseClient", void 0);
|
|
64
|
-
RefreshTokenAuthorizedClientProvider = __decorate([
|
|
56
|
+
RefreshTokenAuthorizedClientProvider = tslib_1.__decorate([
|
|
65
57
|
(0, core_1.Component)(authorization_protocol_1.AuthorizedClientProvider)
|
|
66
58
|
], RefreshTokenAuthorizedClientProvider);
|
|
67
59
|
exports.RefreshTokenAuthorizedClientProvider = RefreshTokenAuthorizedClientProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/refresh-token-authorized-client-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refresh-token-authorized-client-provider.js","sourceRoot":"","sources":["../../../src/node/authorization/refresh-token-authorized-client-provider.ts"],"names":[],"mappings":";;;;AAAA,qEAA4G;AAC5G,qDAAoG;AACpG,uCAA2D;AAC3D,0CAA8D;AAE9D,oCAAoD;AACpD,mCAA4B;AAGrB,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAQ7C,KAAK,CAAC,OAAO,CAAC,OAA6B;QACvC,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QACrE,IAAI,CAAC,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;YAC5G,OAAO;SACV;QAED,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,6CAAoB,CAAC,4BAA4B,CAAC,CAAC;QAEjF,IAAA,WAAE,EAAC,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,gDAAgD,6CAAoB,CAAC,4BAA4B,GAAG,CAAC,CAAC;QAE1I,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;QAChG,OAAO;YACH,kBAAkB;YAClB,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI;YACrC,WAAW,EAAE,aAAa,CAAC,WAAW;YACtC,YAAY,EAAE,aAAa,CAAC,YAAY;SAC3C,CAAC;IACN,CAAC;IAED,eAAe,CAAC,WAAwB;QACpC,OAAO,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;IAC/D,CAAC;IAES,gBAAgB,CAAC,kBAAsC,EAAE,gBAAkC,EAAE,MAAiB;QACpH,IAAI;YACA,OAAO,IAAI,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;gBACnD,sBAAsB,EAAE,oCAAsB,CAAC,YAAY;gBAC3D,kBAAkB;gBAClB,WAAW,EAAE,gBAAgB,CAAC,WAAW;gBACzC,YAAY,EAAE,gBAAgB,CAAC,YAAa;gBAC5C,MAAM;aACT,CAAC,CAAC;SACN;QAAC,OAAO,KAAK,EAAE;YACZ,IAAI,KAAK,YAAY,sCAAwB,EAAE;gBAC3C,MAAM,IAAI,gCAAwB,CAAC,KAAK,CAAC,WAAW,EAAE,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;aACnG;YACD,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CAEJ,CAAA;AA9CG;IAAC,IAAA,YAAK,EAAC,8BAA8B,CAAC;;uEACD;AAErC;IAAC,IAAA,gBAAS,EAAC,0CAA+B,CAAC;sCACG,0CAA+B;uFAAC;AANrE,oCAAoC;IADhD,IAAA,gBAAS,EAAC,iDAAwB,CAAC;GACvB,oCAAoC,CAgDhD;AAhDY,oFAAoC"}
|
|
@@ -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.AuthorizationCodeTokenResponseClient = 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");
|
|
@@ -64,19 +56,19 @@ let AuthorizationCodeTokenResponseClient = class AuthorizationCodeTokenResponseC
|
|
|
64
56
|
return qs.stringify(formParameters);
|
|
65
57
|
}
|
|
66
58
|
};
|
|
67
|
-
__decorate([
|
|
59
|
+
tslib_1.__decorate([
|
|
68
60
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
69
|
-
__metadata("design:type", Function)
|
|
61
|
+
tslib_1.__metadata("design:type", Function)
|
|
70
62
|
], AuthorizationCodeTokenResponseClient.prototype, "restOperations", void 0);
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
73
|
-
__metadata("design:type", Object)
|
|
65
|
+
tslib_1.__metadata("design:type", Object)
|
|
74
66
|
], AuthorizationCodeTokenResponseClient.prototype, "providerDetailsManager", void 0);
|
|
75
|
-
__decorate([
|
|
67
|
+
tslib_1.__decorate([
|
|
76
68
|
(0, core_1.Autowired)(oauth2_core_1.AccessTokenResponseConverter),
|
|
77
|
-
__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
69
|
+
tslib_1.__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
78
70
|
], AuthorizationCodeTokenResponseClient.prototype, "accessTokenResponseConverter", void 0);
|
|
79
|
-
AuthorizationCodeTokenResponseClient = __decorate([
|
|
71
|
+
AuthorizationCodeTokenResponseClient = tslib_1.__decorate([
|
|
80
72
|
(0, core_1.Component)()
|
|
81
73
|
], AuthorizationCodeTokenResponseClient);
|
|
82
74
|
exports.AuthorizationCodeTokenResponseClient = AuthorizationCodeTokenResponseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-code-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/authorization-code-token-response-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authorization-code-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/authorization-code-token-response-client.ts"],"names":[],"mappings":";;;;AAAA,2DAAkI;AAClI,uCAAoD;AACpD,uCAA8C;AAC9C,0CAAqD;AACrD,qDAC8D;AAC9D,oCAA+D;AAC/D,yBAAyB;AAGlB,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAW7C,KAAK,CAAC,gBAAgB,CAAC,6BAA4D;QAC/E,MAAM,EAAE,kBAAkB,EAAE,GAAG,6BAA6B,CAAC;QAC7D,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAE3F,IAAI,QAAQ,CAAC;QACb,IAAI;YACA,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAA4B,eAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,EAAE;gBACrJ,OAAO,EAAE,2CAAmC,CAAC,sBAAsB,CAAC,kBAAkB,CAAC;aAC1F,CAAC,CAAC;SACN;QAAC,OAAO,KAAK,EAAE;YACZ,MAAM,WAAW,GAAgB;gBAC7B,SAAS,EAAE,qDAAiC;gBAC5C,WAAW,EAAE,uFAAuF,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,KAAI,KAAK,EAAE;aAChI,CAAC;YACF,MAAM,IAAI,sCAAwB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAC1D;QAED,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;QAE1B,MAAM,oBAAoB,GAAG,IAAI,CAAC,4BAA4B,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE7E,IAAI,CAAC,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;IAAC,IAAA,gBAAS,EAAC,iCAAsB,CAAC;;oFACgC;AAElE;IAAC,IAAA,gBAAS,EAAC,0CAA4B,CAAC;sCACS,0CAA4B;0FAAC;AATrE,oCAAoC;IADhD,IAAA,gBAAS,GAAE;GACC,oCAAoC,CA8DhD;AA9DY,oFAAoC"}
|
|
@@ -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.ClientCredentialsTokenResponseClient = 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");
|
|
@@ -61,19 +53,19 @@ let ClientCredentialsTokenResponseClient = class ClientCredentialsTokenResponseC
|
|
|
61
53
|
return qs.stringify(formParameters);
|
|
62
54
|
}
|
|
63
55
|
};
|
|
64
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
65
57
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
66
|
-
__metadata("design:type", Function)
|
|
58
|
+
tslib_1.__metadata("design:type", Function)
|
|
67
59
|
], ClientCredentialsTokenResponseClient.prototype, "restOperations", void 0);
|
|
68
|
-
__decorate([
|
|
60
|
+
tslib_1.__decorate([
|
|
69
61
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
70
|
-
__metadata("design:type", Object)
|
|
62
|
+
tslib_1.__metadata("design:type", Object)
|
|
71
63
|
], ClientCredentialsTokenResponseClient.prototype, "providerDetailsManager", void 0);
|
|
72
|
-
__decorate([
|
|
64
|
+
tslib_1.__decorate([
|
|
73
65
|
(0, core_1.Autowired)(oauth2_core_1.AccessTokenResponseConverter),
|
|
74
|
-
__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
66
|
+
tslib_1.__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
75
67
|
], ClientCredentialsTokenResponseClient.prototype, "accessTokenResponseConverter", void 0);
|
|
76
|
-
ClientCredentialsTokenResponseClient = __decorate([
|
|
68
|
+
ClientCredentialsTokenResponseClient = tslib_1.__decorate([
|
|
77
69
|
(0, core_1.Component)()
|
|
78
70
|
], ClientCredentialsTokenResponseClient);
|
|
79
71
|
exports.ClientCredentialsTokenResponseClient = ClientCredentialsTokenResponseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-credentials-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/client-credentials-token-response-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-credentials-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/client-credentials-token-response-client.ts"],"names":[],"mappings":";;;;AAAA,2DAAkI;AAClI,uCAAoD;AACpD,uCAA8C;AAC9C,0CAAqD;AACrD,qDAAiL;AACjL,oCAA+D;AAC/D,yBAAyB;AAGlB,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAW7C,KAAK,CAAC,gBAAgB,CAAC,6BAA4D;QAC/E,MAAM,EAAE,kBAAkB,EAAE,GAAG,6BAA6B,CAAC;QAC7D,MAAM,eAAe,G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AA0B,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,kBAAkB,CAAC;QAC1F,IAAI,MAAM,EAAE;YACR,cAAc,CAAC,kCAAoB,CAAC,KAAK,CAAC,GAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAClE;QACD,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;AAzDG;IAAC,IAAA,gBAAS,EAAC,qBAAc,CAAC;;4EACwB;AAElD;IAAC,IAAA,gBAAS,EAAC,iCAAsB,CAAC;;oFACgC;AAElE;IAAC,IAAA,gBAAS,EAAC,0CAA4B,CAAC;sCACS,0CAA4B;0FAAC;AATrE,oCAAoC;IADhD,IAAA,gBAAS,GAAE;GACC,oCAAoC,CA2DhD;AA3DY,oFAAoC"}
|
|
@@ -1,23 +1,10 @@
|
|
|
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("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./endpoint-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./authorization-code-token-response-client"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./client-credentials-token-response-client"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./password-token-response-client"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./refresh-token-token-response-client"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./user-response-client"), exports);
|
|
23
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/endpoint/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/endpoint/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,qFAA2D;AAC3D,qFAA2D;AAC3D,2EAAiD;AACjD,gFAAsD;AACtD,iEAAuC"}
|
|
@@ -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.PasswordTokenResponseClient = 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");
|
|
@@ -63,19 +55,19 @@ let PasswordTokenResponseClient = class PasswordTokenResponseClient {
|
|
|
63
55
|
return qs.stringify(formParameters);
|
|
64
56
|
}
|
|
65
57
|
};
|
|
66
|
-
__decorate([
|
|
58
|
+
tslib_1.__decorate([
|
|
67
59
|
(0, core_1.Autowired)(http_1.RestOperations),
|
|
68
|
-
__metadata("design:type", Function)
|
|
60
|
+
tslib_1.__metadata("design:type", Function)
|
|
69
61
|
], PasswordTokenResponseClient.prototype, "restOperations", void 0);
|
|
70
|
-
__decorate([
|
|
62
|
+
tslib_1.__decorate([
|
|
71
63
|
(0, core_1.Autowired)(provider_1.ProviderDetailsManager),
|
|
72
|
-
__metadata("design:type", Object)
|
|
64
|
+
tslib_1.__metadata("design:type", Object)
|
|
73
65
|
], PasswordTokenResponseClient.prototype, "providerDetailsManager", void 0);
|
|
74
|
-
__decorate([
|
|
66
|
+
tslib_1.__decorate([
|
|
75
67
|
(0, core_1.Autowired)(oauth2_core_1.AccessTokenResponseConverter),
|
|
76
|
-
__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
68
|
+
tslib_1.__metadata("design:type", oauth2_core_1.AccessTokenResponseConverter)
|
|
77
69
|
], PasswordTokenResponseClient.prototype, "accessTokenResponseConverter", void 0);
|
|
78
|
-
PasswordTokenResponseClient = __decorate([
|
|
70
|
+
PasswordTokenResponseClient = tslib_1.__decorate([
|
|
79
71
|
(0, core_1.Component)()
|
|
80
72
|
], PasswordTokenResponseClient);
|
|
81
73
|
exports.PasswordTokenResponseClient = PasswordTokenResponseClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/password-token-response-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-token-response-client.js","sourceRoot":"","sources":["../../../src/node/endpoint/password-token-response-client.ts"],"names":[],"mappings":";;;;AAAA,2DAAyH;AACzH,uCAAoD;AACpD,uCAA8C;AAC9C,0CAAqD;AACrD,qDAAiL;AACjL,oCAA+D;AAC/D,yBAAyB;AAGlB,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAWpC,KAAK,CAAC,gBAAgB,CAAC,oBAA0C;QAC7D,MAAM,EAAE,kBAAkB,EAAE,GAAG,oBAAoB,CAAC;QACpD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAE3F,IAAI,QAAQ,CAAC;QACb,IAAI;YACA,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAA4B,eAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,EAAE;gBAC5I,OAAO,EAAE,2CAAmC,CAAC,sBAAsB,CAAC,kBAAkB,CAAC;aAC1F,CAAC,CAAC;SACN;QAAC,OAAO,KAAK,EAAE;YACZ,MAAM,WAAW,GAAgB;gBAC7B,SAAS,EAAE,qDAAiC;gBAC5C,WAAW,EAAE,uFAAuF,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,KAAI,KAAK,EAAE;aAChI,CAAC;YACF,MAAM,IAAI,sCAAwB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;SAC1D;QAED,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;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