예제 #1
0
        private async Task UpdateAuthorizationHeaderAsync()
        {
            const string authScheme = "Bearer";
            var          token      = await _accessTokenProvider.GetAsync();

            _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(authScheme, token);
        }