dotnet / dotnet/wcf

Expose missing settings in LocalClientSecuritySettings

Open
#4,754 1 comment 0 reactions 1 assignee Claimed by @imcarolwang View on GitHub
triaged
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

**Describe the bug**
.Net Standard version of LocalClientSecuritySettings is missing few properties like e.g.: SessionKeyRenewalInterval, SessionKeyRolloverInterval, IdentityVerifier etc

**To Reproduce**
Create a client targeting (System.ServiceModel.Security v4.8, .NetStandard 2.0). Configure TCP secure binding and modify TransportSecurityBindingElement e.g.:

```C#
var customBinding = new CustomBinding(binding);
var transportSecurityBindingElement = customBinding.Elements.Find();
if (transportSecurityBindingElement != null)
{
transportSecurityBindingElement.LocalClientSettings.SessionKeyRenewalInterval = TimeSpan.FromHours(1)
}
```

Notice that SessionKeyRenewalInterval is not accessible at build time.

**Expected behavior**
Missing setting should be exposed as in WCF for legacy .NET

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.