MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / require_authenticated_download

Function require_authenticated_download

IntelOSINT.py:2183–2188  ·  view source on GitHub ↗
(scope, limit=40, window=60)

Source from the content-addressed store, hash-verified

2181
2182
2183def require_authenticated_download(scope, limit=40, window=60):
2184 if rate_limited(scope, limit=limit, window=window):
2185 return "Troppe richieste. Riprova tra poco.", 429
2186 if not flask_session.get("admin_authenticated"):
2187 return "Sessione amministratore non valida.", 401
2188 return None
2189
2190
2191def public_error(message="Operazione non riuscita.", status=400):

Callers 6

tg_export_reportFunction · 0.85
scrape_downloadFunction · 0.85
api_media_downloadFunction · 0.85
api_media_frameFunction · 0.85
tg_export_csvFunction · 0.85
api_reports_examplesFunction · 0.85

Calls 1

rate_limitedFunction · 0.85

Tested by

no test coverage detected