I am using Microsoft.Identity.Web library to validate the token in my .Net Core Web API.
Microsoft.Identity.Web
public void ConfigureServices(IServiceCollection