Part 50 Authentication in WCF
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/04/part-50-authentication-in-wcf_18.html Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help. https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1 In Part 47, we discussed how bindings provide confidentiality and integrity security features, out of the box without any additional configuration. In this video we will discuss Authentication and in a later video we will discuss authorization. Out of the box most bindings provide authentication without any additional configuration. For example, out of the box, both wsHttpBinding and netTcpBinding provides windows authentication. Let's understand this with an example. Run the WCF service and the client applications. When you click "Call Service" button, you should see the windows logged in username. In the service host console window you should see the following 1. Whether if the client is Is Authenticated 2. Authentication Type 3. Authenticated user name Please Note: If you have another windows user configured on the machine and if you run the application as a different user, you should see the user name of that user. Now change the binding in App.config file from wsHttpBinding to netTcpBinding. Run the wcf service. Update the client service reference and notice that netTcpBinding also provides windows authentication by default. To customize the security mode for a binding, use mode attribute of security element with in the respective binding To customize the authentication mode for a binding, use clientCredentialType attribute of either the message element or transport element with in the respective binding
Download
0 formatsNo download links available.