Esempio n. 1
0
        public async Task <JsonWebKeySet> ResolveAsync(Uri configurationUri)
        {
            if (configurationUri == null)
            {
                throw new ArgumentNullException(nameof(configurationUri));
            }

            var configuration = await _getConfigurationOperation.Execute(configurationUri).ConfigureAwait(false);

            return(await _getJwksOperation.ExecuteAsync(new Uri(configuration.JwksEndpoint)).ConfigureAwait(false));
        }
Esempio n. 2
0
 public Task <ConfigurationResponse> GetConfiguration(Uri uri)
 {
     return(_getConfigurationOperation.Execute(uri));
 }
        public async Task <GetOfficeDocumentResponse> GetResolve(string documentId, string configurationUrl, string accessToken)
        {
            var configuration = await _getConfigurationOperation.Execute(new Uri(configurationUrl)).ConfigureAwait(false);

            return(await _getOfficeDocumentOperation.Execute(documentId, configuration.OfficeDocumentsEndpoint, accessToken).ConfigureAwait(false));
        }