25 lines
1.2 KiB
Python
25 lines
1.2 KiB
Python
"""Dashboard authentication provider framework.
|
|
|
|
The auth gate engages only when the dashboard binds to a non-loopback host
|
|
without ``--insecure``; every request must then carry a verified session from
|
|
a registered ``DashboardAuthProvider``. The Nous provider
|
|
(``plugins/dashboard-auth-nous/``) is the default; third parties register
|
|
theirs via the plugin hook ``ctx.register_dashboard_auth_provider``.
|
|
"""
|
|
from hermes_cli.dashboard_auth.base import (
|
|
DashboardAuthProvider, Session, TokenPrincipal, LoginStart, InvalidCodeError,
|
|
InvalidCredentialsError, ProviderError, RefreshExpiredError, assert_protocol_compliance,
|
|
classify_jwks_lookup_error,
|
|
)
|
|
from hermes_cli.dashboard_auth.registry import (
|
|
register_provider, get_provider, list_providers, list_token_providers,
|
|
list_session_providers, clear_providers,
|
|
)
|
|
|
|
__all__ = [
|
|
"DashboardAuthProvider", "Session", "TokenPrincipal", "LoginStart", "InvalidCodeError",
|
|
"InvalidCredentialsError", "ProviderError", "RefreshExpiredError", "assert_protocol_compliance",
|
|
"classify_jwks_lookup_error", "register_provider", "get_provider", "list_providers",
|
|
"list_token_providers", "list_session_providers", "clear_providers",
|
|
]
|