Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

把Alipay独有的配置从AuthConfig里提取出来 #134

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

verils
Copy link
Contributor

@verils verils commented Sep 1, 2021

AuthConfig从设计上看本应是公共的参数,但是实际上里面揉杂了各种第三方服务独有的配置。虽然文档已经解释得很清楚了,但是我觉得设计良好的代码应该具备更强的约束,所以对AuthConfig做了一些小修改。考虑到对旧版本的兼容性,我对不合理的属性和方法标记了@deprecated,并给出了注释说明

AuthChecker也存在相同的问题,作为一个工具类,它不应该了解任何AuthRequest的具体实现,否则check的逻辑在将来可能会无限膨胀

由于精力的关系,我暂时只处理了Alipay的第三方集成

@verils verils changed the title 把第三方服务独有的配置从AuthConfig里提取出来 把Alipay独有的配置从AuthConfig里提取出来 Sep 1, 2021
@zhangyd-c
Copy link
Member

nice,建议很好!

@zhangyd-c zhangyd-c merged commit 497498d into justauth:dev Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants