mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 14:14:09 +02:00
Merge 118f712af3 into a64381b395
This commit is contained in:
commit
88dcd3680c
1
changelogs/server_server/newsfragments/2360.breaking
Normal file
1
changelogs/server_server/newsfragments/2360.breaking
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Require the `destination` field in server-to-server authentication. Contributed by @velikopter.
|
||||||
|
|
@ -375,11 +375,10 @@ The authorization parameters to include are:
|
||||||
`origin` field from JSON described in step 1.
|
`origin` field from JSON described in step 1.
|
||||||
- `destination`: {{% added-in v="1.3" %}} the server name of the receiving
|
- `destination`: {{% added-in v="1.3" %}} the server name of the receiving
|
||||||
server. This is the same as the `destination` field from the JSON described
|
server. This is the same as the `destination` field from the JSON described
|
||||||
in step 1. For compatibility with older servers, recipients should accept
|
in step 1. If the value does not match the receiving server's name, the
|
||||||
requests without this parameter, but MUST always send it. If this property
|
|
||||||
is included, but the value does not match the receiving server's name, the
|
|
||||||
receiving server must deny the request with an HTTP status code 401
|
receiving server must deny the request with an HTTP status code 401
|
||||||
Unauthorized.
|
Unauthorized.
|
||||||
|
{{% changed-in v="1.19" %}} This field is now required.
|
||||||
- `key`: the ID, including the algorithm name, of the sending server's key used
|
- `key`: the ID, including the algorithm name, of the sending server's key used
|
||||||
to sign the request.
|
to sign the request.
|
||||||
- `signature`: the signature of the JSON as calculated in step 1.
|
- `signature`: the signature of the JSON as calculated in step 1.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue