Ejemplo n.º 1
0
        public async Task <HttpClient> GetProposalManagerWebClientAsync()
        {
            var token = await authProvider.GetProposalManagerTokenOnBehalfOfAsync();

            var client = new HttpClient();

            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json"));
            client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);

            return(client);
        }
Ejemplo n.º 2
0
        public async Task <string> GetProposalManagerToken()
        {
            var token = await authProvider.GetProposalManagerTokenOnBehalfOfAsync();

            return(token);
        }