pub trait WorkflowAuthority: Send + Sync {
// Required methods
fn capture(
&self,
request: Option<&RequestContext>,
) -> Result<String, String>;
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RequestContext, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Host authentication and revocation boundary for durable workflow calls.
Required Methods§
Sourcefn capture(&self, request: Option<&RequestContext>) -> Result<String, String>
fn capture(&self, request: Option<&RequestContext>) -> Result<String, String>
Authenticates an ingress request and returns a stable, non-secret reference.
None is an alarm/trigger admission; deny unless an explicit service identity
is configured. Never return a bearer token or caller-selected scope label.
Sourcefn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RequestContext, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RequestContext, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolves current credentials and policy. Revocation or missing bindings must fail; never substitute a default tenant, principal, or process credential.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".