Phase 12: signing in with the Core's Authelia

Admins make the client's secret under Settings → Sign-in, which shows the
entry for the Core's idproviders.yml (the secret's PBKDF2-SHA512 hash, the
redirect address, PKCE). People sign in with their Core account: invited
ones are matched by verified email, then by subject; optionally anyone at
the Core's domain joins. Passwords can be turned off but for the owner's,
and signing out ends the Core's session where it can. On multi-tenant, the
team is found by its proved domain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 13:00:36 -07:00
co-authored by Claude Opus 5.5
parent 637ef1cc25
commit 962dbe3286
19 changed files with 1458 additions and 15 deletions
+16
View File
@@ -20,6 +20,22 @@
<label>Password <input type="password" name="password" autocomplete="current-password" required {{if .Email}}autofocus{{end}}></label>
<button type="submit">Sign in</button>
</form>
{{if .Core}}
<form class="card" method="post" action="/signin/core">
<input type="hidden" name="next" value="{{.Next}}">
<button type="submit" class="secondary">Sign in with {{.Core}}</button>
<p class="help">Your Core's account, with its own two-factor sign-in if it has one.</p>
</form>
{{else if .CoreMulti}}
<details class="card">
<summary>Sign in with your Core</summary>
<form method="post" action="/signin/core">
<input type="hidden" name="next" value="{{.Next}}">
<label>Your company's website <input name="domain" placeholder="example.com" required></label>
<button type="submit" class="secondary">Continue to your Core</button>
</form>
</details>
{{end}}
<p class="help"><a href="/forgot{{with .Email}}?email={{.}}{{end}}">Forgotten your password?</a>{{if $.Multi}} · New here? <a href="/signup">Set up your team</a>{{end}}</p>
{{end}}
{{end}}{{end}}