mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-01 14:44:09 +02:00
Compare commits
1 commit
5d912fec16
...
d281b10b89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d281b10b89 |
|
|
@ -1 +0,0 @@
|
|||
Add the `is_animated` flag to the `info` object of the `m.image` msgtype and the `m.sticker` event, as per [MSC4230](https://github.com/matrix-org/matrix-spec-proposals/pull/423O).
|
||||
|
|
@ -1 +0,0 @@
|
|||
Add link to JSON signing algorithm in server-server auth section for clarity. Contributed by @thetayloredman.
|
||||
|
|
@ -277,12 +277,12 @@ queried from multiple servers to mitigate against DNS spoofing.
|
|||
|
||||
Every HTTP request made by a homeserver is authenticated using public
|
||||
key digital signatures. The request method, target and body are signed
|
||||
by wrapping them in a JSON object and signing it using the [JSON signing
|
||||
algorithm](/appendices#signing-json). The resulting signatures are added
|
||||
as an Authorization header with an auth scheme of `X-Matrix`. Note that
|
||||
the target field should include the full path starting with `/_matrix/...`,
|
||||
including the `?` and any query parameters if present, but should not
|
||||
include the leading `https:`, nor the destination server's hostname.
|
||||
by wrapping them in a JSON object and signing it using the JSON signing
|
||||
algorithm. The resulting signatures are added as an Authorization header
|
||||
with an auth scheme of `X-Matrix`. Note that the target field should
|
||||
include the full path starting with `/_matrix/...`, including the `?`
|
||||
and any query parameters if present, but should not include the leading
|
||||
`https:`, nor the destination server's hostname.
|
||||
|
||||
Step 1 sign JSON:
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
"h": 398,
|
||||
"w": 394,
|
||||
"mimetype": "image/jpeg",
|
||||
"size": 31037,
|
||||
"is_animated": false
|
||||
"size": 31037
|
||||
},
|
||||
"url": "mxc://example.org/JWEIFJgwEIhweiWJE",
|
||||
"msgtype": "m.image"
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@
|
|||
"mimetype": "image/png",
|
||||
"h": 200,
|
||||
"w": 140,
|
||||
"size": 73602,
|
||||
"is_animated": true
|
||||
"size": 73602
|
||||
},
|
||||
"h": 200,
|
||||
"thumbnail_url": "mxc://matrix.org/sHhqkFCvSkFwtmvtETOtKnLP",
|
||||
|
|
|
|||
|
|
@ -34,19 +34,5 @@ properties:
|
|||
allOf:
|
||||
- $ref: thumbnail_info.yaml
|
||||
description: Metadata about the image referred to in `thumbnail_url`.
|
||||
is_animated:
|
||||
x-addedInMatrixVersion: "1.18"
|
||||
description: |-
|
||||
If this flag is `true`, the original image SHOULD be assumed to be
|
||||
animated. If this flag is `false`, the original image SHOULD be assumed to
|
||||
NOT be animated.
|
||||
|
||||
If a sending client is unable to determine whether an image is animated,
|
||||
it SHOULD leave the flag unset.
|
||||
|
||||
Receiving clients MAY use this flag to optimize whether to download the
|
||||
original image rather than a thumbnail if it is animated, but they SHOULD
|
||||
NOT trust this flag.
|
||||
type: boolean
|
||||
title: ImageInfo
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Reference in a new issue