feat(api): let each organization sign in through its own identity provider
Owners manage OIDC providers under /settings/sso. Users start at /sso/<org>. New users can be provisioned for verified emails in allowed domains; existing accounts are never matched by email and must link their SSO sign-in while signed in. Closes #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
9ad5f29f1b
commit
3f21361995
19 files changed
+2731
-231
No files matched your search
@@ -19,6 +19,20 @@ templ Login(p Page, signupAllowed bool) {
|
||||
</div>
|
||||
@submit(i18n.T(ctx, "auth.login.submit"))
|
||||
</form>
|
||||
<form action="/sso" method="get" class="mt-10 border-t border-rule pt-6">
|
||||
<p class="mb-3 text-xs font-medium uppercase tracking-wider text-muted">{ i18n.T(ctx, "auth.sso.heading") }</p>
|
||||
<div class="flex gap-2">
|
||||
<input
|
||||
class="min-w-0 flex-1 border border-rule bg-transparent px-2.5 py-1.5 font-mono text-sm outline-none focus:border-ink"
|
||||
name="org"
|
||||
placeholder={ i18n.T(ctx, "auth.sso.org_placeholder") }
|
||||
aria-label={ i18n.T(ctx, "auth.sso.org_placeholder") }
|
||||
autocomplete="organization"
|
||||
required
|
||||
/>
|
||||
<button type="submit" class="border border-ink px-3 py-1.5 text-sm hover:bg-ink hover:text-paper">{ i18n.T(ctx, "auth.sso.submit") }</button>
|
||||
</div>
|
||||
</form>
|
||||
if signupAllowed {
|
||||
<p class="mt-8 text-sm text-muted">
|
||||
{ i18n.T(ctx, "auth.login.no_account") }
|
||||
|
||||
Reference in new issue
Block a user