mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: store rdp, vnc and telnet logins in a generic per-protocol table
This commit is contained in:
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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user