@rapidrest/auth 1.0.0-beta.1
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 +75 -0
- package/dist/lib/auth/BasicStrategy.js +82 -0
- package/dist/lib/auth/BasicStrategy.js.map +1 -0
- package/dist/lib/auth/FIDO2Strategy.js +179 -0
- package/dist/lib/auth/FIDO2Strategy.js.map +1 -0
- package/dist/lib/auth/MFAStrategy.js +219 -0
- package/dist/lib/auth/MFAStrategy.js.map +1 -0
- package/dist/lib/auth/OIDCStrategy.js +397 -0
- package/dist/lib/auth/OIDCStrategy.js.map +1 -0
- package/dist/lib/auth/OTPStrategy.js +143 -0
- package/dist/lib/auth/OTPStrategy.js.map +1 -0
- package/dist/lib/auth/PasskeyStrategy.js +185 -0
- package/dist/lib/auth/PasskeyStrategy.js.map +1 -0
- package/dist/lib/auth/TOTPStrategy.js +84 -0
- package/dist/lib/auth/TOTPStrategy.js.map +1 -0
- package/dist/lib/auth/index.js +10 -0
- package/dist/lib/auth/index.js.map +1 -0
- package/dist/lib/auth/shared.js +431 -0
- package/dist/lib/auth/shared.js.map +1 -0
- package/dist/lib/auth/types.js +12 -0
- package/dist/lib/auth/types.js.map +1 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/models/index.js +2 -0
- package/dist/lib/models/index.js.map +1 -0
- package/dist/lib/models/mongo/AliasMongo.js +77 -0
- package/dist/lib/models/mongo/AliasMongo.js.map +1 -0
- package/dist/lib/models/mongo/ProfileMongo.js +99 -0
- package/dist/lib/models/mongo/ProfileMongo.js.map +1 -0
- package/dist/lib/models/mongo/SecretMongo.js +71 -0
- package/dist/lib/models/mongo/SecretMongo.js.map +1 -0
- package/dist/lib/models/mongo/UserMongo.js +71 -0
- package/dist/lib/models/mongo/UserMongo.js.map +1 -0
- package/dist/lib/models/mongo/index.js +5 -0
- package/dist/lib/models/mongo/index.js.map +1 -0
- package/dist/lib/models/mongo.js +2 -0
- package/dist/lib/models/mongo.js.map +1 -0
- package/dist/lib/models/sql/AliasSQL.js +77 -0
- package/dist/lib/models/sql/AliasSQL.js.map +1 -0
- package/dist/lib/models/sql/ProfileSQL.js +99 -0
- package/dist/lib/models/sql/ProfileSQL.js.map +1 -0
- package/dist/lib/models/sql/SecretSQL.js +71 -0
- package/dist/lib/models/sql/SecretSQL.js.map +1 -0
- package/dist/lib/models/sql/UserSQL.js +68 -0
- package/dist/lib/models/sql/UserSQL.js.map +1 -0
- package/dist/lib/models/sql/index.js +5 -0
- package/dist/lib/models/sql/index.js.map +1 -0
- package/dist/lib/models/sql.js +2 -0
- package/dist/lib/models/sql.js.map +1 -0
- package/dist/lib/models/types.js +35 -0
- package/dist/lib/models/types.js.map +1 -0
- package/dist/lib/mongo.js +3 -0
- package/dist/lib/mongo.js.map +1 -0
- package/dist/lib/routes/BaseAliasRoute.js +10 -0
- package/dist/lib/routes/BaseAliasRoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthBasicRoute.js +132 -0
- package/dist/lib/routes/BaseAuthBasicRoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthFIDO2Route.js +191 -0
- package/dist/lib/routes/BaseAuthFIDO2Route.js.map +1 -0
- package/dist/lib/routes/BaseAuthMFARoute.js +310 -0
- package/dist/lib/routes/BaseAuthMFARoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthOIDCRoute.js +231 -0
- package/dist/lib/routes/BaseAuthOIDCRoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthOTPRoute.js +214 -0
- package/dist/lib/routes/BaseAuthOTPRoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthPasskeyRoute.js +182 -0
- package/dist/lib/routes/BaseAuthPasskeyRoute.js.map +1 -0
- package/dist/lib/routes/BaseAuthTOTPRoute.js +133 -0
- package/dist/lib/routes/BaseAuthTOTPRoute.js.map +1 -0
- package/dist/lib/routes/BaseProfileRoute.js +10 -0
- package/dist/lib/routes/BaseProfileRoute.js.map +1 -0
- package/dist/lib/routes/BaseSecretRoute.js +399 -0
- package/dist/lib/routes/BaseSecretRoute.js.map +1 -0
- package/dist/lib/routes/BaseUserRoute.js +10 -0
- package/dist/lib/routes/BaseUserRoute.js.map +1 -0
- package/dist/lib/routes/UserUtils.js +78 -0
- package/dist/lib/routes/UserUtils.js.map +1 -0
- package/dist/lib/routes/index.js +13 -0
- package/dist/lib/routes/index.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAliasRouteMongo.js +20 -0
- package/dist/lib/routes/mongo/BaseAliasRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthBasicRouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthBasicRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthFIDO2RouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthFIDO2RouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthMFARouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthMFARouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthOIDCRouteMongo.js +11 -0
- package/dist/lib/routes/mongo/BaseAuthOIDCRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthOTPRouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthOTPRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthPasskeyRouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthPasskeyRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseAuthTOTPRouteMongo.js +14 -0
- package/dist/lib/routes/mongo/BaseAuthTOTPRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseProfileRouteMongo.js +20 -0
- package/dist/lib/routes/mongo/BaseProfileRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseSecretRouteMongo.js +20 -0
- package/dist/lib/routes/mongo/BaseSecretRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/BaseUserRouteMongo.js +20 -0
- package/dist/lib/routes/mongo/BaseUserRouteMongo.js.map +1 -0
- package/dist/lib/routes/mongo/index.js +12 -0
- package/dist/lib/routes/mongo/index.js.map +1 -0
- package/dist/lib/routes/mongo.js +2 -0
- package/dist/lib/routes/mongo.js.map +1 -0
- package/dist/lib/routes/sql/BaseAliasRouteSQL.js +20 -0
- package/dist/lib/routes/sql/BaseAliasRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthBasicRouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthBasicRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthFIDO2RouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthFIDO2RouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthMFARouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthMFARouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthOIDCRouteSQL.js +11 -0
- package/dist/lib/routes/sql/BaseAuthOIDCRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthOTPRouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthOTPRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthPasskeyRouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthPasskeyRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseAuthTOTPRouteSQL.js +14 -0
- package/dist/lib/routes/sql/BaseAuthTOTPRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseProfileRouteSQL.js +20 -0
- package/dist/lib/routes/sql/BaseProfileRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseSecretRouteSQL.js +20 -0
- package/dist/lib/routes/sql/BaseSecretRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/BaseUserRouteSQL.js +20 -0
- package/dist/lib/routes/sql/BaseUserRouteSQL.js.map +1 -0
- package/dist/lib/routes/sql/index.js +12 -0
- package/dist/lib/routes/sql/index.js.map +1 -0
- package/dist/lib/routes/sql.js +2 -0
- package/dist/lib/routes/sql.js.map +1 -0
- package/dist/lib/sql.js +3 -0
- package/dist/lib/sql.js.map +1 -0
- package/dist/types/auth/BasicStrategy.d.ts +39 -0
- package/dist/types/auth/FIDO2Strategy.d.ts +85 -0
- package/dist/types/auth/MFAStrategy.d.ts +110 -0
- package/dist/types/auth/OIDCStrategy.d.ts +188 -0
- package/dist/types/auth/OTPStrategy.d.ts +88 -0
- package/dist/types/auth/PasskeyStrategy.d.ts +81 -0
- package/dist/types/auth/TOTPStrategy.d.ts +49 -0
- package/dist/types/auth/index.d.ts +9 -0
- package/dist/types/auth/shared.d.ts +136 -0
- package/dist/types/auth/types.d.ts +127 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/index.d.ts +1 -0
- package/dist/types/models/mongo/AliasMongo.d.ts +15 -0
- package/dist/types/models/mongo/ProfileMongo.d.ts +17 -0
- package/dist/types/models/mongo/SecretMongo.d.ts +14 -0
- package/dist/types/models/mongo/UserMongo.d.ts +14 -0
- package/dist/types/models/mongo/index.d.ts +4 -0
- package/dist/types/models/mongo.d.ts +1 -0
- package/dist/types/models/sql/AliasSQL.d.ts +15 -0
- package/dist/types/models/sql/ProfileSQL.d.ts +17 -0
- package/dist/types/models/sql/SecretSQL.d.ts +14 -0
- package/dist/types/models/sql/UserSQL.d.ts +14 -0
- package/dist/types/models/sql/index.d.ts +4 -0
- package/dist/types/models/sql.d.ts +1 -0
- package/dist/types/models/types.d.ts +136 -0
- package/dist/types/mongo.d.ts +2 -0
- package/dist/types/routes/BaseAliasRoute.d.ts +7 -0
- package/dist/types/routes/BaseAuthBasicRoute.d.ts +27 -0
- package/dist/types/routes/BaseAuthFIDO2Route.d.ts +50 -0
- package/dist/types/routes/BaseAuthMFARoute.d.ts +61 -0
- package/dist/types/routes/BaseAuthOIDCRoute.d.ts +33 -0
- package/dist/types/routes/BaseAuthOTPRoute.d.ts +53 -0
- package/dist/types/routes/BaseAuthPasskeyRoute.d.ts +41 -0
- package/dist/types/routes/BaseAuthTOTPRoute.d.ts +38 -0
- package/dist/types/routes/BaseProfileRoute.d.ts +7 -0
- package/dist/types/routes/BaseSecretRoute.d.ts +89 -0
- package/dist/types/routes/BaseUserRoute.d.ts +7 -0
- package/dist/types/routes/UserUtils.d.ts +21 -0
- package/dist/types/routes/index.d.ts +12 -0
- package/dist/types/routes/mongo/BaseAliasRouteMongo.d.ts +4 -0
- package/dist/types/routes/mongo/BaseAuthBasicRouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthFIDO2RouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthMFARouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthOIDCRouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthOTPRouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthPasskeyRouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseAuthTOTPRouteMongo.d.ts +7 -0
- package/dist/types/routes/mongo/BaseProfileRouteMongo.d.ts +4 -0
- package/dist/types/routes/mongo/BaseSecretRouteMongo.d.ts +4 -0
- package/dist/types/routes/mongo/BaseUserRouteMongo.d.ts +4 -0
- package/dist/types/routes/mongo/index.d.ts +11 -0
- package/dist/types/routes/mongo.d.ts +1 -0
- package/dist/types/routes/sql/BaseAliasRouteSQL.d.ts +4 -0
- package/dist/types/routes/sql/BaseAuthBasicRouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthFIDO2RouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthMFARouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthOIDCRouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthOTPRouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthPasskeyRouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseAuthTOTPRouteSQL.d.ts +7 -0
- package/dist/types/routes/sql/BaseProfileRouteSQL.d.ts +4 -0
- package/dist/types/routes/sql/BaseSecretRouteSQL.d.ts +4 -0
- package/dist/types/routes/sql/BaseUserRouteSQL.d.ts +4 -0
- package/dist/types/routes/sql/index.d.ts +11 -0
- package/dist/types/routes/sql.d.ts +1 -0
- package/dist/types/sql.d.ts +2 -0
- package/package.json +138 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasMongo, SecretMongo, UserMongo } from "../../mongo.js";
|
|
5
|
+
import { BaseAuthOTPRoute } from "../BaseAuthOTPRoute.js";
|
|
6
|
+
export class BaseAuthOTPRouteMongo extends BaseAuthOTPRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasMongo;
|
|
10
|
+
this.secretClass = SecretMongo;
|
|
11
|
+
this.userClass = UserMongo;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthOTPRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthOTPRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseAuthOTPRouteMongo.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAgB,qBAAsB,SAAQ,gBAAoD;IAAxG;;QACc,eAAU,GAAQ,UAAU,CAAC;QAC7B,gBAAW,GAAQ,WAAW,CAAC;QAC/B,cAAS,GAAQ,SAAS,CAAC;IACzC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasMongo, SecretMongo, UserMongo } from "../../mongo.js";
|
|
5
|
+
import { BaseAuthPasskeyRoute } from "../BaseAuthPasskeyRoute.js";
|
|
6
|
+
export class BaseAuthPasskeyRouteMongo extends BaseAuthPasskeyRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasMongo;
|
|
10
|
+
this.secretClass = SecretMongo;
|
|
11
|
+
this.userClass = UserMongo;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthPasskeyRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthPasskeyRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseAuthPasskeyRouteMongo.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAgB,yBAA0B,SAAQ,oBAAwD;IAAhH;;QACc,eAAU,GAAQ,UAAU,CAAC;QAC7B,gBAAW,GAAQ,WAAW,CAAC;QAC/B,cAAS,GAAQ,SAAS,CAAC;IACzC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasMongo, SecretMongo, UserMongo } from "../../mongo.js";
|
|
5
|
+
import { BaseAuthTOTPRoute } from "../BaseAuthTOTPRoute.js";
|
|
6
|
+
export class BaseAuthTOTPRouteMongo extends BaseAuthTOTPRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasMongo;
|
|
10
|
+
this.secretClass = SecretMongo;
|
|
11
|
+
this.userClass = UserMongo;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthTOTPRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthTOTPRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseAuthTOTPRouteMongo.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAgB,sBAAuB,SAAQ,iBAAqD;IAA1G;;QACc,eAAU,GAAQ,UAAU,CAAC;QAC7B,gBAAW,GAAQ,WAAW,CAAC;QAC/B,cAAS,GAAQ,SAAS,CAAC;IACzC,CAAC;CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { ProfileMongo } from "../../mongo.js";
|
|
12
|
+
import { BaseProfileRoute } from "../BaseProfileRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseProfileRouteMongo = class BaseProfileRouteMongo extends BaseProfileRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseProfileRouteMongo = __decorate([
|
|
17
|
+
Model(ProfileMongo)
|
|
18
|
+
], BaseProfileRouteMongo);
|
|
19
|
+
export { BaseProfileRouteMongo };
|
|
20
|
+
//# sourceMappingURL=BaseProfileRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseProfileRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseProfileRouteMongo.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,gBAA8B;CAAG,CAAA;AAA/D,qBAAqB;IADjC,KAAK,CAAC,YAAY,CAAC;GACP,qBAAqB,CAA0C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { SecretMongo } from "../../mongo.js";
|
|
12
|
+
import { BaseSecretRoute } from "../BaseSecretRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseSecretRouteMongo = class BaseSecretRouteMongo extends BaseSecretRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseSecretRouteMongo = __decorate([
|
|
17
|
+
Model(SecretMongo)
|
|
18
|
+
], BaseSecretRouteMongo);
|
|
19
|
+
export { BaseSecretRouteMongo };
|
|
20
|
+
//# sourceMappingURL=BaseSecretRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSecretRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseSecretRouteMongo.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,eAA4B;CAAG,CAAA;AAA5D,oBAAoB;IADhC,KAAK,CAAC,WAAW,CAAC;GACN,oBAAoB,CAAwC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { UserMongo } from "../../mongo.js";
|
|
12
|
+
import { BaseUserRoute } from "../BaseUserRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseUserRouteMongo = class BaseUserRouteMongo extends BaseUserRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseUserRouteMongo = __decorate([
|
|
17
|
+
Model(UserMongo)
|
|
18
|
+
], BaseUserRouteMongo);
|
|
19
|
+
export { BaseUserRouteMongo };
|
|
20
|
+
//# sourceMappingURL=BaseUserRouteMongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseUserRouteMongo.js","sourceRoot":"","sources":["../../../../src/routes/mongo/BaseUserRouteMongo.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,aAAwB;CAAG,CAAA;AAAtD,kBAAkB;IAD9B,KAAK,CAAC,SAAS,CAAC;GACJ,kBAAkB,CAAoC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./BaseAliasRouteMongo.js";
|
|
2
|
+
export * from "./BaseAuthBasicRouteMongo.js";
|
|
3
|
+
export * from "./BaseAuthFIDO2RouteMongo.js";
|
|
4
|
+
export * from "./BaseAuthMFARouteMongo.js";
|
|
5
|
+
export * from "./BaseAuthOIDCRouteMongo.js";
|
|
6
|
+
export * from "./BaseAuthOTPRouteMongo.js";
|
|
7
|
+
export * from "./BaseAuthPasskeyRouteMongo.js";
|
|
8
|
+
export * from "./BaseAuthTOTPRouteMongo.js";
|
|
9
|
+
export * from "./BaseProfileRouteMongo.js";
|
|
10
|
+
export * from "./BaseSecretRouteMongo.js";
|
|
11
|
+
export * from "./BaseUserRouteMongo.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/routes/mongo/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.js","sourceRoot":"","sources":["../../../src/routes/mongo.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { AliasSQL } from "../../sql.js";
|
|
12
|
+
import { BaseAliasRoute } from "../BaseAliasRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseAliasRouteSQL = class BaseAliasRouteSQL extends BaseAliasRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseAliasRouteSQL = __decorate([
|
|
17
|
+
Model(AliasSQL)
|
|
18
|
+
], BaseAliasRouteSQL);
|
|
19
|
+
export { BaseAliasRouteSQL };
|
|
20
|
+
//# sourceMappingURL=BaseAliasRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAliasRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAliasRouteSQL.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,cAAwB;CAAG,CAAA;AAArD,iBAAiB;IAD7B,KAAK,CAAC,QAAQ,CAAC;GACH,iBAAiB,CAAoC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthBasicRoute } from "../BaseAuthBasicRoute.js";
|
|
6
|
+
export class BaseAuthBasicRouteSQL extends BaseAuthBasicRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthBasicRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthBasicRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthBasicRouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,OAAgB,qBAAsB,SAAQ,kBAAgD;IAApG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthFIDO2Route } from "../BaseAuthFIDO2Route.js";
|
|
6
|
+
export class BaseAuthFIDO2RouteSQL extends BaseAuthFIDO2Route {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthFIDO2RouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthFIDO2RouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthFIDO2RouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,OAAgB,qBAAsB,SAAQ,kBAAgD;IAApG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthMFARoute } from "../BaseAuthMFARoute.js";
|
|
6
|
+
export class BaseAuthMFARouteSQL extends BaseAuthMFARoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthMFARouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthMFARouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthMFARouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAgB,mBAAoB,SAAQ,gBAA8C;IAAhG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AliasSQL, ProfileSQL, UserSQL } from "../../sql.js";
|
|
2
|
+
import { BaseAuthOIDCRoute } from "../BaseAuthOIDCRoute.js";
|
|
3
|
+
export class BaseAuthOIDCRouteSQL extends BaseAuthOIDCRoute {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.aliasClass = AliasSQL;
|
|
7
|
+
this.profileClass = ProfileSQL;
|
|
8
|
+
this.userClass = UserSQL;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=BaseAuthOIDCRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthOIDCRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthOIDCRouteSQL.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAgB,oBAAqB,SAAQ,iBAAgD;IAAnG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,iBAAY,GAAQ,UAAU,CAAC;QAC/B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthOTPRoute } from "../BaseAuthOTPRoute.js";
|
|
6
|
+
export class BaseAuthOTPRouteSQL extends BaseAuthOTPRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthOTPRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthOTPRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthOTPRouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAgB,mBAAoB,SAAQ,gBAA8C;IAAhG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthPasskeyRoute } from "../BaseAuthPasskeyRoute.js";
|
|
6
|
+
export class BaseAuthPasskeyRouteSQL extends BaseAuthPasskeyRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthPasskeyRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthPasskeyRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthPasskeyRouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAgB,uBAAwB,SAAQ,oBAAkD;IAAxG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
3
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
import { AliasSQL, SecretSQL, UserSQL } from "../../sql.js";
|
|
5
|
+
import { BaseAuthTOTPRoute } from "../BaseAuthTOTPRoute.js";
|
|
6
|
+
export class BaseAuthTOTPRouteSQL extends BaseAuthTOTPRoute {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.aliasClass = AliasSQL;
|
|
10
|
+
this.secretClass = SecretSQL;
|
|
11
|
+
this.userClass = UserSQL;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=BaseAuthTOTPRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseAuthTOTPRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseAuthTOTPRouteSQL.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAgB,oBAAqB,SAAQ,iBAA+C;IAAlG;;QACc,eAAU,GAAQ,QAAQ,CAAC;QAC3B,gBAAW,GAAQ,SAAS,CAAC;QAC7B,cAAS,GAAQ,OAAO,CAAC;IACvC,CAAC;CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { ProfileSQL } from "../../sql.js";
|
|
12
|
+
import { BaseProfileRoute } from "../BaseProfileRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseProfileRouteSQL = class BaseProfileRouteSQL extends BaseProfileRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseProfileRouteSQL = __decorate([
|
|
17
|
+
Model(ProfileSQL)
|
|
18
|
+
], BaseProfileRouteSQL);
|
|
19
|
+
export { BaseProfileRouteSQL };
|
|
20
|
+
//# sourceMappingURL=BaseProfileRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseProfileRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseProfileRouteSQL.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,gBAA4B;CAAG,CAAA;AAA3D,mBAAmB;IAD/B,KAAK,CAAC,UAAU,CAAC;GACL,mBAAmB,CAAwC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { SecretSQL } from "../../sql.js";
|
|
12
|
+
import { BaseSecretRoute } from "../BaseSecretRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseSecretRouteSQL = class BaseSecretRouteSQL extends BaseSecretRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseSecretRouteSQL = __decorate([
|
|
17
|
+
Model(SecretSQL)
|
|
18
|
+
], BaseSecretRouteSQL);
|
|
19
|
+
export { BaseSecretRouteSQL };
|
|
20
|
+
//# sourceMappingURL=BaseSecretRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseSecretRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseSecretRouteSQL.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,eAA0B;CAAG,CAAA;AAAxD,kBAAkB;IAD9B,KAAK,CAAC,SAAS,CAAC;GACJ,kBAAkB,CAAsC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
+
// Copyright (C) 2026 Jean-Philippe Steinmetz. All rights reserved.
|
|
9
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
10
|
+
import { RouteDecorators } from "@rapidrest/service-core";
|
|
11
|
+
import { UserSQL } from "../../sql.js";
|
|
12
|
+
import { BaseUserRoute } from "../BaseUserRoute.js";
|
|
13
|
+
const { Model } = RouteDecorators;
|
|
14
|
+
let BaseUserRouteSQL = class BaseUserRouteSQL extends BaseUserRoute {
|
|
15
|
+
};
|
|
16
|
+
BaseUserRouteSQL = __decorate([
|
|
17
|
+
Model(UserSQL)
|
|
18
|
+
], BaseUserRouteSQL);
|
|
19
|
+
export { BaseUserRouteSQL };
|
|
20
|
+
//# sourceMappingURL=BaseUserRouteSQL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseUserRouteSQL.js","sourceRoot":"","sources":["../../../../src/routes/sql/BaseUserRouteSQL.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA+E;AAC/E,mEAAmE;AACnE,+EAA+E;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;AAG3B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,aAAsB;CAAG,CAAA;AAAlD,gBAAgB;IAD5B,KAAK,CAAC,OAAO,CAAC;GACF,gBAAgB,CAAkC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./BaseAliasRouteSQL.js";
|
|
2
|
+
export * from "./BaseAuthBasicRouteSQL.js";
|
|
3
|
+
export * from "./BaseAuthFIDO2RouteSQL.js";
|
|
4
|
+
export * from "./BaseAuthMFARouteSQL.js";
|
|
5
|
+
export * from "./BaseAuthOIDCRouteSQL.js";
|
|
6
|
+
export * from "./BaseAuthOTPRouteSQL.js";
|
|
7
|
+
export * from "./BaseAuthPasskeyRouteSQL.js";
|
|
8
|
+
export * from "./BaseAuthTOTPRouteSQL.js";
|
|
9
|
+
export * from "./BaseProfileRouteSQL.js";
|
|
10
|
+
export * from "./BaseSecretRouteSQL.js";
|
|
11
|
+
export * from "./BaseUserRouteSQL.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/routes/sql/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql.js","sourceRoot":"","sources":["../../../src/routes/sql.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
package/dist/lib/sql.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql.js","sourceRoot":"","sources":["../../src/sql.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { JWTUser } from "@rapidrest/core";
|
|
2
|
+
import { AuthResult, AuthStrategy, HttpRequest, HttpResponse } from "@rapidrest/service-core";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the configuration options that can be used to initialize BasicStrategy.
|
|
5
|
+
*
|
|
6
|
+
* @author Jean-Philippe Steinmetz
|
|
7
|
+
*/
|
|
8
|
+
export declare class BasicStrategyOptions {
|
|
9
|
+
/** The name of the header to look for when performing header based authentication. Default value is `Authorization`. */
|
|
10
|
+
headerKey: string;
|
|
11
|
+
/** The authorization scheme type when using header based authentication. Default value is `jwt`. */
|
|
12
|
+
headerScheme: string;
|
|
13
|
+
/** The name of the request query parameter to retrieve the token from when using query based authentication. Default value is `auth_basic`. */
|
|
14
|
+
queryKey: string;
|
|
15
|
+
/**
|
|
16
|
+
* Set to `true` to allow credentials to be supplied via the `queryKey` URL parameter.
|
|
17
|
+
* Disabled by default — query parameters appear in server logs, browser history, and
|
|
18
|
+
* Referer headers, which permanently exposes credentials outside the application.
|
|
19
|
+
*/
|
|
20
|
+
allowQueryParam: boolean;
|
|
21
|
+
/** Override this function to handle asynchronous (non-blocking) verification of the login info. */
|
|
22
|
+
verify(uid: string, secret: string): JWTUser | Promise<JWTUser | undefined> | undefined;
|
|
23
|
+
/** Override this function to handle synchronous (blocking) verification of the login info. */
|
|
24
|
+
verifySync(uid: string, secret: string): JWTUser | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Implements an authentication strategy that performs basic id and password authentication. This strategy requires an
|
|
28
|
+
* existing user account to have already registered a valid password that will be validated. The strategy does not
|
|
29
|
+
* implement how that password is to be validated or stored.
|
|
30
|
+
*
|
|
31
|
+
* @author Jean-Philippe Steinmetz <rapidrests@gmail.com>
|
|
32
|
+
*/
|
|
33
|
+
export declare class BasicStrategy implements AuthStrategy {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
private options;
|
|
36
|
+
constructor(options?: BasicStrategyOptions);
|
|
37
|
+
authenticate(req: HttpRequest, res: HttpResponse, required?: boolean): Promise<AuthResult | undefined>;
|
|
38
|
+
authenticateSync(req: HttpRequest, res: HttpResponse, required?: boolean): AuthResult | undefined;
|
|
39
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { JWTUser } from "@rapidrest/core";
|
|
2
|
+
import { AuthResult, AuthStrategy, HttpRequest, HttpResponse } from "@rapidrest/service-core";
|
|
3
|
+
import { PasskeyConfig, StoredPasskeyCredential } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the configuration options that can be used to initialize FIDO2Strategy.
|
|
6
|
+
*
|
|
7
|
+
* @author Jean-Philippe Steinmetz
|
|
8
|
+
*/
|
|
9
|
+
export declare class FIDO2StrategyOptions {
|
|
10
|
+
/**
|
|
11
|
+
* The relying party configuration to use for this strategy.
|
|
12
|
+
*/
|
|
13
|
+
config: PasskeyConfig;
|
|
14
|
+
constructor(config: PasskeyConfig);
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a previously-registered credential by its ID. Returns `undefined` if no credential
|
|
17
|
+
* with that ID is known.
|
|
18
|
+
* NOTE: You must override this function when using this strategy.
|
|
19
|
+
*/
|
|
20
|
+
getCredentialById(credentialId: string): Promise<StoredPasskeyCredential | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves all credentials registered for the given user. Used to build the `allowCredentials`
|
|
23
|
+
* list when a login ceremony is started with a known user hint.
|
|
24
|
+
* NOTE: You must override this function when using this strategy.
|
|
25
|
+
* @param id The unique identifier of the user or alias.
|
|
26
|
+
*/
|
|
27
|
+
getCredentials(id: string): Promise<StoredPasskeyCredential[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Persists the updated signature counter for the given credential after a successful
|
|
30
|
+
* authentication. Must be called on every successful login to guard against cloned authenticators.
|
|
31
|
+
* NOTE: You must override this function when using this strategy.
|
|
32
|
+
*/
|
|
33
|
+
updateCredentialCounter(credentialId: string, newCounter: number): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves the user data for the given unique identifier after authentication has completed successfully.
|
|
36
|
+
* NOTE: You must override this function when using this strategy.
|
|
37
|
+
* @param id The unique identifier of the user that has been successfully authenticated.
|
|
38
|
+
*/
|
|
39
|
+
getUser(uid: string): Promise<JWTUser | undefined>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Implements an authentication strategy for performing FIDO2 hardware security key (e.g. YubiKey)
|
|
43
|
+
* login via WebAuthn/CTAP2. Functionally this is the same WebAuthn protocol used by `PasskeyStrategy`
|
|
44
|
+
* — the distinction is one of intent and configuration (see `PasskeyConfig.authenticatorAttachment`/
|
|
45
|
+
* `residentKey`): a FIDO2 hardware key is typically registered as a `"cross-platform"`, non-discoverable
|
|
46
|
+
* credential tied to a known account, rather than a discoverable, possibly-synced passkey.
|
|
47
|
+
*
|
|
48
|
+
* The login flow has two phases:
|
|
49
|
+
*
|
|
50
|
+
* 1. Challenge - The client requests a challenge. A random challenge is generated and stored in the
|
|
51
|
+
* session, and the resulting options are returned for use with
|
|
52
|
+
* `navigator.credentials.get()`.
|
|
53
|
+
* 2. Verify - The client submits the signed assertion response. The response is verified against the
|
|
54
|
+
* stored challenge and the credential's public key, the credential's signature counter is updated,
|
|
55
|
+
* and the associated user is resolved via `verify()`.
|
|
56
|
+
*
|
|
57
|
+
* NOTE: Requires session support!
|
|
58
|
+
*
|
|
59
|
+
* @author Jean-Philippe Steinmetz <rapidrests@gmail.com>
|
|
60
|
+
*/
|
|
61
|
+
export declare class FIDO2Strategy implements AuthStrategy {
|
|
62
|
+
readonly name: string;
|
|
63
|
+
private options;
|
|
64
|
+
constructor(options: FIDO2StrategyOptions);
|
|
65
|
+
authenticate(req: HttpRequest, res: HttpResponse, required?: boolean): Promise<AuthResult | undefined>;
|
|
66
|
+
authenticateSync(req: HttpRequest, res: HttpResponse, required?: boolean): AuthResult | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Begins a login ceremony: generates a challenge, stores it in the session, and writes the
|
|
69
|
+
* resulting options directly to the response for the client to pass to `navigator.credentials.get()`.
|
|
70
|
+
*
|
|
71
|
+
* @param req The source HTTP request. May optionally carry a `uid` query parameter to scope the
|
|
72
|
+
* allowed credentials to a known user; omitted entirely for a discoverable/"usernameless" flow.
|
|
73
|
+
* @param res The response to write the generated options to.
|
|
74
|
+
*/
|
|
75
|
+
protected challenge(req: HttpRequest, res: HttpResponse): Promise<undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Finishes a login ceremony: verifies the client-submitted assertion response against the
|
|
78
|
+
* stored challenge and credential, updates the credential's signature counter, and resolves the
|
|
79
|
+
* associated user.
|
|
80
|
+
*
|
|
81
|
+
* @param req The source HTTP request, carrying the assertion response in its body.
|
|
82
|
+
* @param required Set to `true` if authentication is required to pass, otherwise set to `false`.
|
|
83
|
+
*/
|
|
84
|
+
protected verify(req: HttpRequest, required?: boolean): Promise<AuthResult | undefined>;
|
|
85
|
+
}
|