@celljs/oauth2-core 3.5.13 → 3.6.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/authentication-protocol.js +2 -2
- package/lib/node/authentication/authentication-protocol.js.map +1 -1
- package/lib/node/authentication/index.js +15 -2
- package/lib/node/authentication/index.js.map +1 -1
- package/lib/node/authorization/authorization-protocol.js +2 -2
- package/lib/node/authorization/authorization-protocol.js.map +1 -1
- package/lib/node/authorization/index.js +15 -2
- package/lib/node/authorization/index.js.map +1 -1
- package/lib/node/endpoint/access-token-response-converter.js +10 -6
- package/lib/node/endpoint/access-token-response-converter.js.map +1 -1
- package/lib/node/endpoint/endpoint-protocol.js +2 -2
- package/lib/node/endpoint/endpoint-protocol.js.map +1 -1
- package/lib/node/endpoint/index.js +16 -3
- package/lib/node/endpoint/index.js.map +1 -1
- package/lib/node/error/error-protocol.js +1 -1
- package/lib/node/error/error-protocol.js.map +1 -1
- package/lib/node/error/index.js +16 -3
- package/lib/node/error/index.js.map +1 -1
- package/lib/node/index.js +20 -7
- package/lib/node/index.js.map +1 -1
- package/lib/node/module.d.ts +1 -1
- package/lib/node/oidc/index.js +15 -2
- package/lib/node/oidc/index.js.map +1 -1
- package/lib/node/oidc/oidc-protocol.js +3 -3
- package/lib/node/oidc/oidc-protocol.js.map +1 -1
- package/lib/node/token/index.js +15 -2
- package/lib/node/token/index.js.map +1 -1
- package/lib/node/token/token-protocol.js +2 -2
- package/lib/node/token/token-protocol.js.map +1 -1
- package/package.json +6 -6
|
@@ -6,11 +6,11 @@ var AuthenticationMethod;
|
|
|
6
6
|
AuthenticationMethod["Header"] = "header";
|
|
7
7
|
AuthenticationMethod["Form"] = "form";
|
|
8
8
|
AuthenticationMethod["Query"] = "query";
|
|
9
|
-
})(AuthenticationMethod
|
|
9
|
+
})(AuthenticationMethod || (exports.AuthenticationMethod = AuthenticationMethod = {}));
|
|
10
10
|
var ClientAuthenticationMethod;
|
|
11
11
|
(function (ClientAuthenticationMethod) {
|
|
12
12
|
ClientAuthenticationMethod["Basic"] = "basic";
|
|
13
13
|
ClientAuthenticationMethod["Post"] = "post";
|
|
14
14
|
ClientAuthenticationMethod["None"] = "none";
|
|
15
|
-
})(ClientAuthenticationMethod
|
|
15
|
+
})(ClientAuthenticationMethod || (exports.ClientAuthenticationMethod = ClientAuthenticationMethod = {}));
|
|
16
16
|
//# sourceMappingURL=authentication-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-protocol.js","sourceRoot":"","sources":["../../../src/node/authentication/authentication-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,uCAAe,CAAA;AACnB,CAAC,EAJW,oBAAoB,
|
|
1
|
+
{"version":3,"file":"authentication-protocol.js","sourceRoot":"","sources":["../../../src/node/authentication/authentication-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,uCAAe,CAAA;AACnB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,6CAAe,CAAA;IACf,2CAAa,CAAA;IACb,2CAAa,CAAA;AACjB,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC"}
|
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./authentication-protocol"), exports);
|
|
17
|
+
__exportStar(require("./authentication-protocol"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/authentication/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/authentication/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -8,10 +8,10 @@ var AuthorizationGrantType;
|
|
|
8
8
|
AuthorizationGrantType["RefreshToken"] = "refresh_token";
|
|
9
9
|
AuthorizationGrantType["ClientCredentials"] = "client_credentials";
|
|
10
10
|
AuthorizationGrantType["Password"] = "password";
|
|
11
|
-
})(AuthorizationGrantType
|
|
11
|
+
})(AuthorizationGrantType || (exports.AuthorizationGrantType = AuthorizationGrantType = {}));
|
|
12
12
|
var AuthorizationResponseType;
|
|
13
13
|
(function (AuthorizationResponseType) {
|
|
14
14
|
AuthorizationResponseType["Code"] = "code";
|
|
15
15
|
AuthorizationResponseType["Token"] = "token";
|
|
16
|
-
})(AuthorizationResponseType
|
|
16
|
+
})(AuthorizationResponseType || (exports.AuthorizationResponseType = AuthorizationResponseType = {}));
|
|
17
17
|
//# sourceMappingURL=authorization-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-protocol.js","sourceRoot":"","sources":["../../../src/node/authorization/authorization-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAC9B,kEAAwC,CAAA;IACxC,+CAAqB,CAAA;IACrB,wDAA8B,CAAA;IAC9B,kEAAwC,CAAA;IACxC,+CAAqB,CAAA;AACzB,CAAC,EANW,sBAAsB,
|
|
1
|
+
{"version":3,"file":"authorization-protocol.js","sourceRoot":"","sources":["../../../src/node/authorization/authorization-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAC9B,kEAAwC,CAAA;IACxC,+CAAqB,CAAA;IACrB,wDAA8B,CAAA;IAC9B,kEAAwC,CAAA;IACxC,+CAAqB,CAAA;AACzB,CAAC,EANW,sBAAsB,sCAAtB,sBAAsB,QAMjC;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,0CAAa,CAAA;IACb,4CAAe,CAAA;AACnB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./authorization-protocol"), exports);
|
|
17
|
+
__exportStar(require("./authorization-protocol"), exports);
|
|
5
18
|
//# 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,2DAAyC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
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
|
+
};
|
|
3
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
9
|
exports.AccessTokenResponseConverter = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
10
|
const token_1 = require("../token");
|
|
7
11
|
const endpoint_protocol_1 = require("./endpoint-protocol");
|
|
8
12
|
const core_1 = require("@celljs/core");
|
|
9
|
-
let AccessTokenResponseConverter =
|
|
13
|
+
let AccessTokenResponseConverter = class AccessTokenResponseConverter {
|
|
10
14
|
convert(tokenResponse) {
|
|
11
15
|
const accessToken = tokenResponse[endpoint_protocol_1.OAuth2ParameterNames.ACCESS_TOKEN];
|
|
12
16
|
const tokenType = this.getAccessTokenType(tokenResponse);
|
|
@@ -58,8 +62,8 @@ let AccessTokenResponseConverter = AccessTokenResponseConverter_1 = class Access
|
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
|
-
AccessTokenResponseConverter = AccessTokenResponseConverter_1 = tslib_1.__decorate([
|
|
62
|
-
(0, core_1.Component)(AccessTokenResponseConverter_1)
|
|
63
|
-
], AccessTokenResponseConverter);
|
|
64
65
|
exports.AccessTokenResponseConverter = AccessTokenResponseConverter;
|
|
66
|
+
exports.AccessTokenResponseConverter = AccessTokenResponseConverter = __decorate([
|
|
67
|
+
(0, core_1.Component)(AccessTokenResponseConverter)
|
|
68
|
+
], AccessTokenResponseConverter);
|
|
65
69
|
//# sourceMappingURL=access-token-response-converter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-token-response-converter.js","sourceRoot":"","sources":["../../../src/node/endpoint/access-token-response-converter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"access-token-response-converter.js","sourceRoot":"","sources":["../../../src/node/endpoint/access-token-response-converter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oCAAqC;AACrC,2DAAgF;AAChF,uCAAyC;AAGlC,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACrC,OAAO,CAAC,aAAwC;QAC5C,MAAM,WAAW,GAAG,aAAa,CAAC,wCAAoB,CAAC,YAAY,CAAC,CAAC;QACrE,MAAM,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,aAAa,CAAC,wCAAoB,CAAC,aAAa,CAAC,CAAC;QAEvE,MAAM,eAAe,GAAG;YACpB,wCAAoB,CAAC,YAAY;YACjC,wCAAoB,CAAC,UAAU;YAC/B,wCAAoB,CAAC,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QACpE,CAAC;QACD,OAAO,CAAC,CAAC;IACb,CAAC;IAES,kBAAkB,CAAC,aAAyC;QAClE,IAAI,iBAAS,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,wCAAoB,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YAC1G,OAAO,iBAAS,CAAC,MAAM,CAAC;QAC5B,CAAC;IACL,CAAC;CACJ,CAAA;AA1DY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,gBAAS,EAAC,4BAA4B,CAAC;GAC3B,4BAA4B,CA0DxC"}
|
|
@@ -75,7 +75,7 @@ var OAuth2ParameterNames;
|
|
|
75
75
|
* Non-standard parameter (used internally).
|
|
76
76
|
*/
|
|
77
77
|
OAuth2ParameterNames.REGISTRATION_ID = 'registration_id';
|
|
78
|
-
})(OAuth2ParameterNames
|
|
78
|
+
})(OAuth2ParameterNames || (exports.OAuth2ParameterNames = OAuth2ParameterNames = {}));
|
|
79
79
|
var PkceParameterNames;
|
|
80
80
|
(function (PkceParameterNames) {
|
|
81
81
|
/**
|
|
@@ -90,7 +90,7 @@ var PkceParameterNames;
|
|
|
90
90
|
* `code_verifier`- used in Token Request.
|
|
91
91
|
*/
|
|
92
92
|
PkceParameterNames.CODE_VERIFIER = 'code_verifier';
|
|
93
|
-
})(PkceParameterNames
|
|
93
|
+
})(PkceParameterNames || (exports.PkceParameterNames = PkceParameterNames = {}));
|
|
94
94
|
class AccessTokenResponse {
|
|
95
95
|
}
|
|
96
96
|
exports.AccessTokenResponse = AccessTokenResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint-protocol.js","sourceRoot":"","sources":["../../../src/node/endpoint/endpoint-protocol.ts"],"names":[],"mappings":";;;AAGA,IAAiB,oBAAoB,CA2FpC;AA3FD,WAAiB,oBAAoB;IACjC;;OAEG;IACU,+BAAU,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACU,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;IAE7B;;OAEG;IACU,yBAAI,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACU,iCAAY,GAAG,cAAc,CAAC;IAE3C;;OAEG;IACU,+BAAU,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACU,+BAAU,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACU,kCAAa,GAAG,eAAe,CAAC;IAE7C;;OAEG;IACU,6BAAQ,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACU,6BAAQ,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACU,0BAAK,GAAG,OAAO,CAAC;IAE7B;;OAEG;IACU,sCAAiB,GAAG,mBAAmB,CAAC;IAErD;;OAEG;IACU,8BAAS,GAAG,WAAW,CAAC;IAErC;;OAEG;IACU,oCAAe,GAAG,iBAAiB,CAAC;AAErD,CAAC,EA3FgB,oBAAoB,oCAApB,oBAAoB,QA2FpC;AAED,IAAiB,kBAAkB,CAgBlC;AAhBD,WAAiB,kBAAkB;IAE/B;;OAEG;IACU,iCAAc,GAAG,gBAAgB,CAAC;IAE/C;;OAEG;IACU,wCAAqB,GAAG,uBAAuB,CAAC;IAE7D;;OAEG;IACU,gCAAa,GAAG,eAAe,CAAC;AACjD,CAAC,EAhBgB,kBAAkB,kCAAlB,kBAAkB,QAgBlC;AAiCD,MAAa,mBAAmB;CAI/B;AAJD,kDAIC"}
|
|
@@ -1,6 +1,19 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./access-token-response-converter"), exports);
|
|
17
|
+
__exportStar(require("./endpoint-protocol"), exports);
|
|
18
|
+
__exportStar(require("./access-token-response-converter"), exports);
|
|
6
19
|
//# 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,sDAAoC;AACpC,oEAAkD"}
|
|
@@ -81,5 +81,5 @@ var OAuth2ErrorCodes;
|
|
|
81
81
|
* `unsupported_grant_type` - The authorization grant type is not supported by the authorization server.
|
|
82
82
|
*/
|
|
83
83
|
OAuth2ErrorCodes["UNSUPPORTED_GRANT_TYPE"] = "unsupported_grant_type";
|
|
84
|
-
})(OAuth2ErrorCodes
|
|
84
|
+
})(OAuth2ErrorCodes || (exports.OAuth2ErrorCodes = OAuth2ErrorCodes = {}));
|
|
85
85
|
//# sourceMappingURL=error-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-protocol.js","sourceRoot":"","sources":["../../../src/node/error/error-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBA4FX;AA5FD,WAAY,gBAAgB;IAExB;;;;OAIG;IACH,uDAAmC,CAAA;IAEnC;;;OAGG;IACH,+DAA2C,CAAA;IAE3C;;OAEG;IACH,mDAA+B,CAAA;IAE/B;;;OAGG;IACH,2EAAuD,CAAA;IAEvD;;;OAGG;IACH,mDAA+B,CAAA;IAE/B;;;;;;;;OAQG;IACH,6DAAyC,CAAA;IAEzC;;;;;;;OAOG;IACH,mDAA+B,CAAA;IAE/B;;;;;OAKG;IACH,iDAA6B,CAAA;IAE7B;;;;;OAKG;IACH,uEAAmD,CAAA;IAEnD;;;;;;;;OAQG;IACH,qDAAiC,CAAA;IAEjC;;;;OAIG;IACH,mDAA+B,CAAA;IAE/B;;OAEG;IACH,qEAAiD,CAAA;AAErD,CAAC,EA5FW,gBAAgB,
|
|
1
|
+
{"version":3,"file":"error-protocol.js","sourceRoot":"","sources":["../../../src/node/error/error-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBA4FX;AA5FD,WAAY,gBAAgB;IAExB;;;;OAIG;IACH,uDAAmC,CAAA;IAEnC;;;OAGG;IACH,+DAA2C,CAAA;IAE3C;;OAEG;IACH,mDAA+B,CAAA;IAE/B;;;OAGG;IACH,2EAAuD,CAAA;IAEvD;;;OAGG;IACH,mDAA+B,CAAA;IAE/B;;;;;;;;OAQG;IACH,6DAAyC,CAAA;IAEzC;;;;;;;OAOG;IACH,mDAA+B,CAAA;IAE/B;;;;;OAKG;IACH,iDAA6B,CAAA;IAE7B;;;;;OAKG;IACH,uEAAmD,CAAA;IAEnD;;;;;;;;OAQG;IACH,qDAAiC,CAAA;IAEjC;;;;OAIG;IACH,mDAA+B,CAAA;IAE/B;;OAEG;IACH,qEAAiD,CAAA;AAErD,CAAC,EA5FW,gBAAgB,gCAAhB,gBAAgB,QA4F3B"}
|
package/lib/node/error/index.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./error-protocol"), exports);
|
|
17
|
+
__exportStar(require("./error"), exports);
|
|
18
|
+
__exportStar(require("./error-protocol"), exports);
|
|
6
19
|
//# 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,0CAAwB;AACxB,mDAAiC"}
|
package/lib/node/index.js
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
tslib_1.__exportStar(require("./error"), exports);
|
|
17
|
+
__exportStar(require("./authentication"), exports);
|
|
18
|
+
__exportStar(require("./authorization"), exports);
|
|
19
|
+
__exportStar(require("./endpoint"), exports);
|
|
20
|
+
__exportStar(require("./oidc"), exports);
|
|
21
|
+
__exportStar(require("./token"), exports);
|
|
22
|
+
__exportStar(require("./error"), exports);
|
|
10
23
|
//# 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,mDAAiC;AACjC,kDAAgC;AAChC,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB"}
|
package/lib/node/module.d.ts
CHANGED
package/lib/node/oidc/index.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./oidc-protocol"), exports);
|
|
17
|
+
__exportStar(require("./oidc-protocol"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/oidc/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/oidc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -25,7 +25,7 @@ var OidcScopes;
|
|
|
25
25
|
* The `phone`scope requests access to the `phone_number`and `phone_number_verified`claims.
|
|
26
26
|
*/
|
|
27
27
|
OidcScopes.PHONE = 'phone';
|
|
28
|
-
})(OidcScopes
|
|
28
|
+
})(OidcScopes || (exports.OidcScopes = OidcScopes = {}));
|
|
29
29
|
var OidcParameterNames;
|
|
30
30
|
(function (OidcParameterNames) {
|
|
31
31
|
/**
|
|
@@ -36,7 +36,7 @@ var OidcParameterNames;
|
|
|
36
36
|
* `nonce`- used in the Authentication Request.
|
|
37
37
|
*/
|
|
38
38
|
OidcParameterNames.NONCE = 'nonce';
|
|
39
|
-
})(OidcParameterNames
|
|
39
|
+
})(OidcParameterNames || (exports.OidcParameterNames = OidcParameterNames = {}));
|
|
40
40
|
var StandardClaimNames;
|
|
41
41
|
(function (StandardClaimNames) {
|
|
42
42
|
/**
|
|
@@ -119,5 +119,5 @@ var StandardClaimNames;
|
|
|
119
119
|
* `updated_at`- the time the user's information was last updated
|
|
120
120
|
*/
|
|
121
121
|
StandardClaimNames.UPDATED_AT = 'updated_at';
|
|
122
|
-
})(StandardClaimNames
|
|
122
|
+
})(StandardClaimNames || (exports.StandardClaimNames = StandardClaimNames = {}));
|
|
123
123
|
//# sourceMappingURL=oidc-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oidc-protocol.js","sourceRoot":"","sources":["../../../src/node/oidc/oidc-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAiB,UAAU,CA6B1B;AA7BD,WAAiB,UAAU;IAEvB;;OAEG;IACU,iBAAM,GAAG,QAAQ,CAAC;IAE/B;;;;OAIG;IACU,kBAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,gBAAK,GAAG,OAAO,CAAC;IAE7B;;OAEG;IACU,kBAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,gBAAK,GAAG,OAAO,CAAC;AAEjC,CAAC,EA7BgB,UAAU,
|
|
1
|
+
{"version":3,"file":"oidc-protocol.js","sourceRoot":"","sources":["../../../src/node/oidc/oidc-protocol.ts"],"names":[],"mappings":";;;AAAA,IAAiB,UAAU,CA6B1B;AA7BD,WAAiB,UAAU;IAEvB;;OAEG;IACU,iBAAM,GAAG,QAAQ,CAAC;IAE/B;;;;OAIG;IACU,kBAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,gBAAK,GAAG,OAAO,CAAC;IAE7B;;OAEG;IACU,kBAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,gBAAK,GAAG,OAAO,CAAC;AAEjC,CAAC,EA7BgB,UAAU,0BAAV,UAAU,QA6B1B;AAED,IAAiB,kBAAkB,CAYlC;AAZD,WAAiB,kBAAkB;IAE/B;;OAEG;IACU,2BAAQ,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACU,wBAAK,GAAG,OAAO,CAAC;AAEjC,CAAC,EAZgB,kBAAkB,kCAAlB,kBAAkB,QAYlC;AAED,IAAiB,kBAAkB,CAsGlC;AAtGD,WAAiB,kBAAkB;IAE/B;;OAEG;IACU,sBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,uBAAI,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACU,6BAAU,GAAG,YAAY,CAAC;IAEvC;;OAEG;IACU,8BAAW,GAAG,aAAa,CAAC;IAEzC;;OAEG;IACU,8BAAW,GAAG,aAAa,CAAC;IAEzC;;OAEG;IACU,2BAAQ,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACU,qCAAkB,GAAG,oBAAoB,CAAC;IAEvD;;OAEG;IACU,0BAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,0BAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,0BAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,wBAAK,GAAG,OAAO,CAAC;IAE7B;;OAEG;IACU,iCAAc,GAAG,gBAAgB,CAAC;IAE/C;;OAEG;IACU,yBAAM,GAAG,QAAQ,CAAC;IAE/B;;OAEG;IACU,4BAAS,GAAG,WAAW,CAAC;IAErC;;OAEG;IACU,2BAAQ,GAAG,UAAU,CAAC;IAEnC;;OAEG;IACU,yBAAM,GAAG,QAAQ,CAAC;IAE/B;;OAEG;IACU,+BAAY,GAAG,cAAc,CAAC;IAE3C;;OAEG;IACU,wCAAqB,GAAG,uBAAuB,CAAC;IAE7D;;OAEG;IACU,0BAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,6BAAU,GAAG,YAAY,CAAC;AAE3C,CAAC,EAtGgB,kBAAkB,kCAAlB,kBAAkB,QAsGlC"}
|
package/lib/node/token/index.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./token-protocol"), exports);
|
|
17
|
+
__exportStar(require("./token-protocol"), exports);
|
|
5
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/token/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/token/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -4,7 +4,7 @@ exports.IdTokenClaimNames = exports.TokenType = void 0;
|
|
|
4
4
|
var TokenType;
|
|
5
5
|
(function (TokenType) {
|
|
6
6
|
TokenType["Bearer"] = "Bearer";
|
|
7
|
-
})(TokenType
|
|
7
|
+
})(TokenType || (exports.TokenType = TokenType = {}));
|
|
8
8
|
var IdTokenClaimNames;
|
|
9
9
|
(function (IdTokenClaimNames) {
|
|
10
10
|
/**
|
|
@@ -56,5 +56,5 @@ var IdTokenClaimNames;
|
|
|
56
56
|
* `c_hash`- the Authorization Code hash value
|
|
57
57
|
*/
|
|
58
58
|
IdTokenClaimNames.C_HASH = 'c_hash';
|
|
59
|
-
})(IdTokenClaimNames
|
|
59
|
+
})(IdTokenClaimNames || (exports.IdTokenClaimNames = IdTokenClaimNames = {}));
|
|
60
60
|
//# sourceMappingURL=token-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-protocol.js","sourceRoot":"","sources":["../../../src/node/token/token-protocol.ts"],"names":[],"mappings":";;;AAKA,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,8BAAiB,CAAA;AACrB,CAAC,EAFW,SAAS,
|
|
1
|
+
{"version":3,"file":"token-protocol.js","sourceRoot":"","sources":["../../../src/node/token/token-protocol.ts"],"names":[],"mappings":";;;AAKA,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,8BAAiB,CAAA;AACrB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAUD,IAAiB,iBAAiB,CA+DjC;AA/DD,WAAiB,iBAAiB;IAE9B;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,2BAAS,GAAG,WAAW,CAAC;IAErC;;;OAGG;IACU,uBAAK,GAAG,OAAO,CAAC;IAE7B;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,qBAAG,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACU,yBAAO,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACU,wBAAM,GAAG,QAAQ,CAAC;AAEnC,CAAC,EA/DgB,iBAAiB,iCAAjB,iBAAiB,QA+DjC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/oauth2-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/node/index.js",
|
|
6
6
|
"typings": "lib/node/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@celljs/core": "3.
|
|
9
|
-
"@celljs/security": "3.
|
|
10
|
-
"@celljs/web": "3.
|
|
8
|
+
"@celljs/core": "3.6.0",
|
|
9
|
+
"@celljs/security": "3.6.0",
|
|
10
|
+
"@celljs/web": "3.6.0",
|
|
11
11
|
"tslib": "^2.8.0"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"test": "cell-component test:js"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@celljs/component": "3.
|
|
41
|
+
"@celljs/component": "3.6.0",
|
|
42
42
|
"@types/crypto-js": "^3.1.47",
|
|
43
43
|
"@types/jexl": "^2.1.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "47d94c6b1b70ebda52840108908a42dcb75ed809"
|
|
46
46
|
}
|