Available on crate feature
api and (crate features federation-api-c or federation-api-s) only.Expand description
Common types for implementing federation authorization.
Structs§
- Server
Signatures - Authentication is performed by adding an
X-Matrixheader including a signature in the request headers, as defined in the Matrix Server-Server API. - Server
Signatures Input - The input necessary to generate the
ServerSignaturesauthentication scheme. - XMatrix
- Typed representation of an
Authorizationheader of schemeX-Matrix, as defined in the Matrix Server-Server API.
Enums§
- XMatrix
Extract Error - An error when trying to extract an
XMatrixfrom an HTTP request. - XMatrix
From Request Error - An error when trying to construct an
XMatrixfrom ahttp::Request. - XMatrix
Parse Error - An error when trying to parse an X-Matrix Authorization header.
- XMatrix
Verification Error - An error when trying to verify the signature in an
XMatrixfor an HTTP request.