AnswerDotAI / AnswerDotAI/fasthtml-example
OAuth example should not infer org affiliation from the email field.
- 主要言語
- CSS
- スター
- 854
- フォーク
- 130
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This example parses the user's email, returned from Google's authorization server, in order to determine if the user should have access:
https://github.com/AnswerDotAI/fasthtml-example/blob/6a985a7d00ff33a54a07aa9ff9a8dba77bbeb428/oauth_example/oa.py#L9
However, Google says not to do this, and to use the "hd claim" instead:

We should update the example to follow Google's advice.
An analogous change will also be needed in the fasthtml explainer notebook: https://github.com/AnswerDotAI/fasthtml/blob/main/nbs/explains/oauth.ipynb
It may appear elsewhere as well.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
リンク先の oauth_example/oa.py の行から始め、次に nbs/explains/oauth.ipynb を調べて、同様のメールアドレスベースの所属確認を確認します。サンプルリポジトリと解説で、アクセス判断におけるメールフィールドのその他の使用箇所を検索します。両方の例が Google の hd claim に関するガイダンスに従い、メールアドレスに基づく組織の推測が残っていなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- authentication, authorization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100