mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
feat: move sso and ldap logins into plugins (C2)
This commit is contained in:
1 parent
5c18435105
commit
925da4a661
223 files changed
+25778
-6820
No files matched your search
@@ -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)
|
||||
// ============================================================================
|
||||
|
||||
@@ -328,7 +328,6 @@ export type DashboardCardConfig = {
|
||||
|
||||
export type AdminSection =
|
||||
| "general"
|
||||
| "sso"
|
||||
| "users"
|
||||
| "sessions"
|
||||
| "roles"
|
||||
|
||||
Reference in new issue
Block a user