.NET-5 Hide swagger endpoints to unauthorized users

后端 未结 0 1854
陌清茗
陌清茗 2021-01-25 17:19

I have a .NET 5 API using OpenApi.

Is it possible to hide all API endpoints in swagger but the login one until user is authorized with a JWT Bearer Token?

This is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题