This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
/_synapse/admin/v1/register ignores refresh_token #16641
Labels
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
The admin API endpoint for registering users works almost just like the register client-server
/register
endpoint. However, it does not create a refreshable access token when one is requested.The fix appears to be to change this call
synapse/synapse/rest/admin/users.py
Line 648 in 43d1aa7
To something like this
Steps to reproduce
GET /_synapse/admin/v1/register
POST /_synapse/admin/v1/register
with valid username, password, nonce, and mac, and withrefresh_token: true
in the JSON bodyrefresh_token
orexpires_in_ms
in the response bodyHomeserver
Circles dev homeserver
Synapse Version
1.94.0
Installation Method
Docker (matrixdotorg/synapse)
Database
single PostgreSQL server
Workers
Multiple workers
Platform
Debian 12.2 x86, AMD EPYC, Hetzner cloud
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: