Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication providers.

The SDK ships a single TokenProvider trait so higher layers (bridge, Python wrappers) can plug in custom auth — session cookies, JWT, Vault-minted tokens — without breaking the rest of the client. The v1 default is StaticApiKey, which forwards the parsed OpenApp API key as an Authorization: Bearer header.

Structs§

AuthToken
Credentials returned by a TokenProvider for a single outgoing request.
StaticApiKey
Static API-key provider: the token never changes for the lifetime of the client.

Traits§

TokenProvider
Produces the Authorization header for every outgoing SDK request.

Type Aliases§

SharedTokenProvider
Shared-ownership handle used throughout the SDK.