# Add Basic Auth to Apps

- In Traefik 
    - under the middlewares tab 
        - add basicAuth
        - add username and passwords as required
        - [![image.png](https://docs.coltscomputer.services/uploads/images/gallery/2024-01/scaled-1680-/v7Wj2W5NXjZCRrNc-image.png)](https://docs.coltscomputer.services/uploads/images/gallery/2024-01/v7Wj2W5NXjZCRrNc-image.png)
- In application 
    - edit the application
    - under integrations Traefik tab 
        - select add middleware
        - name of middleware is name set in traefik
        - [![image.png](https://docs.coltscomputer.services/uploads/images/gallery/2024-01/scaled-1680-/t3RshlKyflkJ1gig-image.png)](https://docs.coltscomputer.services/uploads/images/gallery/2024-01/t3RshlKyflkJ1gig-image.png)
        - save and update application