Esempio n. 1
0
        private async Task <TokenResponse> GetAccessTokenAsync(
            QueryParameterBuilder queryParams,
            CancellationToken cancellationToken)
        {
            var response = await _httpManager.PostAsync(
                _authenticationParameters.AuthorityUri.GetTokenEndpoint(),
                GetVersionHeaders(),
                queryParams.ToHttpContent(),
                cancellationToken).ConfigureAwait(false);

            return(TokenResponse.Create(response.StatusCode, response.ResponseData));
        }