#!/usr/bin/env python3 """Restore Homarr auth to credentials-only. SSO is handled at the Caddy/Authentik outpost level.""" import sqlite3, json conn = sqlite3.connect("/home/allaun/.local/share/containers/storage/volumes/homarr-data/_data/db/db.sqlite") auth_config = { "json": { "providers": ["credentials"], } } conn.execute( "UPDATE serverSetting SET value = ? WHERE setting_key = ?", (json.dumps(auth_config), "authentication"), ) conn.commit() print("Restored credentials-only auth. SSO is handled by Caddy/Authentik outpost.") conn.close()