Open marcialvieira opened 2 years ago
Yep, we use ma1sd and also can't save an email address in the settings ui...
Dendrite doesn't fully support adding emails to accounts yet.
× Can register using an email address
× Can login with 3pid and password using m.login.password
Third-Party ID APIs : 16% (3/19 tests)
× Can invite existing 3pid
× Can invite existing 3pid with no ops into a private room
× Can invite existing 3pid in createRoom
× Can invite unbound 3pid
× Can invite unbound 3pid over federation
× Can invite unbound 3pid with no ops into a private room
× Can invite unbound 3pid over federation with no ops into a private room
× Can invite unbound 3pid over federation with users from both servers
× Can accept unbound 3pid invite after inviter leaves
× Can accept third party invite with /join
✓ 3pid invite join with wrong but valid signature are rejected
✓ 3pid invite join valid signature but revoked keys are rejected
✓ 3pid invite join valid signature but unreachable ID server are rejected
× Can bind 3PID via home server
× Can bind and unbind 3PID via homeserver
× Can unbind 3PID via homeserver when bound out of band
× 3PIDs are unbound after account deactivation
× Can bind and unbind 3PID via /unbind by specifying the identity server
× Can bind and unbind 3PID via /unbind without specifying the identity server
Background information
go version
: go1.17Description
Attempting to associate an email address to an account via 3PID, the request to the identity server (mxisd) is sent as "form-urlencoded" instead of "application/json" causing a failure.
Captured network data is
client_secret=MYlT2A5eS5l1xxaU8QUIi1skJpx3KT9J&email=xxx%40email.com&send_attempt=1
https://github.com/matrix-org/dendrite/blob/master/clientapi/threepid/threepid.go#L62,L74
and it is documented as "application/json".
https://matrix.org/docs/spec/identity_service/r0.2.0#post-matrix-identity-api-v1-validate-email-requesttoken
Steps to reproduce