mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
some clarifications
This commit is contained in:
parent
484e4ad9f3
commit
d68d209d1c
|
|
@ -295,13 +295,14 @@ The format of the Authorization header is given in
|
||||||
[RFC7235](https://datatracker.ietf.org/doc/html/rfc7235#section-2.1). In
|
[RFC7235](https://datatracker.ietf.org/doc/html/rfc7235#section-2.1). In
|
||||||
summary, the header begins with authorization scheme `X-Matrix`, followed by
|
summary, the header begins with authorization scheme `X-Matrix`, followed by
|
||||||
one or more spaces, followed by a comma-separated list of parameters written as
|
one or more spaces, followed by a comma-separated list of parameters written as
|
||||||
name=value pairs. The names are case insensitive. The values must be enclosed
|
name=value pairs. The names are case insensitive and order does not matter. The
|
||||||
in quotes if they contain characters that are not allowed in `token`s, as defined in
|
values must be enclosed in quotes if they contain characters that are not
|
||||||
|
allowed in `token`s, as defined in
|
||||||
[RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6); if a
|
[RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6); if a
|
||||||
value is a valid `token`, it may or may not be enclosed in quotes. Quoted
|
value is a valid `token`, it may or may not be enclosed in quotes. Quoted
|
||||||
values may include backslash-escaped characters. When parsing the header, the
|
values may include backslash-escaped characters. When parsing the header, the
|
||||||
recipient must unescape the characters. That is, a backslash-character pair
|
recipient must unescape the characters. That is, a backslash-character pair is
|
||||||
is replaced by the character following the backslash.
|
replaced by the character following the backslash.
|
||||||
|
|
||||||
For compatibility with older servers, the sender should
|
For compatibility with older servers, the sender should
|
||||||
- only include one space after `X-Matrix`,
|
- only include one space after `X-Matrix`,
|
||||||
|
|
@ -322,8 +323,7 @@ The authorization parameters to include are:
|
||||||
Unauthorized.
|
Unauthorized.
|
||||||
- `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. The
|
- `signature`: the signature of the JSON as calculated in step 1.
|
||||||
signature must be unpadded.
|
|
||||||
|
|
||||||
Unknown parameters are ignored.
|
Unknown parameters are ignored.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue