diff --git a/ui/src/components/settings/AuthForm.tsx b/ui/src/components/settings/AuthForm.tsx index 97da011..ca7078e 100644 --- a/ui/src/components/settings/AuthForm.tsx +++ b/ui/src/components/settings/AuthForm.tsx @@ -17,6 +17,7 @@ export function AuthForm({ config, onChange }: SectionFormProps) { const providers = auth.providers ?? {}; const google = providers.google ?? {}; const gitea = providers.gitea ?? {}; + const local = auth.local ?? {}; return (
@@ -33,11 +34,12 @@ export function AuthForm({ config, onChange }: SectionFormProps) { onChange={e => onChange('auth.primaryProvider', e.target.value)} className="w-full h-8 px-2 text-[13px] border border-hairline rounded-md bg-canvas focus:ring-2 focus:ring-accent-ring focus:border-accent outline-none transition-shadow" > - + + - 単一プロバイダーに限定する場合に指定。未指定なら設定済みの全プロバイダーでログイン可 + 単一プロバイダーに限定する場合に指定。未指定なら設定済みの全プロバイダー(OAuth + ローカル)でログイン可
@@ -73,6 +75,27 @@ export function AuthForm({ config, onChange }: SectionFormProps) { セッション署名鍵。十分長いランダム文字列を設定(保存後はマスク表示)
+

ローカルアカウント(email + password)

+
+ + 外部 IdP を立てずに email/password でログインできるようにする。OAuth と併用可(primary_provider: local で local のみに限定) +
+
+ + ログイン画面に新規登録フォームを出す。登録は 承認待ちで作成され、admin がユーザー管理で承認するまでログインできない +
+ + 初回 admin(bootstrap_admin)は、UI に入るには既に admin ログインが必要なため、config.yamlauth.local.bootstrap_admin で設定します(id='local' で seed され、no-auth 時代のデータを引き継ぎます)。以降のユーザーは ユーザー管理 画面で作成・パスワードリセットできます。 + +

Google OAuth

Client ID