Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gtsc/api-auth-entity-storage-service

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-auth-entity-storage-service - npm Package Compare versions

Comparing version 0.0.3-next.46 to 0.0.3-next.47

dist/types/models/IEntityStorageAuthenticationProcessorConfig.d.ts

3

dist/types/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc