The profile view (`/users/userinfo/`) needs to be moved to FAB auth manager. The profile URL needs to be returned as part of `get_url_account()` as specified in the AIP
#
#
#
from __future__ import annotations
from abc import abstractmethod
from typing import TYPE_CHECKING
from airflow.exceptions import AirflowException
from airflow.utils.log.logging_mixin import LoggingMixin
if TYPE_CHECKING:
    from airflow.www.security import AirflowSecurityManager
class BaseAuthManager(LoggingMixin):
    """
    Class to derive in order to implement concrete auth managers.
    Auth managers are responsible for any user management related operation such as login, logout, authz, ...
    """
    def __init__(self):
        self._security_manager: AirflowSecurityManager | None = None
    @abstractmethod
    def get_user_name(self) -> str:
        """Return the username associated to the user in session."""
        ...
    @abstractmethod
    def is_logged_in(self) -> bool: