Using the newest Identity package, I have the following code in my Startup to register AzureAd and an API:
services.AddAuthentication(OpenIdConnectDefaults.Au