- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for detection (0.19 sec)
-
docs/en/docs/advanced/security/http-basic-auth.md
That way, using `secrets.compare_digest()` in your application code, it will be safe against this whole range of security attacks. ### Return the error After detecting that the credentials are incorrect, return an `HTTPException` with a status code 401 (the same returned when no credentials are provided) and add the header `WWW-Authenticate` to make the browser show the login prompt again:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 14:33:05 GMT 2024 - 5.9K bytes - Viewed (0)