from app.auth.provider import AuthProvider, Identity

_ANONYMOUS = Identity(id="anonymous", anonymous=True)


class NoOpAuthProvider(AuthProvider):
    async def get_identity(self, authorization: str | None) -> Identity:
        return _ANONYMOUS
