Пример #1
0
        public TritonLink(ISsoCredentialProvider sso)
        {
            _container = new CookieContainer();
            _container.Add(sso.GetCredentials());

            var clientHandler = new HttpClientHandler
            {
                AllowAutoRedirect = true,
                UseCookies        = true,
                CookieContainer   = _container
            };

            _client = new HttpClient(clientHandler)
            {
                BaseAddress = new Uri(ActUrl)
            };
        }
Пример #2
0
        public void UpdateCredentials(ISsoCredentialProvider sso)
        {
            var cookies = sso.GetCredentials();

            _container.Add(cookies);
        }