[
https://issues.apache.org/jira/browse/CMIS-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johannes updated CMIS-989:
--------------------------
Description:
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}
was:
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}
> 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?
> {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)