public static async Task <AuthenticationHeaderValue> AcquireAuthHeader(this IAuthenticationProvider tokenProvider) { string token = await tokenProvider.AcquireToken(); return(new AuthenticationHeaderValue("Bearer", token)); }