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); }
public async Task <string> GetProposalManagerToken() { var token = await authProvider.GetProposalManagerTokenOnBehalfOfAsync(); return(token); }