@riao/iam 1.0.0 → 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/README.md +67 -1
- package/auth/auth-migrations.d.ts +6 -0
- package/auth/auth-migrations.js +15 -0
- package/auth/auth-migrations.js.map +1 -0
- package/auth/auth.d.ts +9 -0
- package/auth/auth.js +15 -0
- package/auth/auth.js.map +1 -0
- package/auth/index.d.ts +2 -0
- package/auth/index.js +6 -0
- package/auth/index.js.map +1 -0
- package/auth/migrations/001-create-principals-table.d.ts +5 -0
- package/auth/migrations/001-create-principals-table.js +39 -0
- package/auth/migrations/001-create-principals-table.js.map +1 -0
- package/auth/principal.d.ts +8 -0
- package/{token.js → auth/principal.js} +3 -3
- package/auth/principal.js.map +1 -0
- package/authentication/authentication.d.ts +9 -0
- package/authentication/authentication.js +41 -0
- package/authentication/authentication.js.map +1 -0
- package/authentication/index.d.ts +1 -0
- package/authentication/index.js +6 -0
- package/authentication/index.js.map +1 -0
- package/crypto.d.ts +16 -0
- package/crypto.js +35 -0
- package/crypto.js.map +1 -0
- package/hash.d.ts +5 -0
- package/hash.js +15 -0
- package/hash.js.map +1 -0
- package/index.d.ts +4 -2
- package/index.js +13 -18
- package/index.js.map +1 -1
- package/jwt.d.ts +26 -28
- package/jwt.js +48 -83
- package/jwt.js.map +1 -1
- package/keypair.d.ts +24 -24
- package/keypair.js +70 -70
- package/keypair.js.map +1 -1
- package/package.json +7 -6
- package/secret.d.ts +5 -5
- package/secret.js +2 -2
- package/auth.d.ts +0 -11
- package/auth.js +0 -16
- package/auth.js.map +0 -1
- package/authentication-base.d.ts +0 -12
- package/authentication-base.js +0 -48
- package/authentication-base.js.map +0 -1
- package/authentication-password.d.ts +0 -11
- package/authentication-password.js +0 -43
- package/authentication-password.js.map +0 -1
- package/authentication-passwordless.d.ts +0 -24
- package/authentication-passwordless.js +0 -55
- package/authentication-passwordless.js.map +0 -1
- package/authorization-abac.d.ts +0 -8
- package/authorization-abac.js +0 -33
- package/authorization-abac.js.map +0 -1
- package/authorization-base.d.ts +0 -17
- package/authorization-base.js +0 -30
- package/authorization-base.js.map +0 -1
- package/authorization-hmm.d.ts +0 -0
- package/authorization-hmm.js +0 -173
- package/authorization-hmm.js.map +0 -1
- package/authorization-rbac.d.ts +0 -14
- package/authorization-rbac.js +0 -61
- package/authorization-rbac.js.map +0 -1
- package/errors/authentication-error.d.ts +0 -3
- package/errors/authentication-error.js +0 -8
- package/errors/authentication-error.js.map +0 -1
- package/errors/authorization-error.d.ts +0 -3
- package/errors/authorization-error.js +0 -8
- package/errors/authorization-error.js.map +0 -1
- package/errors/error.d.ts +0 -2
- package/errors/error.js +0 -7
- package/errors/error.js.map +0 -1
- package/iam.d.ts +0 -40
- package/iam.js +0 -73
- package/iam.js.map +0 -1
- package/migrations/1725221752756-create-users-table.d.ts +0 -7
- package/migrations/1725221752756-create-users-table.js +0 -36
- package/migrations/1725221752756-create-users-table.js.map +0 -1
- package/migrations/1725221859886-create-roles-table.d.ts +0 -7
- package/migrations/1725221859886-create-roles-table.js +0 -36
- package/migrations/1725221859886-create-roles-table.js.map +0 -1
- package/migrations/1725221896876-create-permissions-table.d.ts +0 -7
- package/migrations/1725221896876-create-permissions-table.js +0 -41
- package/migrations/1725221896876-create-permissions-table.js.map +0 -1
- package/migrations/1725221935064-create-role-permissions-table.d.ts +0 -7
- package/migrations/1725221935064-create-role-permissions-table.js +0 -56
- package/migrations/1725221935064-create-role-permissions-table.js.map +0 -1
- package/migrations/1725221951873-create-user-roles-table.d.ts +0 -7
- package/migrations/1725221951873-create-user-roles-table.js +0 -56
- package/migrations/1725221951873-create-user-roles-table.js.map +0 -1
- package/migrations/index.d.ts +0 -5
- package/migrations/index.js +0 -22
- package/migrations/index.js.map +0 -1
- package/token.d.ts +0 -13
- package/token.js.map +0 -1
package/keypair.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as crypto from 'crypto';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare class KeyPairGenerator {
|
|
10
|
-
algorithm: KeyPairAlgorithm;
|
|
11
|
-
constructor(options: {
|
|
12
|
-
algorithm: KeyPairAlgorithm;
|
|
13
|
-
});
|
|
14
|
-
generate(): KeyPair;
|
|
15
|
-
load(options: {
|
|
16
|
-
publicKeyPath: string;
|
|
17
|
-
privateKeyPath: string;
|
|
18
|
-
}): KeyPair
|
|
19
|
-
save(options: {
|
|
20
|
-
keys: KeyPair;
|
|
21
|
-
publicKeyPath: string;
|
|
22
|
-
privateKeyPath: string;
|
|
23
|
-
}): void
|
|
24
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as crypto from 'crypto';
|
|
3
|
+
export type KeyPairAlgorithm = 'RS256' | 'RS384' | 'RS512' | 'HS256' | 'ES256' | 'ES384' | 'ES512';
|
|
4
|
+
export interface KeyPair {
|
|
5
|
+
publicKey: crypto.KeyObject;
|
|
6
|
+
privateKey: crypto.KeyObject;
|
|
7
|
+
algorithm: KeyPairAlgorithm;
|
|
8
|
+
}
|
|
9
|
+
export declare class KeyPairGenerator {
|
|
10
|
+
algorithm: KeyPairAlgorithm;
|
|
11
|
+
constructor(options: {
|
|
12
|
+
algorithm: KeyPairAlgorithm;
|
|
13
|
+
});
|
|
14
|
+
generate(): KeyPair;
|
|
15
|
+
load(options: {
|
|
16
|
+
publicKeyPath: string;
|
|
17
|
+
privateKeyPath: string;
|
|
18
|
+
}): Promise<KeyPair>;
|
|
19
|
+
save(options: {
|
|
20
|
+
keys: KeyPair;
|
|
21
|
+
publicKeyPath: string;
|
|
22
|
+
privateKeyPath: string;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
}
|
package/keypair.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KeyPairGenerator = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(0,
|
|
67
|
-
(0,
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.KeyPairGenerator = KeyPairGenerator;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyPairGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const crypto = tslib_1.__importStar(require("crypto"));
|
|
6
|
+
const promises_1 = require("fs/promises");
|
|
7
|
+
class KeyPairGenerator {
|
|
8
|
+
algorithm;
|
|
9
|
+
constructor(options) {
|
|
10
|
+
this.algorithm = options.algorithm;
|
|
11
|
+
}
|
|
12
|
+
generate() {
|
|
13
|
+
let type = null;
|
|
14
|
+
let modulusLength, namedCurve;
|
|
15
|
+
if (this.algorithm === 'RS256') {
|
|
16
|
+
type = 'rsa';
|
|
17
|
+
modulusLength = 2048;
|
|
18
|
+
}
|
|
19
|
+
else if (this.algorithm === 'RS384') {
|
|
20
|
+
type = 'rsa';
|
|
21
|
+
modulusLength = 3072;
|
|
22
|
+
}
|
|
23
|
+
else if (this.algorithm === 'RS512') {
|
|
24
|
+
type = 'rsa';
|
|
25
|
+
modulusLength = 4096;
|
|
26
|
+
}
|
|
27
|
+
else if (this.algorithm === 'ES256') {
|
|
28
|
+
type = 'ec';
|
|
29
|
+
namedCurve = 'prime256v1';
|
|
30
|
+
}
|
|
31
|
+
else if (this.algorithm === 'ES384') {
|
|
32
|
+
type = 'ec';
|
|
33
|
+
namedCurve = 'secp384r1';
|
|
34
|
+
}
|
|
35
|
+
else if (this.algorithm === 'ES512') {
|
|
36
|
+
type = 'ec';
|
|
37
|
+
namedCurve = 'secp521r1';
|
|
38
|
+
}
|
|
39
|
+
if (type === null) {
|
|
40
|
+
throw new Error('Keypair type could not be inferred');
|
|
41
|
+
}
|
|
42
|
+
const { publicKey, privateKey } = crypto.generateKeyPairSync(
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
+
type, {
|
|
45
|
+
modulusLength,
|
|
46
|
+
namedCurve,
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
algorithm: this.algorithm,
|
|
50
|
+
publicKey,
|
|
51
|
+
privateKey,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
async load(options) {
|
|
55
|
+
const publicKey = (await (0, promises_1.readFile)(options.publicKeyPath)).toString();
|
|
56
|
+
const privateKey = (await (0, promises_1.readFile)(options.privateKeyPath)).toString();
|
|
57
|
+
return {
|
|
58
|
+
algorithm: this.algorithm,
|
|
59
|
+
publicKey: crypto.createPublicKey(publicKey),
|
|
60
|
+
privateKey: crypto.createPrivateKey(privateKey),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
async save(options) {
|
|
64
|
+
const publicKey = options.keys.publicKey;
|
|
65
|
+
const privateKey = options.keys.privateKey;
|
|
66
|
+
await (0, promises_1.writeFile)(options.publicKeyPath, publicKey.export({ format: 'pem', type: 'spki' }));
|
|
67
|
+
await (0, promises_1.writeFile)(options.privateKeyPath, privateKey.export({ format: 'pem', type: 'pkcs8' }));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.KeyPairGenerator = KeyPairGenerator;
|
|
71
71
|
//# sourceMappingURL=keypair.js.map
|
package/keypair.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keypair.js","sourceRoot":"","sources":["../../src/keypair.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keypair.js","sourceRoot":"","sources":["../../src/keypair.ts"],"names":[],"mappings":";;;;AAAA,uDAAiC;AACjC,0CAAkD;AAiBlD,MAAa,gBAAgB;IACrB,SAAS,CAAmB;IAEnC,YAAmB,OAAwC;QAC1D,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,CAAC;IAEM,QAAQ;QACd,IAAI,IAAI,GAAwB,IAAI,CAAC;QACrC,IAAI,aAAa,EAAE,UAAU,CAAC;QAE9B,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YAChC,IAAI,GAAG,KAAK,CAAC;YACb,aAAa,GAAG,IAAI,CAAC;QACtB,CAAC;aACI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACrC,IAAI,GAAG,KAAK,CAAC;YACb,aAAa,GAAG,IAAI,CAAC;QACtB,CAAC;aACI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACrC,IAAI,GAAG,KAAK,CAAC;YACb,aAAa,GAAG,IAAI,CAAC;QACtB,CAAC;aACI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACrC,IAAI,GAAG,IAAI,CAAC;YACZ,UAAU,GAAG,YAAY,CAAC;QAC3B,CAAC;aACI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACrC,IAAI,GAAG,IAAI,CAAC;YACZ,UAAU,GAAG,WAAW,CAAC;QAC1B,CAAC;aACI,IAAI,IAAI,CAAC,SAAS,KAAK,OAAO,EAAE,CAAC;YACrC,IAAI,GAAG,IAAI,CAAC;YACZ,UAAU,GAAG,WAAW,CAAC;QAC1B,CAAC;QAED,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,mBAAmB;QAC3D,8DAA8D;QAC9D,IAAW,EACX;YACC,aAAa;YACb,UAAU;SACV,CACD,CAAC;QAEF,OAAO;YACN,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS;YACT,UAAU;SACV,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAGjB;QACA,MAAM,SAAS,GAAG,CAAC,MAAM,IAAA,mBAAQ,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QACrE,MAAM,UAAU,GAAG,CAAC,MAAM,IAAA,mBAAQ,EAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEvE,OAAO;YACN,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC;YAC5C,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC;SAC/C,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAIjB;QACA,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC;QACzC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;QAE3C,MAAM,IAAA,oBAAS,EACd,OAAO,CAAC,aAAa,EACrB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CACjD,CAAC;QACF,MAAM,IAAA,oBAAS,EACd,OAAO,CAAC,cAAc,EACtB,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CACnD,CAAC;IACH,CAAC;CACD;AAvFD,4CAuFC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riao/iam",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Identity Access Management for Riao",
|
|
5
5
|
"typescript-template": {
|
|
6
|
-
"base": "1.0.
|
|
6
|
+
"base": "1.0.1",
|
|
7
7
|
"jasmine": "1.0.0",
|
|
8
8
|
"library": "1.0.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@riao/dbal": "^3.
|
|
13
|
-
"
|
|
14
|
-
"jsonwebtoken": "^9.0.
|
|
12
|
+
"@riao/dbal": "^3.8.0",
|
|
13
|
+
"bcrypt": "^6.0.0",
|
|
14
|
+
"jsonwebtoken": "^9.0.3",
|
|
15
|
+
"ms": "^2.1.3"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
package/secret.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type SecretAlgorithm = 'HS256' | 'HS384' | 'HS512';
|
|
2
|
-
export interface Secret {
|
|
3
|
-
secret: string;
|
|
4
|
-
algorithm: SecretAlgorithm;
|
|
5
|
-
}
|
|
1
|
+
export type SecretAlgorithm = 'HS256' | 'HS384' | 'HS512';
|
|
2
|
+
export interface Secret {
|
|
3
|
+
secret: string;
|
|
4
|
+
algorithm: SecretAlgorithm;
|
|
5
|
+
}
|
package/secret.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=secret.js.map
|
package/auth.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Database, DatabaseRecord, QueryRepository } from '@riao/dbal';
|
|
2
|
-
export interface AuthOptions {
|
|
3
|
-
db: Database;
|
|
4
|
-
userTable?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class AuthBase<TUser extends DatabaseRecord = DatabaseRecord> {
|
|
7
|
-
protected db: Database;
|
|
8
|
-
protected userRepo: QueryRepository<TUser>;
|
|
9
|
-
protected userTable: string;
|
|
10
|
-
constructor(options: AuthOptions);
|
|
11
|
-
}
|
package/auth.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthBase = void 0;
|
|
4
|
-
class AuthBase {
|
|
5
|
-
constructor(options) {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
this.userTable = 'users';
|
|
8
|
-
this.db = (_a = options.db) !== null && _a !== void 0 ? _a : this.db;
|
|
9
|
-
this.userTable = (_b = options.userTable) !== null && _b !== void 0 ? _b : this.userTable;
|
|
10
|
-
this.userRepo = this.db.getQueryRepository({
|
|
11
|
-
table: this.userTable,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.AuthBase = AuthBase;
|
|
16
|
-
//# sourceMappingURL=auth.js.map
|
package/auth.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":";;;AAOA,MAAsB,QAAQ;IAK7B,YAAmB,OAAoB;;QAF7B,cAAS,GAAG,OAAO,CAAC;QAG7B,IAAI,CAAC,EAAE,GAAG,MAAA,OAAO,CAAC,EAAE,mCAAI,IAAI,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,IAAI,CAAC,SAAS,CAAC;QAErD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC;YAC1C,KAAK,EAAE,IAAI,CAAC,SAAS;SACrB,CAAC,CAAC;IACJ,CAAC;CACD;AAbD,4BAaC"}
|
package/authentication-base.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DatabaseRecord, Expression, SelectQuery } from '@riao/dbal';
|
|
2
|
-
import { AuthBase, AuthOptions } from './auth';
|
|
3
|
-
export interface AuthenticationOptions extends AuthOptions {
|
|
4
|
-
loginColumn: string;
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class AuthenticationBase<TUser extends DatabaseRecord = DatabaseRecord> extends AuthBase<TUser> {
|
|
7
|
-
protected loginColumn: string;
|
|
8
|
-
constructor(options: AuthenticationOptions);
|
|
9
|
-
findActiveUser(query: SelectQuery<TUser>): Promise<TUser>;
|
|
10
|
-
login(credentials: any): Promise<TUser>;
|
|
11
|
-
protected userIsActive(): Expression<TUser>;
|
|
12
|
-
}
|
package/authentication-base.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthenticationBase = void 0;
|
|
13
|
-
const dbal_1 = require("@riao/dbal");
|
|
14
|
-
const authentication_error_1 = require("./errors/authentication-error");
|
|
15
|
-
const auth_1 = require("./auth");
|
|
16
|
-
class AuthenticationBase extends auth_1.AuthBase {
|
|
17
|
-
constructor(options) {
|
|
18
|
-
var _a;
|
|
19
|
-
super(options);
|
|
20
|
-
this.loginColumn = (_a = options.loginColumn) !== null && _a !== void 0 ? _a : this.loginColumn;
|
|
21
|
-
}
|
|
22
|
-
findActiveUser(query) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const userWhere = this.userIsActive();
|
|
25
|
-
if (query.where && userWhere !== undefined) {
|
|
26
|
-
query.where = [userWhere, dbal_1.and, query.where];
|
|
27
|
-
}
|
|
28
|
-
else if (userWhere !== undefined) {
|
|
29
|
-
query.where = userWhere;
|
|
30
|
-
}
|
|
31
|
-
const user = yield this.userRepo.findOne(Object.assign({ columns: ['id'] }, query));
|
|
32
|
-
if (!user) {
|
|
33
|
-
throw new authentication_error_1.AuthenticationError('Could not find active user');
|
|
34
|
-
}
|
|
35
|
-
return user;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
login(credentials) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
throw new Error('No login implementation');
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
userIsActive() {
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AuthenticationBase = AuthenticationBase;
|
|
48
|
-
//# sourceMappingURL=authentication-base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-base.js","sourceRoot":"","sources":["../../src/authentication-base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOoB;AACpB,wEAAoE;AACpE,iCAA+C;AAM/C,MAAsB,kBAEpB,SAAQ,eAAe;IAGxB,YAAmB,OAA8B;;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,IAAI,CAAC,WAAW,CAAC;IAC5D,CAAC;IAEY,cAAc,CAAC,KAAyB;;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YAEtC,IAAI,KAAK,CAAC,KAAK,IAAI,SAAS,KAAK,SAAS,EAAE;gBAC3C,KAAK,CAAC,KAAK,GAAG,CAAC,SAAS,EAAE,UAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;aAC5C;iBACI,IAAI,SAAS,KAAK,SAAS,EAAE;gBACjC,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC;aACxB;YAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,iBACvC,OAAO,EAAE,CAAC,IAAI,CAAC,IACZ,KAAK,EACP,CAAC;YAEH,IAAI,CAAC,IAAI,EAAE;gBACV,MAAM,IAAI,0CAAmB,CAAC,4BAA4B,CAAC,CAAC;aAC5D;YAED,OAAO,IAAI,CAAC;QACb,CAAC;KAAA;IAEY,KAAK,CAAC,WAAW;;YAC7B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC5C,CAAC;KAAA;IAES,YAAY;QACrB,OAAO,SAAS,CAAC;IAClB,CAAC;CACD;AAxCD,gDAwCC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DatabaseRecord } from '@riao/dbal';
|
|
2
|
-
import { AuthenticationBase } from './authentication-base';
|
|
3
|
-
export interface PasswordLogin {
|
|
4
|
-
login: string;
|
|
5
|
-
password: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class AuthenticationPassword<TUser extends DatabaseRecord = DatabaseRecord> extends AuthenticationBase<TUser> {
|
|
8
|
-
login(credentials: PasswordLogin): Promise<TUser>;
|
|
9
|
-
hashPassword(password: string): Promise<string>;
|
|
10
|
-
verifyPassword(hash: string, password: string): Promise<boolean>;
|
|
11
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthenticationPassword = void 0;
|
|
13
|
-
const authentication_base_1 = require("./authentication-base");
|
|
14
|
-
const argon2 = require("argon2");
|
|
15
|
-
const authentication_error_1 = require("./errors/authentication-error");
|
|
16
|
-
class AuthenticationPassword extends authentication_base_1.AuthenticationBase {
|
|
17
|
-
login(credentials) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const user = yield this.findActiveUser({
|
|
20
|
-
columns: ['id', 'password'],
|
|
21
|
-
where: { [this.loginColumn]: credentials.login },
|
|
22
|
-
});
|
|
23
|
-
if (yield this.verifyPassword(user.password, credentials.password)) {
|
|
24
|
-
return user;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
throw new authentication_error_1.AuthenticationError('Wrong password');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
hashPassword(password) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
return yield argon2.hash(password);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
verifyPassword(hash, password) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
return yield argon2.verify(hash, password);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.AuthenticationPassword = AuthenticationPassword;
|
|
43
|
-
//# sourceMappingURL=authentication-password.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-password.js","sourceRoot":"","sources":["../../src/authentication-password.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+DAA2D;AAE3D,iCAAiC;AACjC,wEAAoE;AAOpE,MAAa,sBAEX,SAAQ,wCAAyB;IACrB,KAAK,CAAC,WAA0B;;YAC5C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC;gBACtC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC;gBAC3B,KAAK,EAAO,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE;aACrD,CAAC,CAAC;YAEH,IAAI,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE;gBACnE,OAAO,IAAI,CAAC;aACZ;iBACI;gBACJ,MAAM,IAAI,0CAAmB,CAAC,gBAAgB,CAAC,CAAC;aAChD;QACF,CAAC;KAAA;IAEY,YAAY,CAAC,QAAgB;;YACzC,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC;KAAA;IAEY,cAAc,CAC1B,IAAY,EACZ,QAAgB;;YAEhB,OAAO,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5C,CAAC;KAAA;CACD;AA3BD,wDA2BC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DatabaseRecord, DatabaseRecordId } from '@riao/dbal';
|
|
2
|
-
import { AuthenticationBase, AuthenticationOptions } from './authentication-base';
|
|
3
|
-
import { Token, Jwt, JwtOptions } from './jwt';
|
|
4
|
-
export interface MagicLinkPayload {
|
|
5
|
-
type: 'magic-link';
|
|
6
|
-
userId: DatabaseRecordId;
|
|
7
|
-
}
|
|
8
|
-
export interface PasswordlessAuthenticationOptions extends AuthenticationOptions {
|
|
9
|
-
jwt: JwtOptions;
|
|
10
|
-
}
|
|
11
|
-
export interface TokenOptions {
|
|
12
|
-
expiresIn: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const defaultTokenOptions: TokenOptions;
|
|
15
|
-
export declare class AuthenticationPasswordless<TUser extends DatabaseRecord = DatabaseRecord> extends AuthenticationBase<TUser> {
|
|
16
|
-
protected jwt: Jwt<MagicLinkPayload>;
|
|
17
|
-
constructor(options: PasswordlessAuthenticationOptions);
|
|
18
|
-
getMagicToken(credentials: {
|
|
19
|
-
login: string;
|
|
20
|
-
}, options?: TokenOptions): Promise<Token>;
|
|
21
|
-
login(credentials: {
|
|
22
|
-
token: string;
|
|
23
|
-
}): Promise<TUser>;
|
|
24
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthenticationPasswordless = exports.defaultTokenOptions = void 0;
|
|
13
|
-
const authentication_base_1 = require("./authentication-base");
|
|
14
|
-
const jwt_1 = require("./jwt");
|
|
15
|
-
const authentication_error_1 = require("./errors/authentication-error");
|
|
16
|
-
exports.defaultTokenOptions = {
|
|
17
|
-
expiresIn: '5m',
|
|
18
|
-
};
|
|
19
|
-
class AuthenticationPasswordless extends authentication_base_1.AuthenticationBase {
|
|
20
|
-
constructor(options) {
|
|
21
|
-
super(options);
|
|
22
|
-
this.jwt = new jwt_1.Jwt(options.jwt);
|
|
23
|
-
}
|
|
24
|
-
getMagicToken(credentials, options = exports.defaultTokenOptions) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
// Check user
|
|
27
|
-
const user = yield this.findActiveUser({
|
|
28
|
-
where: { [this.loginColumn]: credentials.login },
|
|
29
|
-
});
|
|
30
|
-
// Generate & return token
|
|
31
|
-
return yield this.jwt.generateToken({
|
|
32
|
-
type: 'magic-link',
|
|
33
|
-
userId: user.id,
|
|
34
|
-
}, {
|
|
35
|
-
expiresIn: options.expiresIn,
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
login(credentials) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
// Verify magic token
|
|
42
|
-
const data = yield this.jwt.decodeToken(credentials.token);
|
|
43
|
-
if (data.type !== 'magic-link') {
|
|
44
|
-
throw new authentication_error_1.AuthenticationError('Wrong type of token provided for this operation.');
|
|
45
|
-
}
|
|
46
|
-
// Check user
|
|
47
|
-
const user = yield this.findActiveUser({
|
|
48
|
-
where: { id: data.userId },
|
|
49
|
-
});
|
|
50
|
-
return user;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.AuthenticationPasswordless = AuthenticationPasswordless;
|
|
55
|
-
//# sourceMappingURL=authentication-passwordless.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-passwordless.js","sourceRoot":"","sources":["../../src/authentication-passwordless.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+DAG+B;AAC/B,+BAA+C;AAC/C,wEAAoE;AAgBvD,QAAA,mBAAmB,GAAiB;IAChD,SAAS,EAAE,IAAI;CACf,CAAC;AAEF,MAAa,0BAEX,SAAQ,wCAAyB;IAGlC,YAAmB,OAA0C;QAC5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,GAAG,GAAG,IAAI,SAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAEY,aAAa,CACzB,WAA8B,EAC9B,UAAwB,2BAAmB;;YAE3C,aAAa;YACb,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC;gBACtC,KAAK,EAAO,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE;aACrD,CAAC,CAAC;YAEH,0BAA0B;YAC1B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAClC;gBACC,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,IAAI,CAAC,EAAE;aACf,EACD;gBACC,SAAS,EAAE,OAAO,CAAC,SAAS;aAC5B,CACD,CAAC;QACH,CAAC;KAAA;IAEY,KAAK,CAAC,WAA8B;;YAChD,qBAAqB;YACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAE3D,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,EAAE;gBAC/B,MAAM,IAAI,0CAAmB,CAC5B,kDAAkD,CAClD,CAAC;aACF;YAED,aAAa;YACb,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC;gBACtC,KAAK,EAAO,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;aAC/B,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACb,CAAC;KAAA;CACD;AAjDD,gEAiDC"}
|
package/authorization-abac.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBase, AuthorizationLookup } from './authorization-base';
|
|
2
|
-
import { AuthOptions } from './auth';
|
|
3
|
-
export type AttributeBasedAuthorizationOptions = AuthOptions;
|
|
4
|
-
export declare class AttributeBasedAuthorization extends AuthorizationBase {
|
|
5
|
-
constructor(options: AttributeBasedAuthorizationOptions);
|
|
6
|
-
checkQuery(lookup: AuthorizationLookup): Promise<boolean>;
|
|
7
|
-
check(lookup: AuthorizationLookup): Promise<void>;
|
|
8
|
-
}
|
package/authorization-abac.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AttributeBasedAuthorization = void 0;
|
|
13
|
-
const authorization_base_1 = require("./authorization-base");
|
|
14
|
-
const authorization_error_1 = require("./errors/authorization-error");
|
|
15
|
-
class AttributeBasedAuthorization extends authorization_base_1.AuthorizationBase {
|
|
16
|
-
constructor(options) {
|
|
17
|
-
super(options);
|
|
18
|
-
}
|
|
19
|
-
checkQuery(lookup) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return false;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
check(lookup) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
if (!(yield this.checkQuery(lookup))) {
|
|
27
|
-
throw new authorization_error_1.AuthorizationError();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.AttributeBasedAuthorization = AttributeBasedAuthorization;
|
|
33
|
-
//# sourceMappingURL=authorization-abac.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-abac.js","sourceRoot":"","sources":["../../src/authorization-abac.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA8E;AAC9E,sEAAkE;AAKlE,MAAa,2BAA4B,SAAQ,sCAAiB;IACjE,YAAmB,OAA2C;QAC7D,KAAK,CAAC,OAAO,CAAC,CAAC;IAChB,CAAC;IAEY,UAAU,CAAC,MAA2B;;YAClD,OAAO,KAAK,CAAC;QACd,CAAC;KAAA;IAEY,KAAK,CAAC,MAA2B;;YAC7C,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE;gBACrC,MAAM,IAAI,wCAAkB,EAAE,CAAC;aAC/B;QACF,CAAC;KAAA;CACD;AAdD,kEAcC"}
|
package/authorization-base.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DatabaseRecord, DatabaseRecordId } from '@riao/dbal';
|
|
2
|
-
import { AuthBase } from './auth';
|
|
3
|
-
export declare enum CrudActions {
|
|
4
|
-
CREATE = "c",
|
|
5
|
-
READ = "r",
|
|
6
|
-
UPDATE = "u",
|
|
7
|
-
DELETE = "d"
|
|
8
|
-
}
|
|
9
|
-
export type Action = string | CrudActions;
|
|
10
|
-
export interface AuthorizationLookup {
|
|
11
|
-
userId: DatabaseRecordId;
|
|
12
|
-
action: Action;
|
|
13
|
-
model?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare abstract class AuthorizationBase<TUser extends DatabaseRecord = DatabaseRecord> extends AuthBase<TUser> {
|
|
16
|
-
check(lookup: AuthorizationLookup): Promise<void>;
|
|
17
|
-
}
|
package/authorization-base.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AuthorizationBase = exports.CrudActions = void 0;
|
|
13
|
-
const authorization_error_1 = require("./errors/authorization-error");
|
|
14
|
-
const auth_1 = require("./auth");
|
|
15
|
-
var CrudActions;
|
|
16
|
-
(function (CrudActions) {
|
|
17
|
-
CrudActions["CREATE"] = "c";
|
|
18
|
-
CrudActions["READ"] = "r";
|
|
19
|
-
CrudActions["UPDATE"] = "u";
|
|
20
|
-
CrudActions["DELETE"] = "d";
|
|
21
|
-
})(CrudActions = exports.CrudActions || (exports.CrudActions = {}));
|
|
22
|
-
class AuthorizationBase extends auth_1.AuthBase {
|
|
23
|
-
check(lookup) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
throw new authorization_error_1.AuthorizationError();
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.AuthorizationBase = AuthorizationBase;
|
|
30
|
-
//# sourceMappingURL=authorization-base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-base.js","sourceRoot":"","sources":["../../src/authorization-base.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sEAAkE;AAClE,iCAAkC;AAElC,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,2BAAY,CAAA;IACZ,yBAAU,CAAA;IACV,2BAAY,CAAA;IACZ,2BAAY,CAAA;AACb,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAUD,MAAsB,iBAEpB,SAAQ,eAAe;IACX,KAAK,CAAC,MAA2B;;YAC7C,MAAM,IAAI,wCAAkB,EAAE,CAAC;QAChC,CAAC;KAAA;CACD;AAND,8CAMC"}
|
package/authorization-hmm.d.ts
DELETED
|
File without changes
|