Adding a login page before Plumber Swagger UI

Is it possible to add a layer of login page before Swagger UI? As I know, the swagger UI is served at 127.0.0.1, but I want to allow specified users to access this API docs, and dynamically adding/removing these user access