Aufgabe 37: Admin Basic-Auth & Zugriffsschutz #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ziel
Admin-Dashboard (
/admin) mit Basic-Auth schützen. Keine öffentlich erreichbare Admin-Oberfläche.Ist-Stand
/administ ohne Authentifizierung erreichbarAkzeptanzkriterien
/adminund/admin/*.env(ADMIN_USER,ADMIN_PASS)/api/*(öffentliche API-Endpunkte)WWW-AuthenticateHeaderDateien
app.py— Flask Basic-Auth Middleware oder Decoratortemplates/login.html— NEUtests/test_admin_auth.py— NEUQualität