ServiceAuthorizationManager can be used as custom authentication mechanism for WCF operations. So we can configure this in behavior tag
<behavior name="Behavior">
<serviceAuthorization serviceAuthorizationManagerType="ClassThatImplementsServiceAuthorizationManager, Assembly" />
</behavior>
This is can code thru code like below
host = new WebServiceHost(typeof(Rest), address.Uri);
host.Authorization.ServiceAuthorizationManager=ClassThatImplementsServiceAuthorizationManager;
No comments:
Post a Comment