Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

CredentialsManager should also extract scopes when populating auth schemes

オープン 初心者向け
#7,266 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

src/google/adk/auth/credential_manager.py の 443 行目付近から始めます。ここでは CredentialsManager が OAuth Authorization Code Flows の auth scheme を設定しています。discovery レスポンスの scopes_supported フィールドと auth scheme オブジェクトを比較し、サポートされている scopes がコピーされることを確認します。認可 URL が、手動で重複させることなく、それらの検出された scopes を使用できれば変更は完了です。

索引モデルが issue の本文から書いたものです。

説明

Today, when CredentialsManager populates the auth scheme for OAuth Authorization Code Flows, it only populates the Authorize and Token URLs.

Looking at the discovery documents created by FastMCP, the document also contains the supported scopes, which are required when creating the authorization URL. The field's name in the discovery file is scopes_supported
(see step 2, Protected Resource Metadata Discovery)

Currently the alternative is to manually add these scopes to the AuthScheme when configuring it, basically duplicating what is already available to the code through the discovery endpoint.

Please consider adding the required code to also copy the scopes from the discovery response to the auth scheme object.

主要言語
Python
スター
21.6k
フォーク
4k
平均マージ
7時間 10分
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/adk-python のほかの issue

google/adk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。