Skip to content

Instantly share code, notes, and snippets.

using System.IdentityModel.Tokens.Jwt;
using Microsoft.AspNetCore.Authentication;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using Microsoft.IdentityModel.Tokens;
namespace ReverseProxy.Common;
//https://blog.cellenza.com/en/cloud/secure-access-to-swagger-ui-with-azure-active-directory/
//https://medium.com/@niteshsinghal85/securing-swagger-ui-in-production-in-asp-net-core-part-2-dc2ae0f03c73