docs(plan): 标记 Task 6 (短信登录框架) 已完成 (commit 89645d5)
This commit is contained in:
@@ -565,7 +565,7 @@ git commit -m "feat(oauth2): 扩展密码登录支持多账号类型
|
||||
- Rewrite: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/sms/SmsAuthenticationConverter.java`
|
||||
- Rewrite: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/sms/SmsAuthenticationProvider.java`
|
||||
|
||||
- [ ] **Step 1: 创建 `SmsAuthenticationToken`**
|
||||
- [x] **Step 1: 创建 `SmsAuthenticationToken`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.sms;
|
||||
@@ -591,7 +591,7 @@ public class SmsAuthenticationToken extends BaseAbstractAuthenticationToken {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 2: 重写 `SmsAuthenticationConverter`**
|
||||
- [x] **Step 2: 重写 `SmsAuthenticationConverter`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.sms;
|
||||
@@ -647,7 +647,7 @@ public class SmsAuthenticationConverter extends BaseAuthenticationConverter<SmsA
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 重写 `SmsAuthenticationProvider`**
|
||||
- [x] **Step 3: 重写 `SmsAuthenticationProvider`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.sms;
|
||||
@@ -698,7 +698,7 @@ public class SmsAuthenticationProvider extends BaseAuthenticationProvider<SmsAut
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 4: Commit**
|
||||
- [x] **Step 4: Commit**
|
||||
|
||||
```bash
|
||||
git add rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/sms/
|
||||
@@ -710,6 +710,10 @@ git commit -m "feat(oauth2): 实现短信登录框架
|
||||
- 支持 phone + code 登录模式"
|
||||
```
|
||||
|
||||
> **实际执行说明 (2026-06-07)**:`SMS_GRANT_TYPE` 提取为类常量;已知 TODO:验证码 code 校验逻辑未实现、phone 作为 principal 未编码账号类型(按 spec "框架先行" 范围,后续填充)。
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## Task 7: rui-common-oauth2 微信登录实现
|
||||
|
||||
Reference in New Issue
Block a user