-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
feat: add LoginHandlerEnhancer for enhanced login processing #6176
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6176 +/- ##
============================================
+ Coverage 54.51% 57.18% +2.67%
- Complexity 3523 3720 +197
============================================
Files 646 648 +2
Lines 21862 21969 +107
Branches 1528 1536 +8
============================================
+ Hits 11917 12563 +646
+ Misses 9328 8796 -532
+ Partials 617 610 -7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RememberMeServices
和 DeviceService
接口需要放到 api module 下面才能够被插件正确使用。
另外,如果只是针对登录的场景,看能否只提供一个接口专门用户登录成功之后的处理呢。在 Core 和插件中直接调用该接口实现登录成功后的逻辑。
ff305ad
to
51fa2bf
Compare
see also halo-sigs/plugin-oauth2#48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
### What this PR does? 增加关于 LoginHandlerEnhancer 的使用文档 see also halo-dev/halo#6176 ```release-note None ```
What type of PR is this?
/kind improvement
/area core
/milestone 2.17.x
What this PR does / why we need it:
新增 LoginHandlerEnhancer 用于 Halo 扩展登录成功或失败后的处理逻辑如 RememberMe 和设备管理等
Does this PR introduce a user-facing change?