예제 #1
0
        public async Task <string> GetAccessToken(string source, string clientId, ClientAssertion assertion)
        {
            _logger.LogInformation("Get access_token for {clientId} from {source}", clientId, source);

            var jwtAssertion = await _assertionService.CreateJwtAssertion(assertion);

            return(await DoGetAccessToken(source, clientId, jwtAssertion));
        }
        public async Task <string> GetAccessToken(string source, string clientId, ClientAssertion assertion, string privateKey, string[] publicKeys)
        {
            _logger.LogInformation("Get access_token for {clientId} from {source}", clientId, source);

            var jwtAssertion = _assertionService.CreateJwtAssertion(assertion, privateKey, publicKeys);

            return(await DoGetAccessToken(source, clientId, jwtAssertion).ConfigureAwait(false));
        }