UnisKB/apps/common/auth/handle/auth_base_handle.py

20 lines
406 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# coding=utf-8
"""
@project: qabot
@Author虎虎
@file authenticate.py
@date2024/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