Reputation: 121
We enabled Swagger on Azure Service Fabric application using below link. Swagger for Azure Service Fabric Stateless Web API application
But, we are unable to secure the swagger UI using OAuth (Azure AAD application). Can anyone please provide some guidance on enabling security on Swagger UI for the application hosted on Service Fabric.
Many Thanks, Thirumalai M
Upvotes: 0
Views: 706
Reputation: 3325
There isn't any real difference to how a Service Fabric hosted Web Api would handle this compare to a "normal" App Service or IIS hosted Web Api.
The following article does a good job of describing how to secure a Swagger UI using OAuth2 and IdentityServer3: http://knowyourtoolset.com/2015/09/secure-web-apis-with-swagger-swashbuckle-and-oauth2-part-4/
Upvotes: 0