[ 
https://issues.apache.org/jira/browse/CMIS-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florian Müller resolved CMIS-989.
---------------------------------
       Resolution: Fixed
         Assignee: Florian Müller
    Fix Version/s: PortCMIS 0.2.0

Your server seems to need preemptiv authentication for some reason.
I've added a session parameter PreemptivAuthentication ("true" or "false", 
default is "false"), which lets you turn preemptiv authentication on. This only 
works with basic authentication, though. 

> 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
>            Assignee: Florian Müller
>             Fix For: PortCMIS 0.2.0
>
>
> 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?
> {noformat}
> public override void PrepareHttpClientHandler(HttpClientHandler 
> httpClientHandler)
> {
>         base.PrepareHttpClientHandler(httpClientHandler);
>         if (User != null)
>         {
>                 //httpClientHandler.Credentials = new NetworkCredential(User, 
> Password); 
>                 var userPassword = Encoding.UTF8.GetBytes(User + ":" + 
> Password);
>                 AuthenticationHeader = new AuthenticationHeaderValue("Basic", 
> Convert.ToBase64String(userPassword));
>         }
>         else ...
> {noformat}



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

Reply via email to