docs(plan): 标记 Task 8 (支付宝登录框架) 已完成 (commit a4fcb95)
This commit is contained in:
@@ -1014,7 +1014,7 @@ git commit -m "feat(oauth2): 实现微信登录框架
|
||||
- Rewrite: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/alipay/AlipayAuthenticationProvider.java`
|
||||
- Create: `rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/alipay/AlipayApiClient.java`
|
||||
|
||||
- [ ] **Step 1: 创建 `AlipayAuthenticationToken`**
|
||||
- [x] **Step 1: 创建 `AlipayAuthenticationToken`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.alipay;
|
||||
@@ -1040,7 +1040,7 @@ public class AlipayAuthenticationToken extends BaseAbstractAuthenticationToken {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 2: 创建 `AlipayApiClient`**
|
||||
- [x] **Step 2: 创建 `AlipayApiClient`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.alipay;
|
||||
@@ -1125,7 +1125,7 @@ public class AlipayApiClient {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 重写 `AlipayAuthenticationConverter`**
|
||||
- [x] **Step 3: 重写 `AlipayAuthenticationConverter`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.alipay;
|
||||
@@ -1174,7 +1174,7 @@ public class AlipayAuthenticationConverter extends BaseAuthenticationConverter<A
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 4: 重写 `AlipayAuthenticationProvider`**
|
||||
- [x] **Step 4: 重写 `AlipayAuthenticationProvider`**
|
||||
|
||||
```java
|
||||
package com.rui.common.oauth2.authentication.alipay;
|
||||
@@ -1237,7 +1237,7 @@ public class AlipayAuthenticationProvider extends BaseAuthenticationProvider<Ali
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
- [x] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add rui-common/rui-common-oauth2/src/main/java/com/rui/common/oauth2/authentication/alipay/
|
||||
@@ -1250,6 +1250,10 @@ git commit -m "feat(oauth2): 实现支付宝登录框架
|
||||
- 支持 code 换取用户信息"
|
||||
```
|
||||
|
||||
> **实际执行说明 (2026-06-07)**:AlipayApiClient 内嵌 DTO 用 Lombok @Data;ALIPAY_GRANT_TYPE 提取为类常量;httpUtil 字段加 @SuppressWarnings("unused")。已知 TODO:支付宝 SDK 集成(getAccessToken/getUserInfo 抛 UnsupportedOperationException)、UserSocialService 集成、principal 编码占位符(按 spec "框架预留" 范围)。
|
||||
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
## Task 9: rui-common-oauth2 配置注册
|
||||
|
||||
Reference in New Issue
Block a user