Skip to content

AllowedImpersonationLevel = TokenImpersonationLevel.Delegation Stopped Working on Version Later Than v4.4.2 #4164

Open
@AbeBaehaki

Description

@AbeBaehaki

Describe the bug

I have a WCF client with settings as below:

var binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;

var address = new EndpointAddress($"https://myserviceendpoint.com/service.asmx");

var channelFactory = new ChannelFactory<T>(binding, address);
channelFactory.Credentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Delegation;

It works fine on WCF packages v4.4.2. But when I updated the packages version to v4.7.0 (Latest stable at the time of writing) then it seems like the ImpersonationLevel = TokenImpersonationLevel.Delegation is not working anymore.

My code still compiles, but I got an error thrown from the web service side related to the impersonation settings.

Referenced packages:

System.ServiceModel.Duplex
System.ServiceModel.Http
System.ServiceModel.NetTcp
System.ServiceModel.Security

Additional context
The web service that I am consuming is built using .NET asmx web service technology.
With system.web settings as below:

<authentication mode="Windows"/>
<identity impersonate="true"/>

No other security settings are involved in this scenario.

Metadata

Metadata

Assignees

Labels

BlockedIssues blocked from completion for some specific reason.bugThis is a product bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions