I'm going to assume that you intend to create a WCF REST service that uses an HMAC-based authentication scheme , such as Amazon S3 .
A way to implement this is to create your own WebServiceHost and override ApplyConfiguration . In this method, you install the new ServiceAuthorizationManager .
this.Authorization.ServiceAuthorizationManager = new MyServiceAuthorizationManager();
Derive the MyServiceAuthorizationManager class from the WCF ServiceAuthorizationManager and override the CheckAccessCore method.
class MyServiceAuthorizationManager : ServiceAuthorizationManager { protected override bool CheckAccessCore(OperationContext operationContext) {
For more information on the implementation of the algorithm, see this answer .
Mvdd
source share