Accounts and OAuth¶
octomate.config.auth ¶
Local account credentials and token lifetimes.
AuthConfig
pydantic-model
¶
Bases: BaseModel
Deployment-owned credentials and token settings.
Config:
hide_input_in_errors:True
Fields:
-
invitation_lifetime(timedelta) -
access_token_salt(SecretStr) -
access_token_lifetime(timedelta) -
refresh_token_salt(SecretStr) -
session_lifetime(timedelta) -
cookie_secure(bool) -
api_key_prefix(str) -
api_key_salt(SecretStr) -
runtime_api_key_lifetime(timedelta)
Source code in octomate/config/auth.py
model_config
class-attribute
instance-attribute
¶
invitation_lifetime
pydantic-field
¶
Lifetime of an anonymous, single-use registration invitation.
access_token_salt
pydantic-field
¶
Secret appended before hashing access tokens.
access_token_lifetime
pydantic-field
¶
Lifetime of an issued access token.
refresh_token_salt
pydantic-field
¶
Secret appended before hashing refresh tokens.
session_lifetime
pydantic-field
¶
Absolute session lifetime; refresh does not extend it.
cookie_secure
pydantic-field
¶
Require HTTPS for browser session cookies.
api_key_prefix
pydantic-field
¶
Prefix prepended to newly issued API keys.
api_key_salt
pydantic-field
¶
Secret appended before hashing personal API keys.
runtime_api_key_lifetime
pydantic-field
¶
Maximum lifetime of a driven runtime's temporary MCP API key.
octomate.config.oauth ¶
OAuth authorization lifetimes, the browser-reachable callback origin, and the key that encrypts tokens at rest.
OAuthConfig
pydantic-model
¶
Bases: BaseModel
OAuth authorization lifetimes, callback origin and encryption key.
Config:
extra:ignore
Fields:
-
authorization_lifetime(timedelta) -
token_refresh_leeway(timedelta) -
callback_base_uri(AnyHttpUrl | None) -
client_metadata_url(HttpsUrl | None) -
encryption_key(SecretStr | None)
Validators:
Source code in octomate/config/oauth.py
authorization_lifetime
pydantic-field
¶
Lifetime of browser OAuth authorizations and channel profile-linking URLs; provider-issued device codes keep the provider's expiry.
token_refresh_leeway
pydantic-field
¶
Refresh OAuth tokens this long before their expiry; numeric values are seconds.
callback_base_uri
pydantic-field
¶
Browser-reachable Octomate origin for MCP authorization callbacks and profile-linking URLs.
client_metadata_url
pydantic-field
¶
Optional hosted OAuth client metadata document; use dynamic registration when absent or unsupported.
encryption_key
pydantic-field
¶
URL-safe base64 encoding of the 32-byte AES key used to encrypt OAuth operation secrets and user tokens at rest.