chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (CMIS-989) PortCMIS: User / Password login should submit authentication in header
Date Wed, 06 Jul 2016 10:38:10 GMT

     [ 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)

Mime
View raw message