@twin.org/api-auth-entity-storage-service 0.0.2-next.1 → 0.0.2-next.11
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/dist/cjs/index.cjs +8 -19
- package/dist/esm/index.mjs +9 -20
- package/dist/types/processors/authHeaderProcessor.d.ts +2 -6
- package/dist/types/services/entityStorageAuthenticationAdminService.d.ts +0 -4
- package/dist/types/services/entityStorageAuthenticationService.d.ts +2 -6
- package/docs/changelog.md +164 -0
- package/docs/reference/classes/AuthHeaderProcessor.md +4 -12
- package/docs/reference/classes/EntityStorageAuthenticationAdminService.md +0 -8
- package/docs/reference/classes/EntityStorageAuthenticationService.md +4 -12
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -117,9 +117,10 @@ class TokenHelper {
|
|
|
117
117
|
static extractTokenFromHeaders(headers, cookieName) {
|
|
118
118
|
const authHeader = headers?.[web.HeaderTypes.Authorization];
|
|
119
119
|
const cookiesHeader = headers?.[web.HeaderTypes.Cookie];
|
|
120
|
-
|
|
120
|
+
const bearerToken = web.HeaderHelper.extractBearer(authHeader);
|
|
121
|
+
if (core.Is.stringValue(bearerToken)) {
|
|
121
122
|
return {
|
|
122
|
-
token:
|
|
123
|
+
token: bearerToken,
|
|
123
124
|
location: "authorization"
|
|
124
125
|
};
|
|
125
126
|
}
|
|
@@ -149,10 +150,6 @@ class TokenHelper {
|
|
|
149
150
|
* Handle a JWT token in the authorization header or cookies and validate it to populate request context identity.
|
|
150
151
|
*/
|
|
151
152
|
class AuthHeaderProcessor {
|
|
152
|
-
/**
|
|
153
|
-
* The namespace supported by the processor.
|
|
154
|
-
*/
|
|
155
|
-
static NAMESPACE = "auth-header";
|
|
156
153
|
/**
|
|
157
154
|
* The default name for the access token as a cookie.
|
|
158
155
|
* @internal
|
|
@@ -194,10 +191,10 @@ class AuthHeaderProcessor {
|
|
|
194
191
|
/**
|
|
195
192
|
* The service needs to be started when the application is initialized.
|
|
196
193
|
* @param nodeIdentity The identity of the node.
|
|
197
|
-
* @param
|
|
194
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
198
195
|
* @returns Nothing.
|
|
199
196
|
*/
|
|
200
|
-
async start(nodeIdentity,
|
|
197
|
+
async start(nodeIdentity, nodeLoggingComponentType) {
|
|
201
198
|
core.Guards.string(this.CLASS_NAME, "nodeIdentity", nodeIdentity);
|
|
202
199
|
this._nodeIdentity = nodeIdentity;
|
|
203
200
|
}
|
|
@@ -550,10 +547,6 @@ class PasswordHelper {
|
|
|
550
547
|
* Implementation of the authentication component using entity storage.
|
|
551
548
|
*/
|
|
552
549
|
class EntityStorageAuthenticationAdminService {
|
|
553
|
-
/**
|
|
554
|
-
* The namespace supported by the authentication service.
|
|
555
|
-
*/
|
|
556
|
-
static NAMESPACE = "authentication-admin-entity-storage";
|
|
557
550
|
/**
|
|
558
551
|
* The minimum password length.
|
|
559
552
|
* @internal
|
|
@@ -685,10 +678,6 @@ class EntityStorageAuthenticationAdminService {
|
|
|
685
678
|
* Implementation of the authentication component using entity storage.
|
|
686
679
|
*/
|
|
687
680
|
class EntityStorageAuthenticationService {
|
|
688
|
-
/**
|
|
689
|
-
* The namespace supported by the authentication service.
|
|
690
|
-
*/
|
|
691
|
-
static NAMESPACE = "authentication-entity-storage";
|
|
692
681
|
/**
|
|
693
682
|
* Default TTL in minutes.
|
|
694
683
|
* @internal
|
|
@@ -743,10 +732,10 @@ class EntityStorageAuthenticationService {
|
|
|
743
732
|
/**
|
|
744
733
|
* The service needs to be started when the application is initialized.
|
|
745
734
|
* @param nodeIdentity The identity of the node.
|
|
746
|
-
* @param
|
|
735
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
747
736
|
* @returns Nothing.
|
|
748
737
|
*/
|
|
749
|
-
async start(nodeIdentity,
|
|
738
|
+
async start(nodeIdentity, nodeLoggingComponentType) {
|
|
750
739
|
core.Guards.string(this.CLASS_NAME, "nodeIdentity", nodeIdentity);
|
|
751
740
|
this._nodeIdentity = nodeIdentity;
|
|
752
741
|
}
|
|
@@ -774,7 +763,7 @@ class EntityStorageAuthenticationService {
|
|
|
774
763
|
return tokenAndExpiry;
|
|
775
764
|
}
|
|
776
765
|
catch (error) {
|
|
777
|
-
throw new core.UnauthorizedError(this.CLASS_NAME, "loginFailed", error);
|
|
766
|
+
throw new core.UnauthorizedError(this.CLASS_NAME, "loginFailed", undefined, error);
|
|
778
767
|
}
|
|
779
768
|
}
|
|
780
769
|
/**
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { property, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin
|
|
|
2
2
|
import { HttpErrorHelper } from '@twin.org/api-models';
|
|
3
3
|
import { Is, UnauthorizedError, Guards, BaseError, ComponentFactory, Converter, GeneralError, RandomHelper, NotFoundError } from '@twin.org/core';
|
|
4
4
|
import { VaultConnectorHelper, VaultConnectorFactory } from '@twin.org/vault-models';
|
|
5
|
-
import { Jwt, HeaderTypes, HttpStatusCode } from '@twin.org/web';
|
|
5
|
+
import { Jwt, HeaderTypes, HeaderHelper, HttpStatusCode } from '@twin.org/web';
|
|
6
6
|
import { EntityStorageConnectorFactory } from '@twin.org/entity-storage-models';
|
|
7
7
|
import { Blake2b } from '@twin.org/crypto';
|
|
8
8
|
|
|
@@ -115,9 +115,10 @@ class TokenHelper {
|
|
|
115
115
|
static extractTokenFromHeaders(headers, cookieName) {
|
|
116
116
|
const authHeader = headers?.[HeaderTypes.Authorization];
|
|
117
117
|
const cookiesHeader = headers?.[HeaderTypes.Cookie];
|
|
118
|
-
|
|
118
|
+
const bearerToken = HeaderHelper.extractBearer(authHeader);
|
|
119
|
+
if (Is.stringValue(bearerToken)) {
|
|
119
120
|
return {
|
|
120
|
-
token:
|
|
121
|
+
token: bearerToken,
|
|
121
122
|
location: "authorization"
|
|
122
123
|
};
|
|
123
124
|
}
|
|
@@ -147,10 +148,6 @@ class TokenHelper {
|
|
|
147
148
|
* Handle a JWT token in the authorization header or cookies and validate it to populate request context identity.
|
|
148
149
|
*/
|
|
149
150
|
class AuthHeaderProcessor {
|
|
150
|
-
/**
|
|
151
|
-
* The namespace supported by the processor.
|
|
152
|
-
*/
|
|
153
|
-
static NAMESPACE = "auth-header";
|
|
154
151
|
/**
|
|
155
152
|
* The default name for the access token as a cookie.
|
|
156
153
|
* @internal
|
|
@@ -192,10 +189,10 @@ class AuthHeaderProcessor {
|
|
|
192
189
|
/**
|
|
193
190
|
* The service needs to be started when the application is initialized.
|
|
194
191
|
* @param nodeIdentity The identity of the node.
|
|
195
|
-
* @param
|
|
192
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
196
193
|
* @returns Nothing.
|
|
197
194
|
*/
|
|
198
|
-
async start(nodeIdentity,
|
|
195
|
+
async start(nodeIdentity, nodeLoggingComponentType) {
|
|
199
196
|
Guards.string(this.CLASS_NAME, "nodeIdentity", nodeIdentity);
|
|
200
197
|
this._nodeIdentity = nodeIdentity;
|
|
201
198
|
}
|
|
@@ -548,10 +545,6 @@ class PasswordHelper {
|
|
|
548
545
|
* Implementation of the authentication component using entity storage.
|
|
549
546
|
*/
|
|
550
547
|
class EntityStorageAuthenticationAdminService {
|
|
551
|
-
/**
|
|
552
|
-
* The namespace supported by the authentication service.
|
|
553
|
-
*/
|
|
554
|
-
static NAMESPACE = "authentication-admin-entity-storage";
|
|
555
548
|
/**
|
|
556
549
|
* The minimum password length.
|
|
557
550
|
* @internal
|
|
@@ -683,10 +676,6 @@ class EntityStorageAuthenticationAdminService {
|
|
|
683
676
|
* Implementation of the authentication component using entity storage.
|
|
684
677
|
*/
|
|
685
678
|
class EntityStorageAuthenticationService {
|
|
686
|
-
/**
|
|
687
|
-
* The namespace supported by the authentication service.
|
|
688
|
-
*/
|
|
689
|
-
static NAMESPACE = "authentication-entity-storage";
|
|
690
679
|
/**
|
|
691
680
|
* Default TTL in minutes.
|
|
692
681
|
* @internal
|
|
@@ -741,10 +730,10 @@ class EntityStorageAuthenticationService {
|
|
|
741
730
|
/**
|
|
742
731
|
* The service needs to be started when the application is initialized.
|
|
743
732
|
* @param nodeIdentity The identity of the node.
|
|
744
|
-
* @param
|
|
733
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
745
734
|
* @returns Nothing.
|
|
746
735
|
*/
|
|
747
|
-
async start(nodeIdentity,
|
|
736
|
+
async start(nodeIdentity, nodeLoggingComponentType) {
|
|
748
737
|
Guards.string(this.CLASS_NAME, "nodeIdentity", nodeIdentity);
|
|
749
738
|
this._nodeIdentity = nodeIdentity;
|
|
750
739
|
}
|
|
@@ -772,7 +761,7 @@ class EntityStorageAuthenticationService {
|
|
|
772
761
|
return tokenAndExpiry;
|
|
773
762
|
}
|
|
774
763
|
catch (error) {
|
|
775
|
-
throw new UnauthorizedError(this.CLASS_NAME, "loginFailed", error);
|
|
764
|
+
throw new UnauthorizedError(this.CLASS_NAME, "loginFailed", undefined, error);
|
|
776
765
|
}
|
|
777
766
|
}
|
|
778
767
|
/**
|
|
@@ -4,10 +4,6 @@ import type { IAuthHeaderProcessorConstructorOptions } from "../models/IAuthHead
|
|
|
4
4
|
* Handle a JWT token in the authorization header or cookies and validate it to populate request context identity.
|
|
5
5
|
*/
|
|
6
6
|
export declare class AuthHeaderProcessor implements IBaseRouteProcessor {
|
|
7
|
-
/**
|
|
8
|
-
* The namespace supported by the processor.
|
|
9
|
-
*/
|
|
10
|
-
static readonly NAMESPACE: string;
|
|
11
7
|
/**
|
|
12
8
|
* Runtime name for the class.
|
|
13
9
|
*/
|
|
@@ -20,10 +16,10 @@ export declare class AuthHeaderProcessor implements IBaseRouteProcessor {
|
|
|
20
16
|
/**
|
|
21
17
|
* The service needs to be started when the application is initialized.
|
|
22
18
|
* @param nodeIdentity The identity of the node.
|
|
23
|
-
* @param
|
|
19
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
24
20
|
* @returns Nothing.
|
|
25
21
|
*/
|
|
26
|
-
start(nodeIdentity
|
|
22
|
+
start(nodeIdentity?: string, nodeLoggingComponentType?: string): Promise<void>;
|
|
27
23
|
/**
|
|
28
24
|
* Pre process the REST request for the specified route.
|
|
29
25
|
* @param request The incoming request.
|
|
@@ -4,10 +4,6 @@ import type { IEntityStorageAuthenticationAdminServiceConstructorOptions } from
|
|
|
4
4
|
* Implementation of the authentication component using entity storage.
|
|
5
5
|
*/
|
|
6
6
|
export declare class EntityStorageAuthenticationAdminService implements IAuthenticationAdminComponent {
|
|
7
|
-
/**
|
|
8
|
-
* The namespace supported by the authentication service.
|
|
9
|
-
*/
|
|
10
|
-
static readonly NAMESPACE: string;
|
|
11
7
|
/**
|
|
12
8
|
* Runtime name for the class.
|
|
13
9
|
*/
|
|
@@ -4,10 +4,6 @@ import type { IEntityStorageAuthenticationServiceConstructorOptions } from "../m
|
|
|
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;
|
|
11
7
|
/**
|
|
12
8
|
* Runtime name for the class.
|
|
13
9
|
*/
|
|
@@ -20,10 +16,10 @@ export declare class EntityStorageAuthenticationService implements IAuthenticati
|
|
|
20
16
|
/**
|
|
21
17
|
* The service needs to be started when the application is initialized.
|
|
22
18
|
* @param nodeIdentity The identity of the node.
|
|
23
|
-
* @param
|
|
19
|
+
* @param nodeLoggingComponentType The node logging component type.
|
|
24
20
|
* @returns Nothing.
|
|
25
21
|
*/
|
|
26
|
-
start(nodeIdentity
|
|
22
|
+
start(nodeIdentity?: string, nodeLoggingComponentType?: string): Promise<void>;
|
|
27
23
|
/**
|
|
28
24
|
* Perform a login for the user.
|
|
29
25
|
* @param email The email address for the user.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,169 @@
|
|
|
1
1
|
# @twin.org/api-auth-entity-storage-service - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.10...api-auth-entity-storage-service-v0.0.2-next.11) (2025-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update IComponent signatures ([915ce37](https://github.com/twinfoundation/api/commit/915ce37712326ab4aa6869c350eabaa4622e8430))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
16
|
+
* @twin.org/api-core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
17
|
+
* @twin.org/api-models bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
18
|
+
|
|
19
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.9...api-auth-entity-storage-service-v0.0.2-next.10) (2025-09-23)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* use new extractBearer method ([3e0cc54](https://github.com/twinfoundation/api/commit/3e0cc5462c06f59a6b744386eeff8326e5abbc95))
|
|
25
|
+
* use new extractBearerToken method ([df654e9](https://github.com/twinfoundation/api/commit/df654e9caee5bd62f0be36f7be9902c8fab6ead6))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* The following workspace dependencies were updated
|
|
31
|
+
* dependencies
|
|
32
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
33
|
+
* @twin.org/api-core bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
34
|
+
* @twin.org/api-models bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
35
|
+
|
|
36
|
+
## [0.0.2-next.9](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.8...api-auth-entity-storage-service-v0.0.2-next.9) (2025-08-29)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* eslint migration to flat config ([0dd5820](https://github.com/twinfoundation/api/commit/0dd5820e3af97350fd08b8d226f4a6c1a9246805))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Dependencies
|
|
45
|
+
|
|
46
|
+
* The following workspace dependencies were updated
|
|
47
|
+
* dependencies
|
|
48
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.8 to 0.0.2-next.9
|
|
49
|
+
* @twin.org/api-core bumped from 0.0.2-next.8 to 0.0.2-next.9
|
|
50
|
+
* @twin.org/api-models bumped from 0.0.2-next.8 to 0.0.2-next.9
|
|
51
|
+
|
|
52
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.7...api-auth-entity-storage-service-v0.0.2-next.8) (2025-08-21)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Miscellaneous Chores
|
|
56
|
+
|
|
57
|
+
* **api-auth-entity-storage-service:** Synchronize repo versions
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Dependencies
|
|
61
|
+
|
|
62
|
+
* The following workspace dependencies were updated
|
|
63
|
+
* dependencies
|
|
64
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
65
|
+
* @twin.org/api-core bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
66
|
+
* @twin.org/api-models bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
67
|
+
|
|
68
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.6...api-auth-entity-storage-service-v0.0.2-next.7) (2025-08-20)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Miscellaneous Chores
|
|
72
|
+
|
|
73
|
+
* **api-auth-entity-storage-service:** Synchronize repo versions
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Dependencies
|
|
77
|
+
|
|
78
|
+
* The following workspace dependencies were updated
|
|
79
|
+
* dependencies
|
|
80
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
81
|
+
* @twin.org/api-core bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
82
|
+
* @twin.org/api-models bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
83
|
+
|
|
84
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.5...api-auth-entity-storage-service-v0.0.2-next.6) (2025-08-19)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Features
|
|
88
|
+
|
|
89
|
+
* update framework core ([d8eebf2](https://github.com/twinfoundation/api/commit/d8eebf267fa2a0abaa84e58590496e9d20490cfa))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Dependencies
|
|
93
|
+
|
|
94
|
+
* The following workspace dependencies were updated
|
|
95
|
+
* dependencies
|
|
96
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
97
|
+
* @twin.org/api-core bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
98
|
+
* @twin.org/api-models bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
99
|
+
|
|
100
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.4...api-auth-entity-storage-service-v0.0.2-next.5) (2025-07-25)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Features
|
|
104
|
+
|
|
105
|
+
* add json-ld mime type processor and auth admin component ([8861791](https://github.com/twinfoundation/api/commit/88617916e23bfbca023dbae1976fe421983a02ff))
|
|
106
|
+
* remove unused namespace ([08478f2](https://github.com/twinfoundation/api/commit/08478f27efda9beb0271fdb22f6972e918361965))
|
|
107
|
+
* update dependencies ([1171dc4](https://github.com/twinfoundation/api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
|
|
108
|
+
* use shared store mechanism ([#19](https://github.com/twinfoundation/api/issues/19)) ([32116df](https://github.com/twinfoundation/api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Dependencies
|
|
112
|
+
|
|
113
|
+
* The following workspace dependencies were updated
|
|
114
|
+
* dependencies
|
|
115
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
116
|
+
* @twin.org/api-core bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
117
|
+
* @twin.org/api-models bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
118
|
+
|
|
119
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.3...api-auth-entity-storage-service-v0.0.2-next.4) (2025-07-25)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Miscellaneous Chores
|
|
123
|
+
|
|
124
|
+
* **api-auth-entity-storage-service:** Synchronize repo versions
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Dependencies
|
|
128
|
+
|
|
129
|
+
* The following workspace dependencies were updated
|
|
130
|
+
* dependencies
|
|
131
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
132
|
+
* @twin.org/api-core bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
133
|
+
* @twin.org/api-models bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
134
|
+
|
|
135
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.2...api-auth-entity-storage-service-v0.0.2-next.3) (2025-07-24)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
* remove unused namespace ([08478f2](https://github.com/twinfoundation/api/commit/08478f27efda9beb0271fdb22f6972e918361965))
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Dependencies
|
|
144
|
+
|
|
145
|
+
* The following workspace dependencies were updated
|
|
146
|
+
* dependencies
|
|
147
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
148
|
+
* @twin.org/api-core bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
149
|
+
* @twin.org/api-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
150
|
+
|
|
151
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-service-v0.0.2-next.1...api-auth-entity-storage-service-v0.0.2-next.2) (2025-07-17)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### Miscellaneous Chores
|
|
155
|
+
|
|
156
|
+
* **api-auth-entity-storage-service:** Synchronize repo versions
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Dependencies
|
|
160
|
+
|
|
161
|
+
* The following workspace dependencies were updated
|
|
162
|
+
* dependencies
|
|
163
|
+
* @twin.org/api-auth-entity-storage-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
164
|
+
* @twin.org/api-core bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
165
|
+
* @twin.org/api-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
166
|
+
|
|
3
167
|
## [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
168
|
|
|
5
169
|
|
|
@@ -28,14 +28,6 @@ Options for the processor.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### NAMESPACE
|
|
32
|
-
|
|
33
|
-
> `readonly` `static` **NAMESPACE**: `string` = `"auth-header"`
|
|
34
|
-
|
|
35
|
-
The namespace supported by the processor.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
31
|
### CLASS\_NAME
|
|
40
32
|
|
|
41
33
|
> `readonly` **CLASS\_NAME**: `string`
|
|
@@ -50,23 +42,23 @@ Runtime name for the class.
|
|
|
50
42
|
|
|
51
43
|
### start()
|
|
52
44
|
|
|
53
|
-
> **start**(`nodeIdentity
|
|
45
|
+
> **start**(`nodeIdentity?`, `nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
54
46
|
|
|
55
47
|
The service needs to be started when the application is initialized.
|
|
56
48
|
|
|
57
49
|
#### Parameters
|
|
58
50
|
|
|
59
|
-
##### nodeIdentity
|
|
51
|
+
##### nodeIdentity?
|
|
60
52
|
|
|
61
53
|
`string`
|
|
62
54
|
|
|
63
55
|
The identity of the node.
|
|
64
56
|
|
|
65
|
-
#####
|
|
57
|
+
##### nodeLoggingComponentType?
|
|
66
58
|
|
|
67
59
|
`string`
|
|
68
60
|
|
|
69
|
-
The node logging
|
|
61
|
+
The node logging component type.
|
|
70
62
|
|
|
71
63
|
#### Returns
|
|
72
64
|
|
|
@@ -28,14 +28,6 @@ The dependencies for the identity connector.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### NAMESPACE
|
|
32
|
-
|
|
33
|
-
> `readonly` `static` **NAMESPACE**: `string` = `"authentication-admin-entity-storage"`
|
|
34
|
-
|
|
35
|
-
The namespace supported by the authentication service.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
31
|
### CLASS\_NAME
|
|
40
32
|
|
|
41
33
|
> `readonly` **CLASS\_NAME**: `string`
|
|
@@ -28,14 +28,6 @@ The dependencies for the identity connector.
|
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
31
|
-
### NAMESPACE
|
|
32
|
-
|
|
33
|
-
> `readonly` `static` **NAMESPACE**: `string` = `"authentication-entity-storage"`
|
|
34
|
-
|
|
35
|
-
The namespace supported by the authentication service.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
31
|
### CLASS\_NAME
|
|
40
32
|
|
|
41
33
|
> `readonly` **CLASS\_NAME**: `string`
|
|
@@ -50,23 +42,23 @@ Runtime name for the class.
|
|
|
50
42
|
|
|
51
43
|
### start()
|
|
52
44
|
|
|
53
|
-
> **start**(`nodeIdentity
|
|
45
|
+
> **start**(`nodeIdentity?`, `nodeLoggingComponentType?`): `Promise`\<`void`\>
|
|
54
46
|
|
|
55
47
|
The service needs to be started when the application is initialized.
|
|
56
48
|
|
|
57
49
|
#### Parameters
|
|
58
50
|
|
|
59
|
-
##### nodeIdentity
|
|
51
|
+
##### nodeIdentity?
|
|
60
52
|
|
|
61
53
|
`string`
|
|
62
54
|
|
|
63
55
|
The identity of the node.
|
|
64
56
|
|
|
65
|
-
#####
|
|
57
|
+
##### nodeLoggingComponentType?
|
|
66
58
|
|
|
67
59
|
`string`
|
|
68
60
|
|
|
69
|
-
The node logging
|
|
61
|
+
The node logging component type.
|
|
70
62
|
|
|
71
63
|
#### Returns
|
|
72
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/api-auth-entity-storage-service",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.11",
|
|
4
4
|
"description": "Auth Entity Storage contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/api-auth-entity-storage-models": "0.0.2-next.
|
|
18
|
-
"@twin.org/api-core": "0.0.2-next.
|
|
19
|
-
"@twin.org/api-models": "0.0.2-next.
|
|
17
|
+
"@twin.org/api-auth-entity-storage-models": "0.0.2-next.11",
|
|
18
|
+
"@twin.org/api-core": "0.0.2-next.11",
|
|
19
|
+
"@twin.org/api-models": "0.0.2-next.11",
|
|
20
20
|
"@twin.org/core": "next",
|
|
21
21
|
"@twin.org/crypto": "next",
|
|
22
22
|
"@twin.org/entity": "next",
|