This is the recommended default behavior - each call to the WCF service receives a new instance of the service, and each call is authenticated and authorized.
Just remember to enable things like session mode in WCF, and don't go down the path of a singleton WCF.
Just keep the standard standard WCF service for every call. No problems.
If you work on a corporate LAN, you might also consider using Windows credentials for authentication (the default values ββare wsHttpBinding and netTcpBinding ).
There is a truly extensive WCF Security Guide , which has many examples and practical guidelines for setting up specific WCF security scenarios.
I also recommend that you familiarize yourself with WCF Security Fundamentals for an excellent introduction to WCF and its security mechanisms.
A slightly more advanced idea is Declarate WCF Security , in which Juval Lowy introduces five security scenarios (this is a very worthy read!) And encapsulates them in the security attributes that will apply to your contract contracts.
marc_s
source share