c# - How I access ClientCredentials from with a custom IChannel or IChannelFactory? -


To implement the custom security protocol, I am creating a custom channel in WCF, do not run! It's not scary!

The protocol on the service is relatively easy to investigate. Adding security information to request based on hard working client credentials.

What I have to do is ClientCredentials object ( clientprocess from within my channel implementation) is generally in use, Code> Service EndPoint example can access this through the property:

  var credentials = channel.Endpoint Behaviors.Find & LT; ClientCredentials & gt; ();   

However, I can not find a way to reach the service endpoint, which is linked to within the channel - almost zero metadata ChannelBase class .

Is there a way to get my channel interval? What is an alternative way to access client credentials on client side?

Standard security channel 't access to client credentials internally they Instead of SecurityTokenManager , which is made up of client credentials . I recommend using some disambigler to browse fully the implementation.

Generally create your binding algorithm both ChannelLister and ChannelFactory and pass all the required information that they Want to



Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -