Dotnet core web api running inside docker fails to authenticate when consuming external WCF service Dotnet core web api running inside docker fails to authenticate when consuming external WCF service docker docker

Dotnet core web api running inside docker fails to authenticate when consuming external WCF service


For anyone experiencing the same issue this is due to the way kerberos is configured on non-windows platforms. This has nothing to do with docker per say but rather running as a linux-based container.

The solution is to either switch your platform to windows or correctly configure kerberos authentication on your platform. This is discussed in more detail in the following github issues:

https://github.com/dotnet/wcf/issues/2641and https://github.com/dotnet/corefx/issues/9533