iamb icon indicating copy to clipboard operation
iamb copied to clipboard

Authenticated media support

Open reynoldsme opened this issue 1 year ago • 3 comments

Matrix v1.11 introduces MSC3916 - Authenticated Media which when implemented and enabled on a homeserver, requires clients to send the users access token with any requests for media files which were uploaded after the setting was enabled.

This is still currently an optional setting, but quick adoption is likely and the matrix.org homeserver itself is scheduled to enable it on September 4th, 2024.

Currently iamb will return the following message when attempting to retrieve new media (media from before the setting was enabled is fine, as expected) from a Synapse server with enable_authenticated_media: True set: [Image error: Matrix(Http(Api(Server(ClientApi(Error { status_code: 404, body: Standard { kind: NotFound, message: "Not found" } })))))]

The Client implementation guidance section of the v1.11 release announcement may be helpful.

reynoldsme avatar Sep 04 '24 00:09 reynoldsme

Oh, I see. This should happen automatically by updating the matrix-sdk dependency https://github.com/matrix-org/matrix-rust-sdk/pull/3598 from 0.7.1 to something newer, but that either has not been released and/or the crates.io entry has not been updated yet. https://crates.io/crates/matrix-sdk

reynoldsme avatar Sep 04 '24 14:09 reynoldsme

I tried changing the version property of the matrix-sdk dependency to a git reference the latest commit of main on the matrix-rust-sdk in Cargo.toml, but I found there were a few breaking changes. Someone with a better understanding of the codebase and the matrix rust sdk may want to have look, it could be the needed changes are actually minimal.

reynoldsme avatar Sep 17 '24 14:09 reynoldsme

Looks like https://github.com/matrix-org/matrix-rust-sdk/issues/3742 is the issue to watch for any planned release of matrx-rust-sdk.

reynoldsme avatar Sep 29 '24 18:09 reynoldsme

matrix-sdk v0.8.0 is now released and is up on crates.io! https://crates.io/crates/matrix-sdk

reynoldsme avatar Nov 19 '24 16:11 reynoldsme

There is an updated version in Issue 378. @dstu, I will run your fork and report any issues.

mordquist avatar Dec 09 '24 20:12 mordquist

Since this has been closed for two weeks already, could we get a new release, please? :)

wvffle avatar Mar 07 '25 10:03 wvffle

Would it be possible to manually fix this on my install of iamb without waiting for a release? If so how would I do it?

Ne0nW1sp avatar Mar 14 '25 13:03 Ne0nW1sp

Bumping since it's been some time. Could we get a new release?

ddogfoodd avatar May 26 '25 14:05 ddogfoodd

still stuck with this T_T

[Image error: Matrix(Http(Api(Server(ClientApi(Error { status_code: 404, body: Standard { kind: NotFound, message: "authentication is required to download this media" } })))))]

vu1xan avatar Jun 07 '25 17:06 vu1xan

You can always download a binary of the latest commit from the CI (here for the current commit).

VAWVAW avatar Jun 07 '25 23:06 VAWVAW

@VAWVAW thank you very much, I did build the alpha release after posting here, last day only. It works fine now (:

vu1xan avatar Jun 08 '25 05:06 vu1xan