feat:Support logging in with oidc and saml2 (#13441)

* feat(auth): implement OIDC authentication endpoints and error handling

* feat(auth): add OIDC provider discovery endpoint and related functionality

* feat(auth): add SAML2 authentication support and related functionality

* feat(auth): add LDAP authentication support and related functionality

* fix(auth): improve login keydown handler for better event handling
This commit is contained in:
蘭
2026-08-03 13:43:01 +08:00
committed by GitHub
parent 16e3d496eb
commit be672d604f
61 changed files with 7900 additions and 1736 deletions
+39
View File
@@ -5,6 +5,7 @@ export namespace Login {
captcha: string;
captchaID: string;
authMethod: string;
authSource: 'local' | 'ldap';
}
export interface MFALoginForm {
sessionId: string;
@@ -22,6 +23,44 @@ export namespace Login {
sessionId: string;
publicKey: Record<string, any>;
}
export interface OIDCStatus {
enabled: boolean;
displayName: string;
authorizationCode: boolean;
}
export interface LDAPStatus {
enabled: boolean;
}
export interface OIDCBeginResponse {
authorizationURL: string;
}
export interface OIDCFinishRequest {
ticket: string;
}
export interface SAML2Status {
enabled: boolean;
displayName: string;
syncLogout: boolean;
}
export interface SAML2RedirectNavigation {
binding: 'redirect';
redirectURL: string;
}
export interface SAML2PostNavigation {
binding: 'post';
postURL: string;
fields: Record<string, string>;
}
export type SAML2Navigation = SAML2RedirectNavigation | SAML2PostNavigation;
export interface SAML2BeginResponse {
navigation: SAML2Navigation;
}
export interface SAML2FinishRequest {
ticket: string;
}
export interface LogOutResponse {
saml2Navigation?: SAML2Navigation;
}
export interface ResCaptcha {
imagePath: string;
captchaID: string;