AnswerDotAI / AnswerDotAI/fasthtml-example

OAuth example should not infer org affiliation from the email field.

未关闭
#70 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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:

![Image](https://github.com/user-attachments/assets/5c8c8699-d7a9-4328-826d-69169b479831)

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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。