Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BinarySecurityToken in log

Tags:

.net

security

wcf

I am trying to get the BinarySecurityToken logged in order to see the ID and digest of it. I followed the instructions here but still the output is

<o:BinarySecurityToken>
<!-- Removed-->
</o:BinarySecurityToken>

Using .NET 3.5 how can I get this logged? I don't want to use a sniffer like Wireshark.

like image 738
Stefan Avatar asked Jan 27 '15 12:01

Stefan


1 Answers

Turns out that logKnownPii="true" needs to be added to the first source in app.config, and this source must be named System.ServiceModel.MessageLogging. Works now.

like image 99
Stefan Avatar answered Sep 24 '22 01:09

Stefan