feat: store rdp, vnc and telnet logins in a generic per-protocol table

This commit is contained in:
LukeGus committed 2026-09-29 12:33:09 -05:00
1 parent e0c30a4e6f
commit bba06f7ff6
107 files changed
+18750 -1224

No files matched your search

@@ -1,8 +1,5 @@
import {
AUTH_PROTOCOL_METADATA,
isSupportedAuthOverrideProtocol,
type AuthOverrideProtocol,
} from "../../types/auth-protocols.js";
import type { AuthOverrideProtocol } from "../../types/auth-protocols.js";
import { isAuthOverrideProtocol } from "../hosts/protocol-auth/registry.js";
import {
createCurrentCredentialRepository,
createCurrentSharedHostAuthOverrideRepository,
@@ -109,9 +106,9 @@ export class SharedHostAuthOverrideService {
}
private requireSupportedProtocol(protocol: AuthOverrideProtocol): void {
if (!isSupportedAuthOverrideProtocol(protocol)) {
if (!isAuthOverrideProtocol(protocol)) {
throw new SharedHostAuthOverrideServiceError(
`${AUTH_PROTOCOL_METADATA[protocol].label} authentication overrides are not supported yet`,
`No plugin declares the ${protocol} protocol`,
400,
);
}