Exemplo n.º 1
0
        private async Task <string> GetAuthProviderUrl(string configurationUrl)
        {
            var configurationUri = GetUri(configurationUrl);
            var configuration    = await _getConfigurationOperation.ExecuteAsync(configurationUri);

            return(configuration.AuthProviderEndPoint);
        }
Exemplo n.º 2
0
        private async Task <string> GetSettingUrl(string configurationUrl)
        {
            var configurationUri = GetUri(configurationUrl);
            var configuration    = await _getConfigurationOperation.ExecuteAsync(configurationUri);

            return(configuration.SettingEndPoint);
        }
Exemplo n.º 3
0
        private async Task <string> GetIntrospectionEndpoint(Uri configurationUri)
        {
            if (configurationUri == null)
            {
                throw new ArgumentNullException(nameof(configurationUri));
            }

            var configuration = await _getConfigurationOperation.ExecuteAsync(configurationUri);

            return(configuration.IntrospectionEndPoint);
        }
        public async Task <AddPermissionResponse> AddByResolution(PostPermission request, string url, string token)
        {
            var configuration = await _getConfigurationOperation.ExecuteAsync(UriHelpers.GetUri(url));

            return(await Add(request, configuration.PermissionRegistrationEndPoint, token));
        }
 public Task <GetConfigurationResult> GetConfiguration(Uri wellKnownConfigurationUri)
 {
     return(_getConfigurationOperation.ExecuteAsync(wellKnownConfigurationUri));
 }
Exemplo n.º 6
0
        public async Task <UpdateResourceSetResponse> UpdateByResolution(PutResourceSet request, string url, string token)
        {
            var configuration = await _getConfigurationOperation.ExecuteAsync(UriHelpers.GetUri(url));

            return(await Update(request, configuration.ResourceRegistrationEndpoint, token));
        }
        public async Task <AuthorizationResponse> GetByResolution(PostAuthorization request, string url, string token)
        {
            var configuration = await _getConfigurationOperation.ExecuteAsync(UriHelpers.GetUri(url));

            return(await Get(request, configuration.RptEndPoint, token));
        }
Exemplo n.º 8
0
        public async Task <UpdateScopeResponse> UpdateByResolution(PutScope request, string url)
        {
            var configuration = await _getConfigurationOperation.ExecuteAsync(UriHelpers.GetUri(url));

            return(await Update(request, configuration.ScopeEndPoint));
        }