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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user