我们使用以下链接在Azure Service Fabric应用程序上启用了Swagger。 Swagger for Azure Service Fabric Stateless Web API application
但是,我们无法使用OAuth(Azure AAD应用程序)保护swagger UI。任何人都可以提供一些指导,以便在Swagger UI上为Service Fabric上托管的应用程序启用安全性。
非常感谢,Thirumalai M
答案 0 :(得分:0)
Service Fabric托管Web Api如何处理这种情况与" normal"相比,没有任何真正的区别。 App Service或IIS托管Web Api。
以下文章很好地描述了如何使用OAuth2和IdentityServer3保护Swagger UI: http://knowyourtoolset.com/2015/09/secure-web-apis-with-swagger-swashbuckle-and-oauth2-part-4/