__init__.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. """Dashboard authentication provider framework. The auth gate engages only when the dashboard
  2. binds to a non-loopback host without ``--insecure``; every request must then carry a verified
  3. session from a registered ``DashboardAuthProvider`` (Nous provider is the default; third parties
  4. register theirs via the plugin hook ``ctx.register_dashboard_auth_provider``)."""
  5. from hermes_cli.dashboard_auth.base import (
  6. DashboardAuthProvider, Session, TokenPrincipal, LoginStart, InvalidCodeError,
  7. InvalidCredentialsError, ProviderError, RefreshExpiredError, assert_protocol_compliance,
  8. classify_jwks_lookup_error)
  9. # Dashboard-auth providers are persistent host-owned registrations that deliberately survive a routine
  10. # manager unload (#91701), so the "clean slate" reset must drop the process-global auth registry explicitly
  11. # — otherwise a provider auto-registered during one test leaks into the next.
  12. from hermes_cli.dashboard_auth.registry import (
  13. register_provider, get_provider, list_providers, list_token_providers,
  14. list_session_providers, list_interactive_providers, clear_providers)
  15. __all__ = [
  16. "DashboardAuthProvider",
  17. "InvalidCodeError",
  18. "InvalidCredentialsError",
  19. "LoginStart",
  20. "ProviderError",
  21. "RefreshExpiredError",
  22. "Session",
  23. "TokenPrincipal",
  24. "assert_protocol_compliance",
  25. "classify_jwks_lookup_error",
  26. "clear_providers",
  27. "get_provider",
  28. "list_interactive_providers",
  29. "list_providers",
  30. "list_session_providers",
  31. "list_token_providers",
  32. "register_provider",
  33. ]