feat: move sso and ldap logins into plugins (C2)

This commit is contained in:
LukeGus committed 2026-09-24 18:23:20 -05:00
1 parent 5c18435105
commit 925da4a661
223 files changed
+25778 -6820

No files matched your search

-51
View File
@@ -8,57 +8,6 @@ export type {
HostAuthOverrides,
} from "./auth-protocols.js";
// ============================================================================
// SSO / AUTHENTICATION PROVIDER TYPES
// ============================================================================
export type SSOProviderType = "oidc" | "ldap" | "github" | "google";
export interface SSOProviderPublic {
id: number;
name: string;
type: SSOProviderType;
displayOrder: number;
}
export interface SSOProvider extends SSOProviderPublic {
enabled: boolean;
config: string | Record<string, unknown>;
createdAt: string;
updatedAt: string;
}
export interface OIDCProviderConfig {
client_id: string;
client_secret: string;
issuer_url: string;
authorization_url: string;
token_url: string;
userinfo_url?: string;
identifier_path: string;
name_path: string;
scopes: string;
allowed_users?: string;
admin_group?: string;
group_claim?: string;
ca_cert?: string;
}
export interface LDAPProviderConfig {
host: string;
port: number;
useTLS: boolean;
bindDN: string;
bindPassword: string;
userSearchBase: string;
userSearchFilter: string;
usernameAttribute: string;
displayNameAttribute: string;
groupSearchBase?: string;
adminGroup?: string;
allowedUsers?: string;
}
// ============================================================================
// HOST TYPES (SSH, RDP, VNC, Telnet)
// ============================================================================
-1
View File
@@ -328,7 +328,6 @@ export type DashboardCardConfig = {
export type AdminSection =
| "general"
| "sso"
| "users"
| "sessions"
| "roles"