matrix-org / matrix-org/matrix-python-sdk
Support using "User-Interactive Authentication API" for login/register
オープン
まだ誰も着手していません。
Api layer
architecture
breaking
Client layer
enhancement
- 主要言語
- Python
- スター
- 266
- フォーク
- 118
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
First of all, thanks for the SDK, that helps a lot!
Now onto my issue: I followed MatrixClient's example on registering an user and got back an error about captcha. Could this be a change in Matrix' protocol that wasn't propagated down here?
>>> from matrix_client.client import MatrixClient
>>> client = MatrixClient("https://matrix.org")
>>> token = client.register_with_password(username="foobar1234", password="password")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/dryvenn/Downloads/matrix-python-sdk/matrix_client/client.py", line 126, in register_with_password
"m.login.password", user=username, password=password
File "/Users/dryvenn/Downloads/matrix-python-sdk/matrix_client/api.py", line 110, in register
return self._send("POST", "/register", content)
File "/Users/dryvenn/Downloads/matrix-python-sdk/matrix_client/api.py", line 459, in _send
code=response.status_code, content=response.text
matrix_client.errors.MatrixRequestError: 400: {"errcode":"M_UNKNOWN","error":"Captcha is required."}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
matrix_client/client.py の MatrixClient.register_with_password から始め、matrix_client/api.py の register および _send メソッドまで呼び出しを追ってください。示されている登録リクエストを matrix.org に対して再現し、User-Interactive Authentication API の要件を確認してください。captcha-required のレスポンスで失敗するのではなく、ログインと登録がその API をサポートすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, authentication
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100