element-hq / matrix-authentication-service

https://element-hq.github.io/matrix-authentication-service/
GNU Affero General Public License v3.0
36 stars 9 forks source link

API to change avatar #1543

Open matrixbot opened 1 month ago

matrixbot commented 1 month ago

This issue was originally created by @Johennes at https://github.com/matrix-org/matrix-authentication-service/issues/1543.

For https://github.com/matrix-org/matrix-authentication-service/issues/1542, we'll need an API to set and update the user avatar.

@sandhose said on https://github.com/matrix-org/matrix-authentication-service/issues/1491:

Uploading the avatar is really tricky from MAS perspective right now, and we don't have a good way to interact with the regular C-S API from the My Account UI.

To add the required APIs on the MAS side, the quickest way would be to be able to call the C-S API as any user with the admin token MAS has to communicate with Synapse. I opened an issue on their side for this: https://github.com/matrix-org/synapse/issues/16129

matrixbot commented 1 month ago

This comment was originally posted by @sandhose at https://github.com/matrix-org/matrix-authentication-service/issues/1543#issuecomment-1691487897.

Turns out, the approach I was going to use will not work with the Matrix Media Repo, which means it wont work in some deployments. Either I find another approach, or implement forwarding the query parameter in MMR: https://github.com/matrix-org/synapse/pull/16132