Deprecated library warning (AuthlibDeprecationWarning: authlib.jose module is deprecated)

未关闭 适合新手
#92 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
python

调研方向

从 auth0_api_python/api_client.py 第 7 行开始,该行导入 authlib.jose 时会发出警告,并检查该包当前的依赖兼容性。使用 Python 3.13 重现此次导入,然后验证导入 ApiClient 不再发出 AuthlibDeprecationWarning,同时 SDK 仍能成功加载。

由索引模型根据 Issue 内容生成。

描述

bug
Checklist
  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.
Description

Warning emitted:

.venv/lib/python3.13/site-packages/auth0_api_python/api_client.py:7: AuthlibDeprecationWarning: authlib.jose module is deprecated, please use joserfc instead.
  It will be compatible before version 2.0.0.
    from authlib.jose import JsonWebKey, JsonWebToken
Reproduction
>>> from auth0_api_python.api_client import ApiClient
/Users/.../.venv/lib/python3.13/site-packages/auth0_api_python/api_client.py:7: AuthlibDeprecationWarning: authlib.jose module is deprecated, please use joserfc instead.
It will be compatible before version 2.0.0.
  from authlib.jose import JsonWebKey, JsonWebToken
Additional context

No response

auth0-api-python version

1.0.0b9

Python version

3.13

主要语言
Python
星标
4
派生
9
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

auth0/auth0-api-python 的其他 Issue

查看 auth0/auth0-api-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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