pub struct GenContext {
pub jwt_sub: String,
pub jwt_scope: String,
pub tool_name: String,
pub timestamp: u64,
pub jwt_token: String,
}Expand description
Context for expanding ${VAR} placeholders in generator args/env.
Fields§
§jwt_sub: String§jwt_scope: String§tool_name: String§timestamp: u64§jwt_token: StringRaw inbound bearer token (the <token> from Authorization: Bearer <token>). Populated by the proxy from the request that triggered
this generator run, or by the CLI from $ATI_SESSION_TOKEN in
direct-CLI mode. Empty string when no inbound bearer is available
(dev mode, no JWT validation configured, no env var set). Exposed
to auth_generators via ${JWT_TOKEN} so an MCP provider can forward
the calling sandbox’s identity to its upstream MCP without the proxy
holding a long-lived static bearer that loses per-sandbox attribution.
See issue #115.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenContext
impl RefUnwindSafe for GenContext
impl Send for GenContext
impl Sync for GenContext
impl Unpin for GenContext
impl UnsafeUnpin for GenContext
impl UnwindSafe for GenContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more