From 365aa49cbd85de39176ff95bf4755f6f42719359 Mon Sep 17 00:00:00 2001 From: pigeon Date: Sun, 7 Jun 2026 15:53:52 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E6=A0=87=E8=AE=B0=20Task=2011=20?= =?UTF-8?q?(sys=5Foauth=5Fclient=20grant=5Ftypes)=20=E5=B7=B2=E5=AE=8C?= =?UTF-8?q?=E6=88=90=20(commit=2074960af)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...026-06-07-multi-login-social-login-plan.md | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md index 16d09af..be0ac7a 100644 --- a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md +++ b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md @@ -1441,26 +1441,11 @@ git commit -m "feat(config): 添加社交登录配置模板 **Files:** - Modify: `sql/init-database.sql`(更新默认客户端配置) -- [ ] **Step 1: 更新默认客户端授权类型** +- [x] **Step 1: 更新默认客户端授权类型** -找到 `sys_oauth_client` 表的 INSERT 语句,更新 grant_types: +> **实际执行说明 (2026-06-07)**:表名实际为 `rui_auth_oauth2_client`(非 plan 中的 `sys_oauth_client`);列名实际为 `grant_types`(非 plan 中的 `authorized_grant_types`);当前已包含 'sms,wechat',仅需追加 'alipay'。采用"修改 INSERT 语句"方案,未另写 UPDATE。 -```sql --- 更新默认客户端,支持所有登录方式 -UPDATE sys_oauth_client -SET authorized_grant_types = 'password,refresh_token,client_credentials,sms,wechat,alipay' -WHERE client_id = 'rui-client'; -``` - -或者在 INSERT 语句中修改: - -```sql -INSERT INTO sys_oauth_client (id, client_id, client_secret, client_name, ...) -VALUES (1, 'rui-client', '{noop}rui-secret', '睿核默认客户端', ..., - 'password,refresh_token,client_credentials,sms,wechat,alipay', ...); -``` - -- [ ] **Step 2: Commit** +- [x] **Step 2: Commit** ```bash git add sql/init-database.sql