AspNetExtensions.cs from microsoft/Agents
// Source: https://github.com/microsoft/Agents | License: MIT | Copyright Microsoft Corporation // Provided via justclaw.it.com; keep this notice with the code. // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.Agents.Authentication; using Microsoft.Agents.Core; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.IdentityModel.Protocols; using Microsoft.IdentityModel.Protocols.OpenIdConnect; using Microsoft.IdentityModel.Tokens; using Microsoft.IdentityModel.Validators; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key