From 455d76cab48fbb10be7618e7d6ac462a6a41438d Mon Sep 17 00:00:00 2001 From: "Sylph." Date: Sun, 1 Nov 2026 22:59:57 +0900 Subject: [PATCH] =?UTF-8?q?docs(idp):=20=E7=99=BB=E9=8C=B2=E9=96=A2?= =?UTF-8?q?=E9=80=A3=E3=81=AE=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=A8=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E6=A7=8B?= =?UTF-8?q?=E6=88=90=E3=82=92=E8=BF=BD=E8=A8=98=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 直前のコミットに入らなかった表の更新を追加する - registration_* のエラーコード、新規ファイル、RegistrationSection.spec.ts のテスト案内 --- docs/services/idp/discord-login.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/services/idp/discord-login.md b/docs/services/idp/discord-login.md index 93bbd95d3a7..0e3f88fc5d9 100644 --- a/docs/services/idp/discord-login.md +++ b/docs/services/idp/discord-login.md @@ -216,6 +216,13 @@ lico の LDAP バックエンドは、全ユーザーで `EmailVerified()` に | `discord_username_invalid` | ユーザー名がルール違反(入力画面で表示) | | `discord_username_taken` | ユーザー名が使用済み(入力画面で表示) | | `discord_link_conflict` | 連携先が別のアカウントまたは別の Discord に紐付いている(アカウント画面で表示) | +| `registration_closed` | この経路での新規登録を受け付けていない(403) | +| `registration_pending` | アカウントが承認待ち(403) | +| `registration_submitted` | 承認制で登録申請を受け付けた(200) | +| `registration_mail_invalid` | メールアドレスが不正(登録画面で表示) | +| `registration_mail_taken` | メールアドレスが使用済み(登録画面で表示) | +| `registration_password_invalid` | パスワードが短い、またはパスワードポリシー違反(登録画面で表示) | +| `registration_password_mismatch` | 確認欄と一致しない(登録画面で表示) | 連携フローでは、state Cookie の検証より後のエラーをエラー画面ではなく、アカウント画面の `discord_link` クエリで返します。 @@ -243,15 +250,23 @@ lico の LDAP バックエンドは、全ユーザーで `EmailVerified()` に | `services/idp/pkg/discord/session.go` | lico ログオン Cookie の発行 | | `services/idp/pkg/discord/settings.go` | 設定の検証と保存 | | `services/idp/pkg/discord/admin.go` | 管理 API の認可、連携 API のユーザー認証 | +| `services/idp/pkg/discord/registration.go` | 登録設定の保存、公開 API と管理 API | +| `services/idp/pkg/discord/pending.go` | 承認待ちアカウントの保存 | +| `services/idp/pkg/discord/approval.go` | 承認待ち一覧と承認・拒否の管理 API | +| `services/idp/pkg/discord/logon.go` | パスワードログインの承認待ち判定 | +| `services/idp/pkg/discord/websignup.go` | Web 登録フォームの処理 | +| `services/idp/pkg/service/v0/discord_register.go` | Web 登録画面の描画 | | `services/idp/pkg/backends/ldapverified/` | `email_verified` 用の LDAP バックエンドラッパーと identity manager | | `services/idp/pkg/service/v0/discord.go` | 依存関係の組み立て、画面描画、日英メッセージ | | `services/idp/pkg/service/v0/ldap_manager.go` | ラッパー版 identity manager の登録 | | `services/idp/assets/identifier/discord_signup.html` | ユーザー名入力画面 | +| `services/idp/assets/identifier/discord_register.html` | Web 登録画面 | | `services/idp/assets/identifier/index.html`, `static/theme.css` | ログインボタンとスタイル | | `services/proxy/pkg/config/defaults/defaultconfig.go` | `/oauth2/discord/` のルート | | `services/idp/pkg/config/` | `TokenManager`、`ServiceAccount`、`Discord` 設定 | | `ocis/pkg/init/` | `ocis init` でサービスアカウントを idp に書き込む | | `web/packages/web-app-admin-settings/src/components/General/DiscordSection.vue` | 管理設定画面 | +| `web/packages/web-app-admin-settings/src/components/General/RegistrationSection.vue` | 登録設定と承認待ち一覧 | | `web/packages/web-runtime/src/components/Account/DiscordLink.vue` | アカウント画面の連携行 | -テストは `go test ./services/idp/pkg/...` と、`DiscordSection.spec.ts`、`DiscordLink.spec.ts`(web)で実行できます。 +テストは `go test ./services/idp/pkg/...` と、`DiscordSection.spec.ts`、`RegistrationSection.spec.ts`、`DiscordLink.spec.ts`(web)で実行できます。