async fn authenticate(
services: &Services,
request: Request,
root: Root,
) -> Result<(Request, Auth, Option<CanonicalJsonValue>)>Expand description
Authenticates a proxied request as the claimed API’s native routes do.
A client path takes an access token, an appservice’s masquerade included; a federation path takes a server signature over the canonical body, which comes back as the content the signature covered.