I'm trying to integrate Azure AD Authentication into a blazor WASM hosted app. I've got it working correctly with the default HTTP client, but I'd like to use Flurl.
This is what I have with the default HTTPClient setup;
builder.Services.AddHttpClient("{APP ASSEMBLY}.ServerAPI", client => client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)).AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>().CreateClient("{APP ASSEMBLY}.ServerAPI"));It seems I'm unable to replicate this behavior with Flurl. I've tried to override the default IHTTPClientFactory, but I can't seem to get it to accept the BaseAddressAuthorizationMessageHandler to pass the token along from Azure AD with the Flurl requests.