@celljs/oauth2-core 3.0.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/LICENSE +21 -0
- package/README.md +1 -0
- package/cell.yml +0 -0
- package/lib/node/authentication/authentication-protocol.d.ts +11 -0
- package/lib/node/authentication/authentication-protocol.d.ts.map +1 -0
- package/lib/node/authentication/authentication-protocol.js +16 -0
- package/lib/node/authentication/authentication-protocol.js.map +1 -0
- package/lib/node/authentication/index.d.ts +2 -0
- package/lib/node/authentication/index.d.ts.map +1 -0
- package/lib/node/authentication/index.js +18 -0
- package/lib/node/authentication/index.js.map +1 -0
- package/lib/node/authorization/authorization-protocol.d.ts +12 -0
- package/lib/node/authorization/authorization-protocol.d.ts.map +1 -0
- package/lib/node/authorization/authorization-protocol.js +17 -0
- package/lib/node/authorization/authorization-protocol.js.map +1 -0
- package/lib/node/authorization/index.d.ts +2 -0
- package/lib/node/authorization/index.d.ts.map +1 -0
- package/lib/node/authorization/index.js +18 -0
- package/lib/node/authorization/index.js.map +1 -0
- package/lib/node/endpoint/access-token-response-converter.d.ts +17 -0
- package/lib/node/endpoint/access-token-response-converter.d.ts.map +1 -0
- package/lib/node/endpoint/access-token-response-converter.js +70 -0
- package/lib/node/endpoint/access-token-response-converter.js.map +1 -0
- package/lib/node/endpoint/endpoint-protocol.d.ts +129 -0
- package/lib/node/endpoint/endpoint-protocol.d.ts.map +1 -0
- package/lib/node/endpoint/endpoint-protocol.js +97 -0
- package/lib/node/endpoint/endpoint-protocol.js.map +1 -0
- package/lib/node/endpoint/index.d.ts +3 -0
- package/lib/node/endpoint/index.d.ts.map +1 -0
- package/lib/node/endpoint/index.js +19 -0
- package/lib/node/endpoint/index.js.map +1 -0
- package/lib/node/error/error-protocol.d.ts +81 -0
- package/lib/node/error/error-protocol.d.ts.map +1 -0
- package/lib/node/error/error-protocol.js +85 -0
- package/lib/node/error/error-protocol.js.map +1 -0
- package/lib/node/error/error.d.ts +12 -0
- package/lib/node/error/error.d.ts.map +1 -0
- package/lib/node/error/error.js +20 -0
- package/lib/node/error/error.js.map +1 -0
- package/lib/node/error/index.d.ts +3 -0
- package/lib/node/error/index.d.ts.map +1 -0
- package/lib/node/error/index.js +19 -0
- package/lib/node/error/index.js.map +1 -0
- package/lib/node/index.d.ts +7 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +23 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/module.d.ts +4 -0
- package/lib/node/module.d.ts.map +1 -0
- package/lib/node/module.js +6 -0
- package/lib/node/module.js.map +1 -0
- package/lib/node/oidc/index.d.ts +2 -0
- package/lib/node/oidc/index.d.ts.map +1 -0
- package/lib/node/oidc/index.js +18 -0
- package/lib/node/oidc/index.js.map +1 -0
- package/lib/node/oidc/oidc-protocol.d.ts +117 -0
- package/lib/node/oidc/oidc-protocol.d.ts.map +1 -0
- package/lib/node/oidc/oidc-protocol.js +123 -0
- package/lib/node/oidc/oidc-protocol.js.map +1 -0
- package/lib/node/token/index.d.ts +2 -0
- package/lib/node/token/index.d.ts.map +1 -0
- package/lib/node/token/index.js +18 -0
- package/lib/node/token/index.js.map +1 -0
- package/lib/node/token/token-protocol.d.ts +66 -0
- package/lib/node/token/token-protocol.d.ts.map +1 -0
- package/lib/node/token/token-protocol.js +60 -0
- package/lib/node/token/token-protocol.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +4 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +45 -0
- package/src/node/authentication/authentication-protocol.ts +11 -0
- package/src/node/authentication/index.ts +1 -0
- package/src/node/authorization/authorization-protocol.ts +12 -0
- package/src/node/authorization/index.ts +1 -0
- package/src/node/endpoint/access-token-response-converter.ts +64 -0
- package/src/node/endpoint/endpoint-protocol.ts +150 -0
- package/src/node/endpoint/index.ts +2 -0
- package/src/node/error/error-protocol.ts +93 -0
- package/src/node/error/error.ts +19 -0
- package/src/node/error/index.ts +2 -0
- package/src/node/index.ts +6 -0
- package/src/node/module.ts +4 -0
- package/src/node/oidc/index.ts +1 -0
- package/src/node/oidc/oidc-protocol.ts +148 -0
- package/src/node/token/index.ts +1 -0
- package/src/node/token/token-protocol.ts +81 -0
- package/src/package.spec.ts +4 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAuth2ErrorCodes = void 0;
|
|
4
|
+
var OAuth2ErrorCodes;
|
|
5
|
+
(function (OAuth2ErrorCodes) {
|
|
6
|
+
/**
|
|
7
|
+
* {@code invalid_request} - The request is missing a required parameter,
|
|
8
|
+
* includes an invalid parameter value,
|
|
9
|
+
* includes a parameter more than once, or is otherwise malformed.
|
|
10
|
+
*/
|
|
11
|
+
OAuth2ErrorCodes["INVALID_REQUEST"] = "invalid_request";
|
|
12
|
+
/**
|
|
13
|
+
* {@code unauthorized_client} - The client is not authorized to request
|
|
14
|
+
* an authorization code or access token using this method.
|
|
15
|
+
*/
|
|
16
|
+
OAuth2ErrorCodes["UNAUTHORIZED_CLIENT"] = "unauthorized_client";
|
|
17
|
+
/**
|
|
18
|
+
* {@code access_denied} - The resource owner or authorization server denied the request.
|
|
19
|
+
*/
|
|
20
|
+
OAuth2ErrorCodes["ACCESS_DENIED"] = "access_denied";
|
|
21
|
+
/**
|
|
22
|
+
* {@code unsupported_response_type} - The authorization server does not support
|
|
23
|
+
* obtaining an authorization code or access token using this method.
|
|
24
|
+
*/
|
|
25
|
+
OAuth2ErrorCodes["UNSUPPORTED_RESPONSE_TYPE"] = "unsupported_response_type";
|
|
26
|
+
/**
|
|
27
|
+
* {@code invalid_scope} - The requested scope is invalid, unknown, malformed or
|
|
28
|
+
* exceeds the scope granted by the resource owner.
|
|
29
|
+
*/
|
|
30
|
+
OAuth2ErrorCodes["INVALID_SCOPE"] = "invalid_scope";
|
|
31
|
+
/**
|
|
32
|
+
* {@code insufficient_scope} - The request requires higher privileges than
|
|
33
|
+
* provided by the access token.
|
|
34
|
+
* The resource server SHOULD respond with the HTTP 403 (Forbidden)
|
|
35
|
+
* status code and MAY include the 'scope' attribute with the scope
|
|
36
|
+
* necessary to access the protected resource.
|
|
37
|
+
*
|
|
38
|
+
* @see <a href='https://tools.ietf.org/html/rfc6750#section-3.1'>RFC-6750 - Section 3.1 - Error Codes</a>
|
|
39
|
+
*/
|
|
40
|
+
OAuth2ErrorCodes["INSUFFICIENT_SCOPE"] = "insufficient_scope";
|
|
41
|
+
/**
|
|
42
|
+
* {@code invalid_token} - The access token provided is expired, revoked,
|
|
43
|
+
* malformed, or invalid for other reasons.
|
|
44
|
+
* The resource SHOULD respond with the HTTP 401 (Unauthorized) status code.
|
|
45
|
+
* The client MAY request a new access token and retry the protected resource request.
|
|
46
|
+
*
|
|
47
|
+
* @see <a href='https://tools.ietf.org/html/rfc6750#section-3.1'>RFC-6750 - Section 3.1 - Error Codes</a>
|
|
48
|
+
*/
|
|
49
|
+
OAuth2ErrorCodes["INVALID_TOKEN"] = "invalid_token";
|
|
50
|
+
/**
|
|
51
|
+
* {@code server_error} - The authorization server encountered an
|
|
52
|
+
* unexpected condition that prevented it from fulfilling the request.
|
|
53
|
+
* (This error code is needed because a 500 Internal Server Error HTTP status code
|
|
54
|
+
* cannot be returned to the client via a HTTP redirect.)
|
|
55
|
+
*/
|
|
56
|
+
OAuth2ErrorCodes["SERVER_ERROR"] = "server_error";
|
|
57
|
+
/**
|
|
58
|
+
* {@code temporarily_unavailable} - The authorization server is currently unable
|
|
59
|
+
* to handle the request due to a temporary overloading or maintenance of the server.
|
|
60
|
+
* (This error code is needed because a 503 Service Unavailable HTTP status code
|
|
61
|
+
* cannot be returned to the client via an HTTP redirect.)
|
|
62
|
+
*/
|
|
63
|
+
OAuth2ErrorCodes["TEMPORARILY_UNAVAILABLE"] = "temporarily_unavailable";
|
|
64
|
+
/**
|
|
65
|
+
* {@code invalid_client} - Client authentication failed (e.g., unknown client,
|
|
66
|
+
* no client authentication included, or unsupported authentication method).
|
|
67
|
+
* The authorization server MAY return a HTTP 401 (Unauthorized) status code
|
|
68
|
+
* to indicate which HTTP authentication schemes are supported.
|
|
69
|
+
* If the client attempted to authenticate via the "Authorization" request header field,
|
|
70
|
+
* the authorization server MUST respond with a HTTP 401 (Unauthorized) status code and
|
|
71
|
+
* include the "WWW-Authenticate" response header field matching the authentication scheme used by the client.
|
|
72
|
+
*/
|
|
73
|
+
OAuth2ErrorCodes["INVALID_CLIENT"] = "invalid_client";
|
|
74
|
+
/**
|
|
75
|
+
* {@code invalid_grant} - The provided authorization grant
|
|
76
|
+
* (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked,
|
|
77
|
+
* does not match the redirection URI used in the authorization request, or was issued to another client.
|
|
78
|
+
*/
|
|
79
|
+
OAuth2ErrorCodes["INVALID_GRANT"] = "invalid_grant";
|
|
80
|
+
/**
|
|
81
|
+
* {@code unsupported_grant_type} - The authorization grant type is not supported by the authorization server.
|
|
82
|
+
*/
|
|
83
|
+
OAuth2ErrorCodes["UNSUPPORTED_GRANT_TYPE"] = "unsupported_grant_type";
|
|
84
|
+
})(OAuth2ErrorCodes = exports.OAuth2ErrorCodes || (exports.OAuth2ErrorCodes = {}));
|
|
85
|
+
//# sourceMappingURL=error-protocol.js.map
|
|
@@ -0,0 +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,GAAhB,wBAAgB,KAAhB,wBAAgB,QA4F3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomError } from '@celljs/core';
|
|
2
|
+
import { OAuth2Error } from '../endpoint';
|
|
3
|
+
import { AuthenticationError } from '@celljs/security/lib/node';
|
|
4
|
+
export declare class OAuth2AuthorizationError extends CustomError {
|
|
5
|
+
oauth2Error: OAuth2Error;
|
|
6
|
+
constructor(oauth2Error: OAuth2Error, error?: Error);
|
|
7
|
+
}
|
|
8
|
+
export declare class OAuth2AuthenticationError extends AuthenticationError {
|
|
9
|
+
oauth2Error: OAuth2Error;
|
|
10
|
+
constructor(oauth2Error: OAuth2Error, error?: Error);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/node/error/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,qBAAa,wBAAyB,SAAQ,WAAW;IAElC,WAAW,EAAE,WAAW;gBAAxB,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,KAAK;CAI7D;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;IAE3C,WAAW,EAAE,WAAW;gBAAxB,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,KAAK;CAI7D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAuth2AuthenticationError = exports.OAuth2AuthorizationError = void 0;
|
|
4
|
+
const core_1 = require("@celljs/core");
|
|
5
|
+
const node_1 = require("@celljs/security/lib/node");
|
|
6
|
+
class OAuth2AuthorizationError extends core_1.CustomError {
|
|
7
|
+
constructor(oauth2Error, error) {
|
|
8
|
+
super(error ? error.message : oauth2Error.description);
|
|
9
|
+
this.oauth2Error = oauth2Error;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OAuth2AuthorizationError = OAuth2AuthorizationError;
|
|
13
|
+
class OAuth2AuthenticationError extends node_1.AuthenticationError {
|
|
14
|
+
constructor(oauth2Error, error) {
|
|
15
|
+
super(error ? error.message : oauth2Error.description);
|
|
16
|
+
this.oauth2Error = oauth2Error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.OAuth2AuthenticationError = OAuth2AuthenticationError;
|
|
20
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/node/error/error.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAE3C,oDAAgE;AAEhE,MAAa,wBAAyB,SAAQ,kBAAW;IAErD,YAAmB,WAAwB,EAAE,KAAa;QACtD,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QADxC,gBAAW,GAAX,WAAW,CAAa;IAE3C,CAAC;CAEJ;AAND,4DAMC;AAED,MAAa,yBAA0B,SAAQ,0BAAmB;IAE9D,YAAmB,WAAwB,EAAE,KAAa;QACtD,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QADxC,gBAAW,GAAX,WAAW,CAAa;IAE3C,CAAC;CAEJ;AAND,8DAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./error"), exports);
|
|
18
|
+
__exportStar(require("./error-protocol"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/error/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/node/module.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,CAAC;;AAEjB,wBAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/node/module.ts"],"names":[],"mappings":";;AAAA,uCAAwC;AACxC,mBAAiB;AAEjB,kBAAe,IAAA,eAAQ,GAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/oidc/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./oidc-protocol"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/oidc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare namespace OidcScopes {
|
|
2
|
+
/**
|
|
3
|
+
* The {@code openid} scope is required for OpenID Connect Authentication Requests.
|
|
4
|
+
*/
|
|
5
|
+
const OPENID = "openid";
|
|
6
|
+
/**
|
|
7
|
+
* The {@code profile} scope requests access to the default profile claims, which are:
|
|
8
|
+
* {@code name, family_name, given_name, middle_name, nickname, preferred_username,
|
|
9
|
+
* profile, picture, website, gender, birthdate, zoneinfo, locale, updated_at}.
|
|
10
|
+
*/
|
|
11
|
+
const PROFILE = "profile";
|
|
12
|
+
/**
|
|
13
|
+
* The {@code email} scope requests access to the {@code email} and {@code email_verified} claims.
|
|
14
|
+
*/
|
|
15
|
+
const EMAIL = "email";
|
|
16
|
+
/**
|
|
17
|
+
* The {@code address} scope requests access to the {@code address} claim.
|
|
18
|
+
*/
|
|
19
|
+
const ADDRESS = "address";
|
|
20
|
+
/**
|
|
21
|
+
* The {@code phone} scope requests access to the {@code phone_number} and {@code phone_number_verified} claims.
|
|
22
|
+
*/
|
|
23
|
+
const PHONE = "phone";
|
|
24
|
+
}
|
|
25
|
+
export declare namespace OidcParameterNames {
|
|
26
|
+
/**
|
|
27
|
+
* {@code id_token} - used in the Access Token Response.
|
|
28
|
+
*/
|
|
29
|
+
const ID_TOKEN = "id_token";
|
|
30
|
+
/**
|
|
31
|
+
* {@code nonce} - used in the Authentication Request.
|
|
32
|
+
*/
|
|
33
|
+
const NONCE = "nonce";
|
|
34
|
+
}
|
|
35
|
+
export declare namespace StandardClaimNames {
|
|
36
|
+
/**
|
|
37
|
+
* {@code sub} - the Subject identifier
|
|
38
|
+
*/
|
|
39
|
+
const SUB = "sub";
|
|
40
|
+
/**
|
|
41
|
+
* {@code name} - the user's full name
|
|
42
|
+
*/
|
|
43
|
+
const NAME = "name";
|
|
44
|
+
/**
|
|
45
|
+
* {@code given_name} - the user's given name(s) or first name(s)
|
|
46
|
+
*/
|
|
47
|
+
const GIVEN_NAME = "given_name";
|
|
48
|
+
/**
|
|
49
|
+
* {@code family_name} - the user's surname(s) or last name(s)
|
|
50
|
+
*/
|
|
51
|
+
const FAMILY_NAME = "family_name";
|
|
52
|
+
/**
|
|
53
|
+
* {@code middle_name} - the user's middle name(s)
|
|
54
|
+
*/
|
|
55
|
+
const MIDDLE_NAME = "middle_name";
|
|
56
|
+
/**
|
|
57
|
+
* {@code nickname} - the user's nick name that may or may not be the same as the {@code given_name}
|
|
58
|
+
*/
|
|
59
|
+
const NICKNAME = "nickname";
|
|
60
|
+
/**
|
|
61
|
+
* {@code preferred_username} - the preferred username that the user wishes to be referred to
|
|
62
|
+
*/
|
|
63
|
+
const PREFERRED_USERNAME = "preferred_username";
|
|
64
|
+
/**
|
|
65
|
+
* {@code profile} - the URL of the user's profile page
|
|
66
|
+
*/
|
|
67
|
+
const PROFILE = "profile";
|
|
68
|
+
/**
|
|
69
|
+
* {@code picture} - the URL of the user's profile picture
|
|
70
|
+
*/
|
|
71
|
+
const PICTURE = "picture";
|
|
72
|
+
/**
|
|
73
|
+
* {@code website} - the URL of the user's web page or blog
|
|
74
|
+
*/
|
|
75
|
+
const WEBSITE = "website";
|
|
76
|
+
/**
|
|
77
|
+
* {@code email} - the user's preferred e-mail address
|
|
78
|
+
*/
|
|
79
|
+
const EMAIL = "email";
|
|
80
|
+
/**
|
|
81
|
+
* {@code email_verified} - {@code true} if the user's e-mail address has been verified, otherwise {@code false}
|
|
82
|
+
*/
|
|
83
|
+
const EMAIL_VERIFIED = "email_verified";
|
|
84
|
+
/**
|
|
85
|
+
* {@code gender} - the user's gender
|
|
86
|
+
*/
|
|
87
|
+
const GENDER = "gender";
|
|
88
|
+
/**
|
|
89
|
+
* {@code birthdate} - the user's birth date
|
|
90
|
+
*/
|
|
91
|
+
const BIRTHDATE = "birthdate";
|
|
92
|
+
/**
|
|
93
|
+
* {@code zoneinfo} - the user's time zone
|
|
94
|
+
*/
|
|
95
|
+
const ZONEINFO = "zoneinfo";
|
|
96
|
+
/**
|
|
97
|
+
* {@code locale} - the user's locale
|
|
98
|
+
*/
|
|
99
|
+
const LOCALE = "locale";
|
|
100
|
+
/**
|
|
101
|
+
* {@code phone_number} - the user's preferred phone number
|
|
102
|
+
*/
|
|
103
|
+
const PHONE_NUMBER = "phone_number";
|
|
104
|
+
/**
|
|
105
|
+
* {@code phone_number_verified} - {@code true} if the user's phone number has been verified, otherwise {@code false}
|
|
106
|
+
*/
|
|
107
|
+
const PHONE_NUMBER_VERIFIED = "phone_number_verified";
|
|
108
|
+
/**
|
|
109
|
+
* {@code address} - the user's preferred postal address
|
|
110
|
+
*/
|
|
111
|
+
const ADDRESS = "address";
|
|
112
|
+
/**
|
|
113
|
+
* {@code updated_at} - the time the user's information was last updated
|
|
114
|
+
*/
|
|
115
|
+
const UPDATED_AT = "updated_at";
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=oidc-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oidc-protocol.d.ts","sourceRoot":"","sources":["../../../src/node/oidc/oidc-protocol.ts"],"names":[],"mappings":"AAAA,yBAAiB,UAAU,CAAC;IAExB;;OAEG;IACI,MAAM,MAAM,WAAW,CAAC;IAE/B;;;;OAIG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,KAAK,UAAU,CAAC;IAE7B;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,KAAK,UAAU,CAAC;CAEhC;AAED,yBAAiB,kBAAkB,CAAC;IAEhC;;OAEG;IACI,MAAM,QAAQ,aAAa,CAAC;IAEnC;;OAEG;IACI,MAAM,KAAK,UAAU,CAAC;CAEhC;AAED,yBAAiB,kBAAkB,CAAC;IAEhC;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,IAAI,SAAS,CAAC;IAE3B;;OAEG;IACI,MAAM,UAAU,eAAe,CAAC;IAEvC;;OAEG;IACI,MAAM,WAAW,gBAAgB,CAAC;IAEzC;;OAEG;IACI,MAAM,WAAW,gBAAgB,CAAC;IAEzC;;OAEG;IACI,MAAM,QAAQ,aAAa,CAAC;IAEnC;;OAEG;IACI,MAAM,kBAAkB,uBAAuB,CAAC;IAEvD;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,KAAK,UAAU,CAAC;IAE7B;;OAEG;IACI,MAAM,cAAc,mBAAmB,CAAC;IAE/C;;OAEG;IACI,MAAM,MAAM,WAAW,CAAC;IAE/B;;OAEG;IACI,MAAM,SAAS,cAAc,CAAC;IAErC;;OAEG;IACI,MAAM,QAAQ,aAAa,CAAC;IAEnC;;OAEG;IACI,MAAM,MAAM,WAAW,CAAC;IAE/B;;OAEG;IACI,MAAM,YAAY,iBAAiB,CAAC;IAE3C;;OAEG;IACI,MAAM,qBAAqB,0BAA0B,CAAC;IAE7D;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,UAAU,eAAe,CAAC;CAE1C"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StandardClaimNames = exports.OidcParameterNames = exports.OidcScopes = void 0;
|
|
4
|
+
var OidcScopes;
|
|
5
|
+
(function (OidcScopes) {
|
|
6
|
+
/**
|
|
7
|
+
* The {@code openid} scope is required for OpenID Connect Authentication Requests.
|
|
8
|
+
*/
|
|
9
|
+
OidcScopes.OPENID = 'openid';
|
|
10
|
+
/**
|
|
11
|
+
* The {@code profile} scope requests access to the default profile claims, which are:
|
|
12
|
+
* {@code name, family_name, given_name, middle_name, nickname, preferred_username,
|
|
13
|
+
* profile, picture, website, gender, birthdate, zoneinfo, locale, updated_at}.
|
|
14
|
+
*/
|
|
15
|
+
OidcScopes.PROFILE = 'profile';
|
|
16
|
+
/**
|
|
17
|
+
* The {@code email} scope requests access to the {@code email} and {@code email_verified} claims.
|
|
18
|
+
*/
|
|
19
|
+
OidcScopes.EMAIL = 'email';
|
|
20
|
+
/**
|
|
21
|
+
* The {@code address} scope requests access to the {@code address} claim.
|
|
22
|
+
*/
|
|
23
|
+
OidcScopes.ADDRESS = 'address';
|
|
24
|
+
/**
|
|
25
|
+
* The {@code phone} scope requests access to the {@code phone_number} and {@code phone_number_verified} claims.
|
|
26
|
+
*/
|
|
27
|
+
OidcScopes.PHONE = 'phone';
|
|
28
|
+
})(OidcScopes = exports.OidcScopes || (exports.OidcScopes = {}));
|
|
29
|
+
var OidcParameterNames;
|
|
30
|
+
(function (OidcParameterNames) {
|
|
31
|
+
/**
|
|
32
|
+
* {@code id_token} - used in the Access Token Response.
|
|
33
|
+
*/
|
|
34
|
+
OidcParameterNames.ID_TOKEN = 'id_token';
|
|
35
|
+
/**
|
|
36
|
+
* {@code nonce} - used in the Authentication Request.
|
|
37
|
+
*/
|
|
38
|
+
OidcParameterNames.NONCE = 'nonce';
|
|
39
|
+
})(OidcParameterNames = exports.OidcParameterNames || (exports.OidcParameterNames = {}));
|
|
40
|
+
var StandardClaimNames;
|
|
41
|
+
(function (StandardClaimNames) {
|
|
42
|
+
/**
|
|
43
|
+
* {@code sub} - the Subject identifier
|
|
44
|
+
*/
|
|
45
|
+
StandardClaimNames.SUB = 'sub';
|
|
46
|
+
/**
|
|
47
|
+
* {@code name} - the user's full name
|
|
48
|
+
*/
|
|
49
|
+
StandardClaimNames.NAME = 'name';
|
|
50
|
+
/**
|
|
51
|
+
* {@code given_name} - the user's given name(s) or first name(s)
|
|
52
|
+
*/
|
|
53
|
+
StandardClaimNames.GIVEN_NAME = 'given_name';
|
|
54
|
+
/**
|
|
55
|
+
* {@code family_name} - the user's surname(s) or last name(s)
|
|
56
|
+
*/
|
|
57
|
+
StandardClaimNames.FAMILY_NAME = 'family_name';
|
|
58
|
+
/**
|
|
59
|
+
* {@code middle_name} - the user's middle name(s)
|
|
60
|
+
*/
|
|
61
|
+
StandardClaimNames.MIDDLE_NAME = 'middle_name';
|
|
62
|
+
/**
|
|
63
|
+
* {@code nickname} - the user's nick name that may or may not be the same as the {@code given_name}
|
|
64
|
+
*/
|
|
65
|
+
StandardClaimNames.NICKNAME = 'nickname';
|
|
66
|
+
/**
|
|
67
|
+
* {@code preferred_username} - the preferred username that the user wishes to be referred to
|
|
68
|
+
*/
|
|
69
|
+
StandardClaimNames.PREFERRED_USERNAME = 'preferred_username';
|
|
70
|
+
/**
|
|
71
|
+
* {@code profile} - the URL of the user's profile page
|
|
72
|
+
*/
|
|
73
|
+
StandardClaimNames.PROFILE = 'profile';
|
|
74
|
+
/**
|
|
75
|
+
* {@code picture} - the URL of the user's profile picture
|
|
76
|
+
*/
|
|
77
|
+
StandardClaimNames.PICTURE = 'picture';
|
|
78
|
+
/**
|
|
79
|
+
* {@code website} - the URL of the user's web page or blog
|
|
80
|
+
*/
|
|
81
|
+
StandardClaimNames.WEBSITE = 'website';
|
|
82
|
+
/**
|
|
83
|
+
* {@code email} - the user's preferred e-mail address
|
|
84
|
+
*/
|
|
85
|
+
StandardClaimNames.EMAIL = 'email';
|
|
86
|
+
/**
|
|
87
|
+
* {@code email_verified} - {@code true} if the user's e-mail address has been verified, otherwise {@code false}
|
|
88
|
+
*/
|
|
89
|
+
StandardClaimNames.EMAIL_VERIFIED = 'email_verified';
|
|
90
|
+
/**
|
|
91
|
+
* {@code gender} - the user's gender
|
|
92
|
+
*/
|
|
93
|
+
StandardClaimNames.GENDER = 'gender';
|
|
94
|
+
/**
|
|
95
|
+
* {@code birthdate} - the user's birth date
|
|
96
|
+
*/
|
|
97
|
+
StandardClaimNames.BIRTHDATE = 'birthdate';
|
|
98
|
+
/**
|
|
99
|
+
* {@code zoneinfo} - the user's time zone
|
|
100
|
+
*/
|
|
101
|
+
StandardClaimNames.ZONEINFO = 'zoneinfo';
|
|
102
|
+
/**
|
|
103
|
+
* {@code locale} - the user's locale
|
|
104
|
+
*/
|
|
105
|
+
StandardClaimNames.LOCALE = 'locale';
|
|
106
|
+
/**
|
|
107
|
+
* {@code phone_number} - the user's preferred phone number
|
|
108
|
+
*/
|
|
109
|
+
StandardClaimNames.PHONE_NUMBER = 'phone_number';
|
|
110
|
+
/**
|
|
111
|
+
* {@code phone_number_verified} - {@code true} if the user's phone number has been verified, otherwise {@code false}
|
|
112
|
+
*/
|
|
113
|
+
StandardClaimNames.PHONE_NUMBER_VERIFIED = 'phone_number_verified';
|
|
114
|
+
/**
|
|
115
|
+
* {@code address} - the user's preferred postal address
|
|
116
|
+
*/
|
|
117
|
+
StandardClaimNames.ADDRESS = 'address';
|
|
118
|
+
/**
|
|
119
|
+
* {@code updated_at} - the time the user's information was last updated
|
|
120
|
+
*/
|
|
121
|
+
StandardClaimNames.UPDATED_AT = 'updated_at';
|
|
122
|
+
})(StandardClaimNames = exports.StandardClaimNames || (exports.StandardClaimNames = {}));
|
|
123
|
+
//# sourceMappingURL=oidc-protocol.js.map
|
|
@@ -0,0 +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,GAAV,kBAAU,KAAV,kBAAU,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,GAAlB,0BAAkB,KAAlB,0BAAkB,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,GAAlB,0BAAkB,KAAlB,0BAAkB,QAsGlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/token/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./token-protocol"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/token/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface Token {
|
|
2
|
+
tokenValue: string;
|
|
3
|
+
issuedAt: number;
|
|
4
|
+
}
|
|
5
|
+
export declare enum TokenType {
|
|
6
|
+
Bearer = "Bearer"
|
|
7
|
+
}
|
|
8
|
+
export interface AccessToken extends Token {
|
|
9
|
+
tokenType?: TokenType;
|
|
10
|
+
scopes: string[];
|
|
11
|
+
expiresAt: number;
|
|
12
|
+
}
|
|
13
|
+
export interface RefreshToken extends Token {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace IdTokenClaimNames {
|
|
16
|
+
/**
|
|
17
|
+
* {@code iss} - the Issuer identifier
|
|
18
|
+
*/
|
|
19
|
+
const ISS = "iss";
|
|
20
|
+
/**
|
|
21
|
+
* {@code sub} - the Subject identifier
|
|
22
|
+
*/
|
|
23
|
+
const SUB = "sub";
|
|
24
|
+
/**
|
|
25
|
+
* {@code aud} - the Audience(s) that the ID Token is intended for
|
|
26
|
+
*/
|
|
27
|
+
const AUD = "aud";
|
|
28
|
+
/**
|
|
29
|
+
* {@code exp} - the Expiration time on or after which the ID Token MUST NOT be accepted
|
|
30
|
+
*/
|
|
31
|
+
const EXP = "exp";
|
|
32
|
+
/**
|
|
33
|
+
* {@code iat} - the time at which the ID Token was issued
|
|
34
|
+
*/
|
|
35
|
+
const IAT = "iat";
|
|
36
|
+
/**
|
|
37
|
+
* {@code auth_time} - the time when the End-User authentication occurred
|
|
38
|
+
*/
|
|
39
|
+
const AUTH_TIME = "auth_time";
|
|
40
|
+
/**
|
|
41
|
+
* {@code nonce} - a {@code export const} value used to associate a Client session with an ID Token,
|
|
42
|
+
* and to mitigate replay attacks.
|
|
43
|
+
*/
|
|
44
|
+
const NONCE = "nonce";
|
|
45
|
+
/**
|
|
46
|
+
* {@code acr} - the Authentication Context Class Reference
|
|
47
|
+
*/
|
|
48
|
+
const ACR = "acr";
|
|
49
|
+
/**
|
|
50
|
+
* {@code amr} - the Authentication Methods References
|
|
51
|
+
*/
|
|
52
|
+
const AMR = "amr";
|
|
53
|
+
/**
|
|
54
|
+
* {@code azp} - the Authorized party to which the ID Token was issued
|
|
55
|
+
*/
|
|
56
|
+
const AZP = "azp";
|
|
57
|
+
/**
|
|
58
|
+
* {@code at_hash} - the Access Token hash value
|
|
59
|
+
*/
|
|
60
|
+
const AT_HASH = "at_hash";
|
|
61
|
+
/**
|
|
62
|
+
* {@code c_hash} - the Authorization Code hash value
|
|
63
|
+
*/
|
|
64
|
+
const C_HASH = "c_hash";
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=token-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-protocol.d.ts","sourceRoot":"","sources":["../../../src/node/token/token-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,SAAS;IACjB,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK;CAAG;AAE9C,yBAAiB,iBAAiB,CAAC;IAE/B;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,SAAS,cAAc,CAAC;IAErC;;;OAGG;IACI,MAAM,KAAK,UAAU,CAAC;IAE7B;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACI,MAAM,OAAO,YAAY,CAAC;IAEjC;;OAEG;IACI,MAAM,MAAM,WAAW,CAAC;CAElC"}
|