Johannes created CMIS-989:
-----------------------------

             Summary: PortCMIS: User / Password login should submit 
authentication in header
                 Key: CMIS-989
                 URL: https://issues.apache.org/jira/browse/CMIS-989
             Project: Chemistry
          Issue Type: Wish
            Reporter: Johannes


I came across a CMIS system where login would not work with PortCMIS (OpenText 
Content Server). The below change in BindingIntf.cs makes it work and does not 
break any unit test for the other CMIS systems. Should that code be the default?

{quote}
public override void PrepareHttpClientHandler(HttpClientHandler 
httpClientHandler)
        {
            base.PrepareHttpClientHandler(httpClientHandler);

            if (User != null)
            {
                // Changes accordig to Matthias Specht, needed for Content 
Server
                //httpClientHandler.Credentials = new NetworkCredential(User, 
Password); Changed by JS: 2016-07-01"
                var userPassword = Encoding.UTF8.GetBytes(User + ":" + 
Password);
                AuthenticationHeader = new AuthenticationHeaderValue("Basic", 
Convert.ToBase64String(userPassword));
            }
            else ...
{quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to