dromara / dromara/Sa-Token

期望增加afterAuth

Open
#707 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
19k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

### 建议增加的新功能:
1. 期望在SaServletFilter中新增afterAuth属性
2. 期望在SaServletFilter中新增finalRun属性

### 应用场景阐述:

1. 用于在认证完后执行自定义函数,例如保存登录日志?
2. 用于在chain.doFilter(request, response);后置执行,例如,清除线程上下文之类的

< 备注:请尽量详细描述功能应用场景 >

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the SaServletFilter entry point and trace its authentication and request-chain lifecycle. Determine where an afterAuth callback and a finalRun callback would run based on the stated scenarios. Done means both properties are supported with the requested timing and their behavior is covered by the project's existing verification approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.