Open jasom opened 2 years ago
I'm having the same problem, but only with matrix.org
homeserver, so this sounds like a limitation of matrix.org itself, which requires SSO ?
This is the ironic screen I'm shown when trying to follow the weechat-matrix instructions:
Choose identity provider
Log in to matrix.org
Choose an identity provider to log in
* [1][IMG][2] GitHub
* [3][IMG][4] Google
* [5][IMG][6] GitLab
* [7][IMG][8] Facebook
* [9][IMG][10] Apple
An open network for secure, decentralized communication.
© 2022 The Matrix.org Foundation C.I.C.
Note how "decentralized communication" and that list of identity providers are in disagreement...
The matrix-weechat instructions were:
16:07:51 -- | matrix: The server requested a single sign-on, please open this URL in your browser. Note
| that the browser needs to run on the same host as Weechat.
16:07:51 -- | matrix: https://matrix.org:443/_matrix/client/r0/login/sso/redirect?redirectUrl=http://127.
| 0.0.1:58683
16:07:51 =!= | matrix: Error decoding SSO login message from child process:
The last line is what happens after killing the browser (links) I used to follow the instructions
Info from #matrix IRC channel on libera.chat:
6:11:35 ilmari | strk: https://matrix-client.matrix.org/_matrix/client/v3/login returns sso,
| token, password and appservice flows
16:12:08 ilmari | in that order. maybe weechat only looks at the first one?
The code seems to ASSUME server requires SSO if it gets a redirectURL typed response
It looks like while this fails with weechat-python 0.2.0-2 as packaged by Debian GNU/Linux 11 (bullseye), it is fixed by installing weechat-matrix from current master branch as of 989708d1fa8fcee6d5bbb4c19a7d66f14d84fd5b
I'm not using SSO, I can login with other matrix clients without SSO. However when I try with weechat-matrix it requests SSO:
NixOS 21.05 using 0.3.0.
Settings: