mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 14:28:20 +01:00
fix: 🐛 Clarify that signatures are required on GET requests too
This commit is contained in:
parent
be79c569a1
commit
ea3979bc8a
|
|
@ -23,6 +23,7 @@ A signature consists of a series of headers in an HTTP request. The following he
|
||||||
|
|
||||||
Signatures are **required on ALL federation traffic**. If a request does not have a signature, it **MUST** be rejected. Specifically, signatures must be put on:
|
Signatures are **required on ALL federation traffic**. If a request does not have a signature, it **MUST** be rejected. Specifically, signatures must be put on:
|
||||||
- **All POST requests**.
|
- **All POST requests**.
|
||||||
|
- **All GET requests**.
|
||||||
- **All responses to GET requests** (for example, when fetching a user's profile). In this case, the HTTP method used in the signature string must be `GET`.
|
- **All responses to GET requests** (for example, when fetching a user's profile). In this case, the HTTP method used in the signature string must be `GET`.
|
||||||
|
|
||||||
If a signature fails, is missing or is invalid, the instance **MUST** return a `401 Unauthorized` HTTP status code. If the signature timestamp is too old or too new (more than 5 minutes from the current time), the instance **MUST** return a `422 Unprocessable Entity` status code.
|
If a signature fails, is missing or is invalid, the instance **MUST** return a `401 Unauthorized` HTTP status code. If the signature timestamp is too old or too new (more than 5 minutes from the current time), the instance **MUST** return a `422 Unprocessable Entity` status code.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue