Refactor CLI login process
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
まず、cli、client、rest モジュールにわたって login サブコマンドと関連メソッドを追跡し、各 SessionManager の生成と oidc_config の検索をたどります。設定からトークンパスがどのように読み取られるか、また rest クライアントが OIDC 設定をどのように取得するかを確認します。提案されたログインフローが統合され、トークンパスにクライアント設定が不要になるか CLI オプションとして公開され、interactive_login() と check_login() が記載されたケースをカバーすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The login subcommand and the supporting methods are spread across three modules (cli, client and rest). The configuration for them is split between the server (for the oidc config) and the config file (which we want the client to avoid needing (#1327)).
- To login, a
SessionManageris created using a path from the config and queried for a token - If it does not find a valid token, a client is created from the config (creating a new session manager from the same path)
- The client is used to get the oidc_config (via the rest client)
- The oidc config is used to create a third
SessionManager - The final
SessionManageris used to start the device flow and cache the token
Without having fully worked through the repercussions, it would be good to:
- Remove the token file path from the config - we don't want to need a config file for the client
- Make the token path a CLI option if it still needs to be configurable
- Move the login method into the rest client - if we need the rest client to access the oidc config anyway, it makes sense to use it to log in.
interactive_login()- to prompt the user to logincheck_login()- to fail early for scripts
- 主要言語
- Python
- スター
- 14
- フォーク
- 14
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 27
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiamondLightSource/blueapi のほかの issue
-
support: low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DiamondLightSource/blueapi#1772 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
deployment dev-environment
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DiamondLightSource/blueapi#1623 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DiamondLightSource/blueapi#1605 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
DiamondLightSource/blueapi#1494 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DiamondLightSource/blueapi#1788 ·
メンテナーはふだん 1 日以内に返信
DiamondLightSource/blueapi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ProyectoRespira/respira-webapp#334 ·
メンテナーはふだん 1 日以内に返信
-
bug security-alert
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
spectrayan/carefold#391 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Jakeschincariol/instagram-agent-skill#83 ·
メンテナーはふだん 10 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 64/100