services.authentication.AuthenticationModule

src/idserver/services/authentication/AuthenticationModule.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from oic.utils.authn.user import UserAuthnMethod
from oic.utils.http_util import Response
from typing import MutableMapping, Tuple, List
import importlib

class AuthenticationModule(UserAuthnMethod):
    url_endpoint = "/verify"
    FAILED_AUTHENTICATION = (None, True)

    def __call__(self, *args: List[Tuple[str, str]], **kwargs: MutableMapping[str, str]) -> Response:
        raise NotImplementedError()

    def verify(self, *args: List[Tuple[str, str]], **kwargs: MutableMapping[str, str]) -> str:
        raise NotImplementedError()