Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllowInsecureTransport & EnableUnsecuredResponse in SecurityBindingElement class #4817

Open
phspies opened this issue Apr 28, 2022 · 4 comments
Assignees

Comments

@phspies
Copy link

phspies commented Apr 28, 2022

I'm trying to construct a SecurityBindingElement object but the AllowInsecureTransport and EnableUnsecuredResponse attributes are not available within the created object.

When you look at the code here, one can see that these attributes are listed.

Is this code old and no longer used?

@HongGit
Copy link
Contributor

HongGit commented May 19, 2022

@imcarolwang can you please see if you could add code and tests for this issue?

@phspies
Copy link
Author

phspies commented May 19, 2022

I can create the example code, but a test is not even possible as the SecurityBindingElement doesn't have those attributes. I guess what would be the correct approach to access these attributes?

@seth-hamill
Copy link

I also have this issue, did you get around it? @phspies

@wzchua
Copy link

wzchua commented May 19, 2023

Hi this is because the ref assembly does not expose those properties

public abstract partial class SecurityBindingElement : System.ServiceModel.Channels.BindingElement
{
internal SecurityBindingElement() { }
public System.ServiceModel.Security.Tokens.SupportingTokenParameters EndpointSupportingTokenParameters { get { return default; } }
public bool IncludeTimestamp { get { return default; } set { } }
public System.ServiceModel.Security.SecurityAlgorithmSuite DefaultAlgorithmSuite { get { return default; } set { } }
public System.ServiceModel.Channels.LocalClientSecuritySettings LocalClientSettings { get { return default; } }
public System.ServiceModel.MessageSecurityVersion MessageSecurityVersion { get { return default; } set { } }
public System.ServiceModel.Channels.SecurityHeaderLayout SecurityHeaderLayout { get { return default; } set { } }
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel>(System.ServiceModel.Channels.BindingContext context) { return default; }
protected abstract System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactoryCore<TChannel>(System.ServiceModel.Channels.BindingContext context);
public override bool CanBuildChannelFactory<TChannel>(System.ServiceModel.Channels.BindingContext context) { return default; }
public static System.ServiceModel.Channels.SecurityBindingElement CreateSecureConversationBindingElement(System.ServiceModel.Channels.SecurityBindingElement bootstrapSecurity) { return default; }
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateUserNameOverTransportBindingElement() { return default; }
public static TransportSecurityBindingElement CreateIssuedTokenOverTransportBindingElement(System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters issuedTokenParameters) { return default; }
public static TransportSecurityBindingElement CreateCertificateOverTransportBindingElement() { return default; }
public static TransportSecurityBindingElement CreateCertificateOverTransportBindingElement(MessageSecurityVersion version) { return default; }
public override T GetProperty<T>(System.ServiceModel.Channels.BindingContext context) { return default; }
public override string ToString() { return default; }
public System.ServiceModel.Security.SecurityKeyEntropyMode KeyEntropyMode { get { return default;} set { } }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants