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