remotivelabs.broker.auth

class AuthMethod(abc.ABC):

Represents ways of authenticating to the Broker

headers: list[tuple[str, str]] | None

Return HTTP authentication headers

class NoAuth(AuthMethod):

No authentication method needed

headers: None

Return HTTP authentication headers

class ApiKeyAuth(AuthMethod):

Api key authentication method (legacy)

ApiKeyAuth(api_key: str)
headers: list[tuple[str, str]]

Return HTTP authentication headers

class TokenAuth(AuthMethod):

Token based authentication method

TokenAuth(token: str)
headers: list[tuple[str, str]]

Return HTTP authentication headers