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) -
oauth_authorization_lifetime(timedelta) -
oauth_issuer_url(AnyHttpUrl | None) -
oauth_ui_url(AnyHttpUrl | None) -
oauth_grant_idle_lifetime(timedelta) -
api_key_prefix(str) -
api_key_salt(SecretStr) -
runtime_api_key_lifetime(timedelta)
Validators:
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.
oauth_authorization_lifetime
pydantic-field
¶
Lifetime of pending OAuth consent and, after approval, its single-use code.
oauth_issuer_url
pydantic-field
¶
Public origin for inbound OAuth. Enables native-app, harness and CLI authorization; HTTPS except for local development.
oauth_ui_url
pydantic-field
¶
Trunkline origin for OAuth sign-in and consent; defaults to the issuer origin when Trunkline is served there.
oauth_grant_idle_lifetime
pydantic-field
¶
Idle lifetime of native-app, harness and CLI OAuth grants, renewed by successful token refresh; no absolute lifetime.
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
¶
Idle lifetime of a runtime API key, extended by acquisition and successful authentication.
validate_oauth_issuer
pydantic-validator
¶
Source code in octomate/config/auth.py
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.