David Carr

Results comments of David Carr

@Larry57 You need to return a task or yield the task as part of the main process loop to allow cooperative cancellation to run. It would be safer to wrap...

I would consider this issue closed. @dalibor-sanzeru is right that various issues have been conflated here. CORS functionality is now more inline with spec and the docs need to acknowledge...

Looking at the code it already configures JwtBearer, so you only need to align the scheme and place the logic in the PostConfigure. https://github.com/aspnet/AADIntegration/blob/master/src/Microsoft.AspNetCore.Authentication.AzureADB2C.UI/AzureAdB2CAuthenticationBuilderExtensions.cs#L49

Try using `JwtBearerOptionsConfiguration`

Ha. Didn't notice. This is slightly awry. 🙄

You can use IConfigureNamedOptions, but register it as an IConfigureOptions `services.AddSingleton();`

Just check ordering around the call to `AddAzureADB2CBearer`

Looking deeper I think depending on which bearer auth is successful will depend on whether the post config will flow. Hence the ordering maybe a side effect of this. https://github.com/aspnet/HttpAbstractions/blob/master/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationService.cs#L63

String manipulation here is going to lead to memory hikes plus gc pressure. Replace with `StringBuilder` would be my first course of action.

Firstly, make sure the appsettings are being picked up. But if you want to test log levels pass these settings into `AddConsole` ``` var settings = new ConsoleLoggerSettings(); settings.Switches.Add("Microsoft", LogLevel.Error);...