@twin.org/api-auth-entity-storage-service 0.0.1-next.9 → 0.0.2-next.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.
Files changed (31) hide show
  1. package/dist/cjs/index.cjs +221 -19
  2. package/dist/esm/index.mjs +223 -23
  3. package/dist/types/index.d.ts +5 -0
  4. package/dist/types/models/IAuthHeaderProcessorConstructorOptions.d.ts +15 -0
  5. package/dist/types/models/IEntityStorageAuthenticationAdminServiceConfig.d.ts +10 -0
  6. package/dist/types/models/IEntityStorageAuthenticationAdminServiceConstructorOptions.d.ts +15 -0
  7. package/dist/types/models/IEntityStorageAuthenticationServiceConstructorOptions.d.ts +25 -0
  8. package/dist/types/processors/authHeaderProcessor.d.ts +10 -11
  9. package/dist/types/routes/entityStorageAuthenticationRoutes.d.ts +9 -1
  10. package/dist/types/services/entityStorageAuthenticationAdminService.d.ts +42 -0
  11. package/dist/types/services/entityStorageAuthenticationService.d.ts +14 -9
  12. package/dist/types/utils/tokenHelper.d.ts +1 -1
  13. package/docs/changelog.md +115 -1
  14. package/docs/reference/classes/AuthHeaderProcessor.md +50 -28
  15. package/docs/reference/classes/AuthenticationUser.md +3 -3
  16. package/docs/reference/classes/EntityStorageAuthenticationAdminService.md +149 -0
  17. package/docs/reference/classes/EntityStorageAuthenticationService.md +71 -39
  18. package/docs/reference/classes/PasswordHelper.md +9 -5
  19. package/docs/reference/classes/TokenHelper.md +36 -34
  20. package/docs/reference/functions/authenticationLogin.md +9 -3
  21. package/docs/reference/functions/authenticationLogout.md +9 -3
  22. package/docs/reference/functions/authenticationRefreshToken.md +9 -3
  23. package/docs/reference/functions/authenticationUpdatePassword.md +31 -0
  24. package/docs/reference/functions/generateRestRoutesAuthentication.md +8 -4
  25. package/docs/reference/index.md +6 -0
  26. package/docs/reference/interfaces/IAuthHeaderProcessorConstructorOptions.md +25 -0
  27. package/docs/reference/interfaces/IEntityStorageAuthenticationAdminServiceConfig.md +17 -0
  28. package/docs/reference/interfaces/IEntityStorageAuthenticationAdminServiceConstructorOptions.md +25 -0
  29. package/docs/reference/interfaces/IEntityStorageAuthenticationServiceConstructorOptions.md +53 -0
  30. package/locales/en.json +10 -1
  31. package/package.json +6 -6
@@ -1,10 +1,15 @@
1
1
  export * from "./entities/authenticationUser";
2
2
  export * from "./models/IAuthHeaderProcessorConfig";
3
+ export * from "./models/IAuthHeaderProcessorConstructorOptions";
4
+ export * from "./models/IEntityStorageAuthenticationAdminServiceConfig";
5
+ export * from "./models/IEntityStorageAuthenticationAdminServiceConstructorOptions";
3
6
  export * from "./models/IEntityStorageAuthenticationServiceConfig";
7
+ export * from "./models/IEntityStorageAuthenticationServiceConstructorOptions";
4
8
  export * from "./processors/authHeaderProcessor";
5
9
  export * from "./restEntryPoints";
6
10
  export * from "./routes/entityStorageAuthenticationRoutes";
7
11
  export * from "./schema";
12
+ export * from "./services/entityStorageAuthenticationAdminService";
8
13
  export * from "./services/entityStorageAuthenticationService";
9
14
  export * from "./utils/passwordHelper";
10
15
  export * from "./utils/tokenHelper";
@@ -0,0 +1,15 @@
1
+ import type { IAuthHeaderProcessorConfig } from "./IAuthHeaderProcessorConfig";
2
+ /**
3
+ * Options for the AuthHeaderProcessor constructor.
4
+ */
5
+ export interface IAuthHeaderProcessorConstructorOptions {
6
+ /**
7
+ * The vault for the private keys.
8
+ * @default vault
9
+ */
10
+ vaultConnectorType?: string;
11
+ /**
12
+ * The configuration for the processor.
13
+ */
14
+ config?: IAuthHeaderProcessorConfig;
15
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Configuration for the entity storage authentication admin service.
3
+ */
4
+ export interface IEntityStorageAuthenticationAdminServiceConfig {
5
+ /**
6
+ * The minimum password length.
7
+ * @default 8
8
+ */
9
+ minPasswordLength?: number;
10
+ }
@@ -0,0 +1,15 @@
1
+ import type { IEntityStorageAuthenticationAdminServiceConfig } from "./IEntityStorageAuthenticationAdminServiceConfig";
2
+ /**
3
+ * Options for the EntityStorageAuthenticationAdminService constructor.
4
+ */
5
+ export interface IEntityStorageAuthenticationAdminServiceConstructorOptions {
6
+ /**
7
+ * The entity storage for the users.
8
+ * @default authentication-user
9
+ */
10
+ userEntityStorageType?: string;
11
+ /**
12
+ * The configuration for the authentication.
13
+ */
14
+ config?: IEntityStorageAuthenticationAdminServiceConfig;
15
+ }
@@ -0,0 +1,25 @@
1
+ import type { IEntityStorageAuthenticationServiceConfig } from "./IEntityStorageAuthenticationServiceConfig";
2
+ /**
3
+ * Options for the EntityStorageAuthenticationService constructor.
4
+ */
5
+ export interface IEntityStorageAuthenticationServiceConstructorOptions {
6
+ /**
7
+ * The entity storage for the users.
8
+ * @default authentication-user
9
+ */
10
+ userEntityStorageType?: string;
11
+ /**
12
+ * The vault for the private keys.
13
+ * @default vault
14
+ */
15
+ vaultConnectorType?: string;
16
+ /**
17
+ * The admin service.
18
+ * @default authentication-admin
19
+ */
20
+ authenticationAdminServiceType?: string;
21
+ /**
22
+ * The configuration for the authentication.
23
+ */
24
+ config?: IEntityStorageAuthenticationServiceConfig;
25
+ }
@@ -1,9 +1,13 @@
1
- import { type IHttpRequestIdentity, type IHttpResponse, type IHttpRestRouteProcessor, type IHttpServerRequest, type IRestRoute } from "@twin.org/api-models";
2
- import type { IAuthHeaderProcessorConfig } from "../models/IAuthHeaderProcessorConfig";
1
+ import { type IBaseRoute, type IBaseRouteProcessor, type IHttpRequestIdentity, type IHttpResponse, type IHttpServerRequest } from "@twin.org/api-models";
2
+ import type { IAuthHeaderProcessorConstructorOptions } from "../models/IAuthHeaderProcessorConstructorOptions";
3
3
  /**
4
4
  * Handle a JWT token in the authorization header or cookies and validate it to populate request context identity.
5
5
  */
6
- export declare class AuthHeaderProcessor implements IHttpRestRouteProcessor {
6
+ export declare class AuthHeaderProcessor implements IBaseRouteProcessor {
7
+ /**
8
+ * The namespace supported by the processor.
9
+ */
10
+ static readonly NAMESPACE: string;
7
11
  /**
8
12
  * Runtime name for the class.
9
13
  */
@@ -11,13 +15,8 @@ export declare class AuthHeaderProcessor implements IHttpRestRouteProcessor {
11
15
  /**
12
16
  * Create a new instance of AuthCookiePreProcessor.
13
17
  * @param options Options for the processor.
14
- * @param options.vaultConnectorType The vault for the private keys, defaults to "vault".
15
- * @param options.config The configuration for the processor.
16
18
  */
17
- constructor(options?: {
18
- vaultConnectorType?: string;
19
- config?: IAuthHeaderProcessorConfig;
20
- });
19
+ constructor(options?: IAuthHeaderProcessorConstructorOptions);
21
20
  /**
22
21
  * The service needs to be started when the application is initialized.
23
22
  * @param nodeIdentity The identity of the node.
@@ -33,7 +32,7 @@ export declare class AuthHeaderProcessor implements IHttpRestRouteProcessor {
33
32
  * @param requestIdentity The identity context for the request.
34
33
  * @param processorState The state handed through the processors.
35
34
  */
36
- pre(request: IHttpServerRequest, response: IHttpResponse, route: IRestRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
35
+ pre(request: IHttpServerRequest, response: IHttpResponse, route: IBaseRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
37
36
  [id: string]: unknown;
38
37
  }): Promise<void>;
39
38
  /**
@@ -44,7 +43,7 @@ export declare class AuthHeaderProcessor implements IHttpRestRouteProcessor {
44
43
  * @param requestIdentity The identity context for the request.
45
44
  * @param processorState The state handed through the processors.
46
45
  */
47
- post(request: IHttpServerRequest, response: IHttpResponse, route: IRestRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
46
+ post(request: IHttpServerRequest, response: IHttpResponse, route: IBaseRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
48
47
  [id: string]: unknown;
49
48
  }): Promise<void>;
50
49
  }
@@ -1,4 +1,4 @@
1
- import type { ILoginRequest, ILoginResponse, ILogoutRequest, IRefreshTokenRequest, IRefreshTokenResponse } from "@twin.org/api-auth-entity-storage-models";
1
+ import type { ILoginRequest, ILoginResponse, ILogoutRequest, IRefreshTokenRequest, IRefreshTokenResponse, IUpdatePasswordRequest } from "@twin.org/api-auth-entity-storage-models";
2
2
  import type { IHttpRequestContext, INoContentResponse, IRestRoute, IRestRouteResponseOptions, ITag } from "@twin.org/api-models";
3
3
  /**
4
4
  * The tag to associate with the routes.
@@ -35,3 +35,11 @@ export declare function authenticationLogout(httpRequestContext: IHttpRequestCon
35
35
  * @returns The response object with additional http response properties.
36
36
  */
37
37
  export declare function authenticationRefreshToken(httpRequestContext: IHttpRequestContext, componentName: string, request: IRefreshTokenRequest): Promise<IRefreshTokenResponse & IRestRouteResponseOptions>;
38
+ /**
39
+ * Update the user's password.
40
+ * @param httpRequestContext The request context for the API.
41
+ * @param componentName The name of the component to use in the routes.
42
+ * @param request The request.
43
+ * @returns The response object with additional http response properties.
44
+ */
45
+ export declare function authenticationUpdatePassword(httpRequestContext: IHttpRequestContext, componentName: string, request: IUpdatePasswordRequest): Promise<INoContentResponse>;
@@ -0,0 +1,42 @@
1
+ import type { IAuthenticationAdminComponent } from "@twin.org/api-auth-entity-storage-models";
2
+ import type { IEntityStorageAuthenticationAdminServiceConstructorOptions } from "../models/IEntityStorageAuthenticationAdminServiceConstructorOptions";
3
+ /**
4
+ * Implementation of the authentication component using entity storage.
5
+ */
6
+ export declare class EntityStorageAuthenticationAdminService implements IAuthenticationAdminComponent {
7
+ /**
8
+ * The namespace supported by the authentication service.
9
+ */
10
+ static readonly NAMESPACE: string;
11
+ /**
12
+ * Runtime name for the class.
13
+ */
14
+ readonly CLASS_NAME: string;
15
+ /**
16
+ * Create a new instance of EntityStorageAuthentication.
17
+ * @param options The dependencies for the identity connector.
18
+ */
19
+ constructor(options?: IEntityStorageAuthenticationAdminServiceConstructorOptions);
20
+ /**
21
+ * Create a login for the user.
22
+ * @param email The email address for the user.
23
+ * @param password The password for the user.
24
+ * @param identity The DID to associate with the account.
25
+ * @returns Nothing.
26
+ */
27
+ create(email: string, password: string, identity: string): Promise<void>;
28
+ /**
29
+ * Remove the current user.
30
+ * @param email The email address of the user to remove.
31
+ * @returns Nothing.
32
+ */
33
+ remove(email: string): Promise<void>;
34
+ /**
35
+ * Update the user's password.
36
+ * @param email The email address of the user to update.
37
+ * @param newPassword The new password for the user.
38
+ * @param currentPassword The current password, optional, if supplied will check against existing.
39
+ * @returns Nothing.
40
+ */
41
+ updatePassword(email: string, newPassword: string, currentPassword?: string): Promise<void>;
42
+ }
@@ -1,9 +1,13 @@
1
1
  import type { IAuthenticationComponent } from "@twin.org/api-auth-entity-storage-models";
2
- import type { IEntityStorageAuthenticationServiceConfig } from "../models/IEntityStorageAuthenticationServiceConfig";
2
+ import type { IEntityStorageAuthenticationServiceConstructorOptions } from "../models/IEntityStorageAuthenticationServiceConstructorOptions";
3
3
  /**
4
4
  * Implementation of the authentication component using entity storage.
5
5
  */
6
6
  export declare class EntityStorageAuthenticationService implements IAuthenticationComponent {
7
+ /**
8
+ * The namespace supported by the authentication service.
9
+ */
10
+ static readonly NAMESPACE: string;
7
11
  /**
8
12
  * Runtime name for the class.
9
13
  */
@@ -11,15 +15,8 @@ export declare class EntityStorageAuthenticationService implements IAuthenticati
11
15
  /**
12
16
  * Create a new instance of EntityStorageAuthentication.
13
17
  * @param options The dependencies for the identity connector.
14
- * @param options.userEntityStorageType The entity storage for the users, defaults to "authentication-user".
15
- * @param options.vaultConnectorType The vault for the private keys, defaults to "vault".
16
- * @param options.config The configuration for the authentication.
17
18
  */
18
- constructor(options?: {
19
- userEntityStorageType?: string;
20
- vaultConnectorType?: string;
21
- config?: IEntityStorageAuthenticationServiceConfig;
22
- });
19
+ constructor(options?: IEntityStorageAuthenticationServiceConstructorOptions);
23
20
  /**
24
21
  * The service needs to be started when the application is initialized.
25
22
  * @param nodeIdentity The identity of the node.
@@ -52,4 +49,12 @@ export declare class EntityStorageAuthenticationService implements IAuthenticati
52
49
  token: string;
53
50
  expiry: number;
54
51
  }>;
52
+ /**
53
+ * Update the user's password.
54
+ * @param email The email address of the user to update.
55
+ * @param currentPassword The current password for the user.
56
+ * @param newPassword The new password for the user.
57
+ * @returns Nothing.
58
+ */
59
+ updatePassword(email: string, currentPassword: string, newPassword: string): Promise<void>;
55
60
  }
@@ -1,4 +1,4 @@
1
- import type { IVaultConnector } from "@twin.org/vault-models";
1
+ import { type IVaultConnector } from "@twin.org/vault-models";
2
2
  import { type IHttpHeaders, type IJwtHeader, type IJwtPayload } from "@twin.org/web";
3
3
  /**
4
4
  * Helper class for token operations.
package/docs/changelog.md CHANGED
@@ -1,5 +1,119 @@
1
1
  # @twin.org/api-auth-entity-storage-service - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## [0.0.2-next.1](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.0...api-auth-entity-storage-service-v0.0.2-next.1) (2025-07-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * add json-ld mime type processor and auth admin component ([8861791](https://github.com/twinfoundation/api/commit/88617916e23bfbca023dbae1976fe421983a02ff))
9
+ * update dependencies ([1171dc4](https://github.com/twinfoundation/api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
10
+ * use shared store mechanism ([#19](https://github.com/twinfoundation/api/issues/19)) ([32116df](https://github.com/twinfoundation/api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * The following workspace dependencies were updated
16
+ * dependencies
17
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.0 to 0.0.2-next.1
18
+ * @twin.org/api-core bumped from 0.0.2-next.0 to 0.0.2-next.1
19
+ * @twin.org/api-models bumped from 0.0.2-next.0 to 0.0.2-next.1
20
+
21
+ ## 0.0.1 (2025-07-03)
22
+
23
+
24
+ ### Features
25
+
26
+ * release to production ([70ee2d5](https://github.com/twinfoundation/api/commit/70ee2d56a1dc9537d7c9c154d4cb78a235678a3a))
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @twin.org/api-auth-entity-storage-models bumped from ^0.0.0 to ^0.0.1
34
+ * @twin.org/api-core bumped from ^0.0.0 to ^0.0.1
35
+ * @twin.org/api-models bumped from ^0.0.0 to ^0.0.1
36
+
37
+ ## [0.0.1-next.36](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.1-next.35...api-auth-entity-storage-service-v0.0.1-next.36) (2025-06-17)
38
+
39
+
40
+ ### Miscellaneous Chores
41
+
42
+ * **api-auth-entity-storage-service:** Synchronize repo versions
43
+
44
+
45
+ ### Dependencies
46
+
47
+ * The following workspace dependencies were updated
48
+ * dependencies
49
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.1-next.35 to 0.0.1-next.36
50
+ * @twin.org/api-core bumped from 0.0.1-next.35 to 0.0.1-next.36
51
+ * @twin.org/api-models bumped from 0.0.1-next.35 to 0.0.1-next.36
52
+
53
+ ## [0.0.1-next.35](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.1-next.34...api-auth-entity-storage-service-v0.0.1-next.35) (2025-06-11)
54
+
55
+
56
+ ### Features
57
+
58
+ * update dependencies ([1171dc4](https://github.com/twinfoundation/api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
59
+
60
+
61
+ ### Dependencies
62
+
63
+ * The following workspace dependencies were updated
64
+ * dependencies
65
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.1-next.34 to 0.0.1-next.35
66
+ * @twin.org/api-core bumped from 0.0.1-next.34 to 0.0.1-next.35
67
+ * @twin.org/api-models bumped from 0.0.1-next.34 to 0.0.1-next.35
68
+
69
+ ## [0.0.1-next.34](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.1-next.33...api-auth-entity-storage-service-v0.0.1-next.34) (2025-05-27)
70
+
71
+
72
+ ### Miscellaneous Chores
73
+
74
+ * **api-auth-entity-storage-service:** Synchronize repo versions
75
+
76
+
77
+ ### Dependencies
78
+
79
+ * The following workspace dependencies were updated
80
+ * dependencies
81
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.1-next.33 to 0.0.1-next.34
82
+ * @twin.org/api-core bumped from 0.0.1-next.33 to 0.0.1-next.34
83
+ * @twin.org/api-models bumped from 0.0.1-next.33 to 0.0.1-next.34
84
+
85
+ ## [0.0.1-next.33](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.1-next.32...api-auth-entity-storage-service-v0.0.1-next.33) (2025-04-17)
86
+
87
+
88
+ ### Features
89
+
90
+ * use shared store mechanism ([#19](https://github.com/twinfoundation/api/issues/19)) ([32116df](https://github.com/twinfoundation/api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
91
+
92
+
93
+ ### Dependencies
94
+
95
+ * The following workspace dependencies were updated
96
+ * dependencies
97
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.1-next.32 to 0.0.1-next.33
98
+ * @twin.org/api-core bumped from 0.0.1-next.32 to 0.0.1-next.33
99
+ * @twin.org/api-models bumped from 0.0.1-next.32 to 0.0.1-next.33
100
+
101
+ ## [0.0.1-next.32](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.1-next.31...api-auth-entity-storage-service-v0.0.1-next.32) (2025-03-28)
102
+
103
+
104
+ ### Miscellaneous Chores
105
+
106
+ * **api-auth-entity-storage-service:** Synchronize repo versions
107
+
108
+
109
+ ### Dependencies
110
+
111
+ * The following workspace dependencies were updated
112
+ * dependencies
113
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.1-next.31 to 0.0.1-next.32
114
+ * @twin.org/api-core bumped from 0.0.1-next.31 to 0.0.1-next.32
115
+ * @twin.org/api-models bumped from 0.0.1-next.31 to 0.0.1-next.32
116
+
117
+ ## v0.0.1-next.31
4
118
 
5
119
  - Initial Release
@@ -4,35 +4,37 @@ Handle a JWT token in the authorization header or cookies and validate it to pop
4
4
 
5
5
  ## Implements
6
6
 
7
- - `IHttpRestRouteProcessor`
7
+ - `IBaseRouteProcessor`
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new AuthHeaderProcessor()
11
+ ### Constructor
12
12
 
13
- > **new AuthHeaderProcessor**(`options`?): [`AuthHeaderProcessor`](AuthHeaderProcessor.md)
13
+ > **new AuthHeaderProcessor**(`options?`): `AuthHeaderProcessor`
14
14
 
15
15
  Create a new instance of AuthCookiePreProcessor.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **options?**
19
+ ##### options?
20
+
21
+ [`IAuthHeaderProcessorConstructorOptions`](../interfaces/IAuthHeaderProcessorConstructorOptions.md)
20
22
 
21
23
  Options for the processor.
22
24
 
23
- **options.vaultConnectorType?**: `string`
25
+ #### Returns
24
26
 
25
- The vault for the private keys, defaults to "vault".
27
+ `AuthHeaderProcessor`
26
28
 
27
- **options.config?**: [`IAuthHeaderProcessorConfig`](../interfaces/IAuthHeaderProcessorConfig.md)
29
+ ## Properties
28
30
 
29
- The configuration for the processor.
31
+ ### NAMESPACE
30
32
 
31
- #### Returns
33
+ > `readonly` `static` **NAMESPACE**: `string` = `"auth-header"`
32
34
 
33
- [`AuthHeaderProcessor`](AuthHeaderProcessor.md)
35
+ The namespace supported by the processor.
34
36
 
35
- ## Properties
37
+ ***
36
38
 
37
39
  ### CLASS\_NAME
38
40
 
@@ -42,23 +44,27 @@ Runtime name for the class.
42
44
 
43
45
  #### Implementation of
44
46
 
45
- `IHttpRestRouteProcessor.CLASS_NAME`
47
+ `IBaseRouteProcessor.CLASS_NAME`
46
48
 
47
49
  ## Methods
48
50
 
49
51
  ### start()
50
52
 
51
- > **start**(`nodeIdentity`, `nodeLoggingConnectorType`?): `Promise`\<`void`\>
53
+ > **start**(`nodeIdentity`, `nodeLoggingConnectorType?`): `Promise`\<`void`\>
52
54
 
53
55
  The service needs to be started when the application is initialized.
54
56
 
55
57
  #### Parameters
56
58
 
57
- **nodeIdentity**: `string`
59
+ ##### nodeIdentity
60
+
61
+ `string`
58
62
 
59
63
  The identity of the node.
60
64
 
61
- **nodeLoggingConnectorType?**: `string`
65
+ ##### nodeLoggingConnectorType?
66
+
67
+ `string`
62
68
 
63
69
  The node logging connector type, defaults to "node-logging".
64
70
 
@@ -70,7 +76,7 @@ Nothing.
70
76
 
71
77
  #### Implementation of
72
78
 
73
- `IHttpRestRouteProcessor.start`
79
+ `IBaseRouteProcessor.start`
74
80
 
75
81
  ***
76
82
 
@@ -82,23 +88,31 @@ Pre process the REST request for the specified route.
82
88
 
83
89
  #### Parameters
84
90
 
85
- **request**: `IHttpServerRequest`\<`any`\>
91
+ ##### request
92
+
93
+ `IHttpServerRequest`
86
94
 
87
95
  The incoming request.
88
96
 
89
- **response**: `IHttpResponse`\<`any`\>
97
+ ##### response
98
+
99
+ `IHttpResponse`
90
100
 
91
101
  The outgoing response.
92
102
 
93
- **route**: `undefined` \| `IRestRoute`\<`any`, `any`\>
103
+ ##### route
94
104
 
95
105
  The route to process.
96
106
 
97
- **requestIdentity**: `IHttpRequestIdentity`
107
+ `undefined` | `IBaseRoute`
108
+
109
+ ##### requestIdentity
110
+
111
+ `IHttpRequestIdentity`
98
112
 
99
113
  The identity context for the request.
100
114
 
101
- **processorState**
115
+ ##### processorState
102
116
 
103
117
  The state handed through the processors.
104
118
 
@@ -108,7 +122,7 @@ The state handed through the processors.
108
122
 
109
123
  #### Implementation of
110
124
 
111
- `IHttpRestRouteProcessor.pre`
125
+ `IBaseRouteProcessor.pre`
112
126
 
113
127
  ***
114
128
 
@@ -120,23 +134,31 @@ Post process the REST request for the specified route.
120
134
 
121
135
  #### Parameters
122
136
 
123
- **request**: `IHttpServerRequest`\<`any`\>
137
+ ##### request
138
+
139
+ `IHttpServerRequest`
124
140
 
125
141
  The incoming request.
126
142
 
127
- **response**: `IHttpResponse`\<`any`\>
143
+ ##### response
144
+
145
+ `IHttpResponse`
128
146
 
129
147
  The outgoing response.
130
148
 
131
- **route**: `undefined` \| `IRestRoute`\<`any`, `any`\>
149
+ ##### route
132
150
 
133
151
  The route to process.
134
152
 
135
- **requestIdentity**: `IHttpRequestIdentity`
153
+ `undefined` | `IBaseRoute`
154
+
155
+ ##### requestIdentity
156
+
157
+ `IHttpRequestIdentity`
136
158
 
137
159
  The identity context for the request.
138
160
 
139
- **processorState**
161
+ ##### processorState
140
162
 
141
163
  The state handed through the processors.
142
164
 
@@ -146,4 +168,4 @@ The state handed through the processors.
146
168
 
147
169
  #### Implementation of
148
170
 
149
- `IHttpRestRouteProcessor.post`
171
+ `IBaseRouteProcessor.post`
@@ -4,13 +4,13 @@ Class defining the storage for user login credentials.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new AuthenticationUser()
7
+ ### Constructor
8
8
 
9
- > **new AuthenticationUser**(): [`AuthenticationUser`](AuthenticationUser.md)
9
+ > **new AuthenticationUser**(): `AuthenticationUser`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`AuthenticationUser`](AuthenticationUser.md)
13
+ `AuthenticationUser`
14
14
 
15
15
  ## Properties
16
16