Source code for pulsar.user_auth.methods.interface

from abc import ABC, abstractmethod


[docs]class AuthMethod(ABC): """ Defines the interface to various authentication/authorization methods. """
[docs] @abstractmethod def authorize(self, authentication_info): raise NotImplementedError("a concrete class should implement this")
[docs] @abstractmethod def authenticate(self, job_directory): raise NotImplementedError("a concrete class should implement this")