pub trait AuthorizationProvider: DynClone + Debug + Sync + Send {
fn sign(
&self,
request: &mut Request<'_, RequestBody<'_>>
) -> Result<(), AuthorizationError>;
fn async_sign(
&'a self,
request: &'a mut Request<'_, AsyncRequestBody<'_>>
) -> Pin<Box<dyn Future<Output = Result<(), AuthorizationError>> + Send + 'a, Global>>;
}
Expand description
七牛鉴权签名接口
对 HTTP 请求进行签名
Required methods
使用指定的鉴权方式对 HTTP 请求进行签名