Ejemplo n.º 1
0
        public static async Task <AuthenticationHeaderValue> AcquireAuthHeader(this IAuthenticationProvider tokenProvider)
        {
            string token = await tokenProvider.AcquireToken();

            return(new AuthenticationHeaderValue("Bearer", token));
        }