import abc
from enum import Enum
[docs]class AuthType(Enum):
SOURCE = 0
DESTINATION = 1
[docs]class BaseAuthHandler(metaclass=abc.ABCMeta):
[docs] @abc.abstractmethod
async def fetch(self, request, bundle):
pass
[docs] @abc.abstractmethod
async def get(self, resource, provider, request, action=None, auth_type=AuthType.SOURCE,
path='', version=None):
pass