Add Authentication to /swagger/ui/index page - Swagger | Web API | Swashbuckle

前端 未结 3 726
遇见更好的自我
遇见更好的自我 2021-02-14 20:06

I\'m working on a Swagger (Web API) project.
When I first run the application it shows the Login page for Swagger UI.
So, a user first has to login to access Swagger UI

3条回答
  •  逝去的感伤
    2021-02-14 20:48

    spring-security login page

    in my case, that is not swagger page but spring-security login page. boot version 2.X includes security auto configuration, so if you add spring-security plugin in build.gradle, remove and restart.

提交回复
热议问题