Module auth

Module auth 

Source
Expand description

Auth port — runtime token loading, expiry checking, and refresh. AuthPort — runtime token loading, expiry checking, and refresh.

Implement this trait to inject live credentials into pipeline execution without pre-loading a static token. Designed to integrate with stygian-browser’s OAuth2 PKCE token store.

Structs§

EnvAuthPort
An AuthPort that reads a static token from an environment variable.
TokenSet
A resolved OAuth2 / API bearer token with optional expiry metadata.

Enums§

AuthError
Errors produced by AuthPort implementations.

Traits§

AuthPort
Port for runtime credential management.
ErasedAuthPort
Object-safe version of AuthPort for runtime dispatch.

Functions§

resolve_token
Resolve a live access-token string from an AuthPort.