feat(auth): implement authentication provider endpoints and ticket exchange

This commit is contained in:
jxxghp
2026-06-04 08:23:54 +08:00
parent df75f42753
commit fd280a49b7
5 changed files with 274 additions and 1 deletions

View File

@@ -174,6 +174,21 @@ class _PluginBase(metaclass=ABCMeta):
"""
pass
def get_auth_providers(self) -> List[Dict[str, Any]]:
"""
声明插件提供的登录认证入口。
返回示例:
[{
"id": "oidc",
"name": "OIDC 登录",
"icon": "mdi-openid",
"component": "AuthPage",
"enabled": True
}]
"""
pass
def get_module(self) -> Dict[str, Any]:
"""
获取插件模块声明,用于胁持系统模块实现(方法名:方法实现)