mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-03 00:00:06 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user