Source code for pyrit.auth.authenticator

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from __future__ import annotations

import abc
from abc import abstractmethod


[docs] class Authenticator(abc.ABC): token: str
[docs] @abstractmethod def refresh_token(self) -> str: raise NotImplementedError("refresh_token method not implemented")
[docs] @abstractmethod def get_token(self) -> str: raise NotImplementedError("get_token method not implemented")