Function activitypub_federation::actix_web::signing_actor

source ·
pub async fn signing_actor<A>(
    request: &HttpRequest,
    body: Option<Bytes>,
    data: &Data<<A as Object>::DataType>
) -> Result<A, <A as Object>::Error>
where A: Object + Actor, <A as Object>::Error: From<Error>, for<'de2> <A as Object>::Kind: Deserialize<'de2>,
Expand description

Checks whether the request is signed by an actor of type A, and returns the actor in question if a valid signature is found.