Skip to content

API Reference parrot_tools.hooba.credentials

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.hooba.credentials

View source

Broker-backed Hooba credentials and the cookie-session login hook (FEAT-602 M2).

Class EnvCredentialResolver

Resolve a {"username", "password"} pair from environment variables.

Parameter Type Default Description
username_var str 'HOOBA_USERNAME'
password_var str 'HOOBA_PASSWORD'
env Optional[Mapping[str, str]] None

Method EnvCredentialResolver.resolve

Return the pair when both variables are set, else None.

resolve(channel: str, user_id: str) -> Optional[Dict[str, str]]

Parameter Type Default Description
channel str
user_id str

Returns: Optional[Dict[str, str]]

Method EnvCredentialResolver.get_auth_url

No out-of-band flow: the operator sets the variables.

get_auth_url(channel: str, user_id: str) -> str

Parameter Type Default Description
channel str
user_id str

Returns: str

Class HoobaAuthError

Login rejected, credentials unavailable, or no sid cookie in the login response.

Attribute HoobaLoginHook

Alias HoobaSettings

Re-exported from parrot_tools.hooba.settings.HoobaSettings.

Attribute logger

Function make_login_hook

Return the async hook OpenAPIToolkit(auth_type="cookie") uses for a session cookie.

make_login_hook(settings: HoobaSettings, broker: CredentialBroker, user_id: Optional[str] = None) -> HoobaLoginHook

Parameter Type Default Description
settings HoobaSettings
broker CredentialBroker
user_id Optional[str] None

Returns: HoobaLoginHook

Function register_hooba_provider

Register provider on broker with an env-backed resolver by default.

register_hooba_provider(broker: CredentialBroker, provider: str = 'hooba', resolver: Optional[CredentialResolver] = None) -> None

Parameter Type Default Description
broker CredentialBroker
provider str 'hooba'
resolver Optional[CredentialResolver] None

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally