在Service Fabric Web API服务上启用Swagger UI的安全性

时间:2017-03-04 12:51:41

标签: azure azure-service-fabric swagger-ui

我们使用以下链接在Azure Service Fabric应用程序上启用了Swagger。 Swagger for Azure Service Fabric Stateless Web API application

但是,我们无法使用OAuth(Azure AAD应用程序)保护swagger UI。任何人都可以提供一些指导,以便在Swagger UI上为Service Fabric上托管的应用程序启用安全性。

非常感谢,Thirumalai M

1 个答案:

答案 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/