Пример #1
0
        public async Task AuthorizeWithRedirectedUriAsync(Uri redirectedUri)
        {
            var queryParams = UriUtils.GetQueryParametersFromUri(redirectedUri);

            if (queryParams.ContainsKey("code") == false)
            {
                throw new SwarmServiceException($"This uri is not available. {redirectedUri.ToString()}");
            }

            await this.AuthorizeWithCodeAsync(queryParams["code"]);
        }