Skip to main content

CodexRunTokenAuthority

Trait CodexRunTokenAuthority 

Source
pub trait CodexRunTokenAuthority:
    Send
    + Sync
    + 'static {
    // Required methods
    fn issue(&self, session_id: &str) -> Result<IssuedCodexRunToken, String>;
    fn revoke(&self, token_id: &str);
}
Expand description

Server-owned authority for Bamboo-as-provider Codex credentials. The engine only needs mint/revoke; verification remains inside the HTTP server.

Required Methods§

Source

fn issue(&self, session_id: &str) -> Result<IssuedCodexRunToken, String>

Source

fn revoke(&self, token_id: &str)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§