Skip to main content

audited_evaluate_refresh

Function audited_evaluate_refresh 

Source
pub fn audited_evaluate_refresh<V: UcanVerifier + ?Sized>(
    grant: &Ucan,
    verifier: &V,
    now: u64,
    request: &GrantRequest,
    subject: Option<&SecurityContext>,
    on_behalf_of: Option<&SecurityContext>,
    sender_bound: bool,
    sink: &dyn AuditSink,
) -> Result<GrantDecision, GrantError>
Expand description

As evaluate_refresh, with the same audit-then-decide wrapping as audited_evaluate_grant. The refresh path’s audit records are indistinguishable in shape from the mint path’s (both are grant-path decisions); the caller distinguishes them by context if needed.