Restrict access to certain API controllers in Swagger using Swashbuckle and ASP.NET Identity
- 阅读更多 关于 Restrict access to certain API controllers in Swagger using Swashbuckle and ASP.NET Identity
问题 So, I started using Swagger. I'm absolutely in love with it's features, but I have some doubts on availability of all methods to public. As far as I understood - all included in Swaschbuclke "auth" methods are actually about APIs itself, but I don't need help there - all of my APIs are protected by API id/key pair. I would like to somehow utilise ASP.NET Identity (login system) to restrict access to API page (/swagger/ui/index). Is there any way? Any methods in Swaschbuckle? Any routes