mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
20 lines
403 B
Python
20 lines
403 B
Python
# coding=utf-8
|
||
"""
|
||
@project: qabot
|
||
@Author:虎
|
||
@file: authenticate.py
|
||
@date:2024/3/14 03:02
|
||
@desc: 认证处理器
|
||
"""
|
||
from abc import ABC, abstractmethod
|
||
|
||
|
||
class AuthBaseHandle(ABC):
|
||
@abstractmethod
|
||
def support(self, request, token: str, get_token_details):
|
||
pass
|
||
|
||
@abstractmethod
|
||
def handle(self, request, token: str, get_token_details):
|
||
pass
|