I just found that I needed to add the following NuGet package in order to get this to work: Microsoft.AspNetCore.StaticFiles I was using a vanilla configuration in my code where I setup swagger endpoint: And where I setup Swagger UI… Before I installed this package I was getting an HTTP error 500 from http://localhost:8308/swagger and … Continue reading Swagger UI on Service Fabric with Stateless ASP.NET Core WebAPI
Swagger
Enable Swagger to authenticate against Azure AD (Revised)
I've been hankering to enable my Azure AD protected WebAPI to be manually testable using Swagger UI. In order to do that, I need Swagger UI to authenticate against Azure Active Directory and make calls to my Azure-AD protected WebAPI. I've had to take a step back as my first attempt to do it with … Continue reading Enable Swagger to authenticate against Azure AD (Revised)
Swagger UI authentication with Azure AD B2C on Service Fabric .NET Core
I’ve been trying to figure out how to enable authentication on Swagger UI setup on an ASP.NET Core API hosted on Service Fabric (currently hosted locally). I initially setup the Service Fabric project using the wizard and immediately connected it with an application in my Azure AD B2C tenant. This appears to work but when … Continue reading Swagger UI authentication with Azure AD B2C on Service Fabric .NET Core