WCF Service Impersonation – Easy WCF
Skip to content

WCF Service Impersonation

Impersonation is nothing but validating if the client is authorized to request service.
In this case, you can impersonate the client request authorize to access the service.

Example:

Impersonation has 3 levels of settings.

  • Allowed : It automatically impersonates the client whenever Windows authentication is used, but it has no effect with other authentication mechanisms.
  • Not allowed : This indicates the service should not auto Impersonate
  • Required : It ensures windows authentication is used else throw exception

Impersonate all operations:

Impersonation can be allowed for all operation of the service by setting the service Authorization in service behavior section in app.config as shown below.

© 2015, admin. All rights reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *