Skip to content

Demonstrates how to tie Azure, oAuth, Swagger, ReDoc together in a .NET Core 3.1 'Web API' Project

Notifications You must be signed in to change notification settings

MikeGriffinReborn/AzureOAuthSwaggerReDoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

'AzureOAuthSwaggerReDoc'

This repo is expained in Mike's blog @ SaltyCode

This example is a pure .NET Web API REST solution (NOT an ASP.NET Web Solution) that provides a simple boilerplate example for getting your REST API up-to-snuff. This is probably about the most simple version you'll find with all of these technologies working together.

  • .NET Core 3.1
  • Basic Controller Endpoint
  • oAuth Authentication Against an Azure Tenant
  • Swagger Implementation (with oAuth support)
  • Ability to Serve up Static HTML Files
  • ReDoc Implementation with Custon Logo
  • XML Documentation to Enhance Swagger and ReDoc
  • Works on localhost, IIS Express, IIS, and Azure

Swagger => https://localhost:44326/swagger/index.html
ReDoc => https://localhost:44326/documentation/

Swagger Screen Shot

Redoc Screen Shot

NuGet Packages Used

<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server" Version="3.1.2">
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.0.0-rc5" />
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="5.0.0-rc5" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="5.0.0-rc5" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="5.0.0-rc5" />

About

Demonstrates how to tie Azure, oAuth, Swagger, ReDoc together in a .NET Core 3.1 'Web API' Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages