David Carr

Results comments of David Carr

Excellent but I wouldn't recommend running from the bin folder. That is non standard.

Possibly by design. Return the Task or Execute and return `Task.CompletedTask`

There is an overload which passes `IServiceProvider` via delegate

https://github.com/aspnet/HttpClientFactory/blob/5bb701daaa087dd8dc0f0a882117e316675dda6d/src/Microsoft.Extensions.Http/DependencyInjection/HttpClientBuilderExtensions.cs#L46

Need to be careful that default policy does not override your controller behaviour. Also by removing default scheme in the call to `AddAuthentication` will mean calls will not fallback.

I pulled your repo and I'm not seeing this behaviour, but something could be different. Admittedly this is what I would expect looking at the code. 2.2.100 ![image](https://user-images.githubusercontent.com/13968716/52981641-d15d0e80-33d8-11e9-8b8b-2c6b4ad104a1.png)

Just downloaded the latest sdk and there is certainly a behaviour change. EDIT : But interestingly can't reproduce through Postman

Policy workaround, will need to remove default scheme and use policy name in the controller actions ``` services.AddAuthorization(o => { o.AddPolicy("defaultPolicy", builder => { builder.RequireAuthenticatedUser(); }); o.AddPolicy("jwtPolicy", builder => {...

@MihaMarkic The new client cert forwarding bits should cater for this.

https://github.com/aspnet/AspNetCore/issues/10645#issuecomment-497368455 On Fri, 31 May 2019, 18:50 Miha Markič, wrote: > @DAllanCarr Do you have a link about it? > > — > You are receiving this because you were...