'FastAPI create auth for all endpoints

I followed this documentation to setup up a single user: https://fastapi.tiangolo.com/advanced/security/http-basic-auth/

But I only get prompted for user/pass for that one end point, "/users/me".

How do I ensure that all endpoints are behind auth?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source