@gtsc/api-auth-entity-storage-service
Advanced tools
Comparing version 0.0.3-next.46 to 0.0.3-next.47
export * from "./entities/authenticationUser"; | ||
export * from "./models/IEntityStorageAuthenticationConfig"; | ||
export * from "./models/IEntityStorageAuthenticationProcessorConfig"; | ||
export * from "./models/IEntityStorageAuthenticationServiceConfig"; | ||
export * from "./processors/entityStorageAuthenticationProcessor"; | ||
@@ -4,0 +5,0 @@ export * from "./restEntryPoints"; |
import { type IHttpResponse, type IHttpRestRouteProcessor, type IHttpServerRequest, type IRestRoute } from "@gtsc/api-models"; | ||
import type { IServiceRequestContext } from "@gtsc/services"; | ||
import type { IEntityStorageAuthenticationProcessorConfig } from "../models/IEntityStorageAuthenticationProcessorConfig"; | ||
/** | ||
@@ -15,7 +16,7 @@ * Handle a JWT token in the headers and validate it to populate request context identity. | ||
* @param options.vaultConnectorType The vault for the private keys, defaults to "vault". | ||
* @param options.signingKeyName The name of the key to retrieve from the vault for verifying the JWT, defaults to "auth-signing". | ||
* @param options.config The configuration for the processor. | ||
*/ | ||
constructor(options: { | ||
vaultConnectorType?: string; | ||
signingKeyName?: string; | ||
config: IEntityStorageAuthenticationProcessorConfig; | ||
}); | ||
@@ -22,0 +23,0 @@ /** |
import type { IAuthentication } from "@gtsc/api-auth-entity-storage-models"; | ||
import type { IServiceRequestContext } from "@gtsc/services"; | ||
import type { IEntityStorageAuthenticationConfig } from "../models/IEntityStorageAuthenticationConfig"; | ||
import type { IEntityStorageAuthenticationServiceConfig } from "../models/IEntityStorageAuthenticationServiceConfig"; | ||
/** | ||
@@ -17,8 +17,10 @@ * Implementation of the authentication service using entity storage. | ||
* @param options.vaultConnectorType The vault for the private keys, defaults to "vault". | ||
* @param options.loggingConnectorType The type of logging connector to use, defaults to "logging". | ||
* @param options.config The configuration for the authentication. | ||
*/ | ||
constructor(options?: { | ||
constructor(options: { | ||
userEntityStorageType?: string; | ||
vaultConnectorType?: string; | ||
config?: IEntityStorageAuthenticationConfig; | ||
loggingConnectorType?: string; | ||
config: IEntityStorageAuthenticationServiceConfig; | ||
}); | ||
@@ -25,0 +27,0 @@ /** |
@@ -31,5 +31,5 @@ [**@gtsc/api-auth-entity-storage-service**](../overview.md) • **Docs** | ||
• **options.signingKeyName?**: `string` | ||
• **options.config**: [`IEntityStorageAuthenticationProcessorConfig`](../interfaces/IEntityStorageAuthenticationProcessorConfig.md) | ||
The name of the key to retrieve from the vault for verifying the JWT, defaults to "auth-signing". | ||
The configuration for the processor. | ||
@@ -36,0 +36,0 @@ #### Returns |
@@ -17,3 +17,3 @@ [**@gtsc/api-auth-entity-storage-service**](../overview.md) • **Docs** | ||
> **new EntityStorageAuthenticationService**(`options`?): [`EntityStorageAuthenticationService`](EntityStorageAuthenticationService.md) | ||
> **new EntityStorageAuthenticationService**(`options`): [`EntityStorageAuthenticationService`](EntityStorageAuthenticationService.md) | ||
@@ -24,3 +24,3 @@ Create a new instance of EntityStorageAuthentication. | ||
• **options?** | ||
• **options** | ||
@@ -37,4 +37,8 @@ The dependencies for the identity connector. | ||
• **options.config?**: [`IEntityStorageAuthenticationConfig`](../interfaces/IEntityStorageAuthenticationConfig.md) | ||
• **options.loggingConnectorType?**: `string` | ||
The type of logging connector to use, defaults to "logging". | ||
• **options.config**: [`IEntityStorageAuthenticationServiceConfig`](../interfaces/IEntityStorageAuthenticationServiceConfig.md) | ||
The configuration for the authentication. | ||
@@ -41,0 +45,0 @@ |
@@ -11,3 +11,4 @@ # @gtsc/api-auth-entity-storage-service | ||
- [IEntityStorageAuthenticationConfig](interfaces/IEntityStorageAuthenticationConfig.md) | ||
- [IEntityStorageAuthenticationProcessorConfig](interfaces/IEntityStorageAuthenticationProcessorConfig.md) | ||
- [IEntityStorageAuthenticationServiceConfig](interfaces/IEntityStorageAuthenticationServiceConfig.md) | ||
@@ -14,0 +15,0 @@ ## Variables |
@@ -14,3 +14,13 @@ { | ||
} | ||
}, | ||
"info": { | ||
"entityStorageAuthenticationService": { | ||
"signingKeyFound": "The signing encryption key was found in the vault", | ||
"signingKeyCreated": "The signing encryption key was created in the vault", | ||
"encryptionKeyFound": "The encryption encryption key was found in the vault", | ||
"encryptionKeyCreated": "The encryption encryption key was created in the vault", | ||
"systemUserFound": "The default system user already exists, email: \"{email}\", password: \"{password}\"", | ||
"systemUserCreated": "The default system user has been created, email: \"{email}\", password: \"{password}\"" | ||
} | ||
} | ||
} |
{ | ||
"name": "@gtsc/api-auth-entity-storage-service", | ||
"version": "0.0.3-next.46", | ||
"version": "0.0.3-next.47", | ||
"description": "Auth Entity Storage contract implementation and REST endpoint definitions", | ||
@@ -17,8 +17,10 @@ "repository": { | ||
"dependencies": { | ||
"@gtsc/api-auth-entity-storage-models": "0.0.3-next.46", | ||
"@gtsc/api-core": "0.0.3-next.46", | ||
"@gtsc/api-models": "0.0.3-next.46", | ||
"@gtsc/api-auth-entity-storage-models": "0.0.3-next.47", | ||
"@gtsc/api-core": "0.0.3-next.47", | ||
"@gtsc/api-models": "0.0.3-next.47", | ||
"@gtsc/core": "next", | ||
"@gtsc/crypto": "next", | ||
"@gtsc/entity": "next", | ||
"@gtsc/entity-storage-models": "next", | ||
"@gtsc/logging-models": "next", | ||
"@gtsc/nameof": "next", | ||
@@ -25,0 +27,0 @@ "@gtsc/services": "next", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66266
29
1108
12
+ Added@gtsc/crypto@next
+ Added@gtsc/logging-models@next
+ Added@gtsc/api-auth-entity-storage-models@0.0.3-next.47(transitive)
+ Added@gtsc/api-core@0.0.3-next.47(transitive)
+ Added@gtsc/api-models@0.0.3-next.47(transitive)
+ Added@gtsc/logging-models@0.0.5-next.13(transitive)
- Removed@gtsc/api-auth-entity-storage-models@0.0.3-next.46(transitive)
- Removed@gtsc/api-core@0.0.3-next.46(transitive)
- Removed@gtsc/api-models@0.0.3-next.46(transitive)
Updated@gtsc/api-core@0.0.3-next.47