dotnet / dotnet/wcf

netstandard 2.0 - support for TransportWithMessageCredential in BasicHttpsBinding

Open
#4,469 15 comments 11 reactions 1 assignee Assigned to @mconnew View on GitHub
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

Hello,
question especially to @mconnew or anyone. I want to ensure that we have support for TransportWithMessageCredential in BasicHttpsBinding (not BasicHttpBinding) in netstandard 2.0.

In this site we can see support for BasicHttpBinding, but I'm guess that we have support also for BasicHttpsBinding.
https://github.com/dotnet/wcf/blob/master/release-notes/SupportedFeatures-v2.0.0.md

This code throws NotSupportedPlatformException:
```
var binding = new BasicHttpsBinding(BasicHttpsSecurityMode.TransportWithMessageCredential)
{
};
```

but this code below doesn't throw exception and looks like everything works. I'm not sure if everything is secured/implemented under hood:
```
var binding = new BasicHttpsBinding
{
Security =
{
Mode = BasicHttpsSecurityMode.TransportWithMessageCredential
}
};
```
This is reference to your source code:
https://github.com/dotnet/wcf/blob/release/2.0.0/src/System.Private.ServiceModel/src/System/ServiceModel/BasicHttpsBinding.cs

This is some kind of bug in this code and I can use this code OR BasicHttpsBinding is only partially/not supported? I tried upgrade netstandard 2.0 to netstandard 2.1 but it looks like doesn't help. Upgrade for my case is generally not a good idea because it's a big cost.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.