The Core's admin account is always an admin of the app

Every app's .env gets CORE_ADMIN_EMAIL (admin@<domain>, the Core's own
admin, as Federated's apps use). The skill says apps make that account an
admin on each Core sign-in, trusting only Authelia's email, instead of a
setup link; the sso example apps show the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 18:34:36 -07:00
co-authored by Claude Opus 5.5
parent da36a669bf
commit dca8837487
8 changed files with 54 additions and 13 deletions
+3 -1
View File
@@ -42,9 +42,11 @@ class Handler(BaseHTTPRequestHandler):
user = oidc.read_session(self.cookie("session"))
if user:
groups = ", ".join(user.get("groups") or []) or "none"
admin = ", the app's admin" if user.get("admin") else ""
body = (
f"<p>Signed in as <strong id=\"user\">{html.escape(user['name'])}</strong>"
f" ({html.escape(user['email'])}), groups: {html.escape(groups)}.</p>"
f" ({html.escape(user['email'])}), groups: {html.escape(groups)}"
f"{admin}.</p>"
'<p><a href="/logout">Sign out</a></p>'
)
else: