c# - How to secure my wcf service using AWS authentication -
can secure wcf service using aws authentication. tring figure out google search , finding articles on calling service secured using aws authentication. not article of how secure wcf service aws. isn't there option, understanding of aws authentication , signing wrong this. please point me article start with.
i'm going assume intend create wcf rest service uses an hmac based authentication scheme amazon s3 using.
the way implement create own webservicehost
, override applyconfiguration
method. in method, set new serviceauthorizationmanager
.
this.authorization.serviceauthorizationmanager = new myserviceauthorizationmanager();
derive myserviceauthorizationmanager
class wcf's serviceauthorizationmanager
, override checkaccesscore
method.
class myserviceauthorizationmanager : serviceauthorizationmanager { protected override bool checkaccesscore(operationcontext operationcontext) { // check validity of hmac // return true if valid, false otherwise; return isvalidhmac(weboperationcontext.current); } }
for more details on implementation of algorithm, see this answer.
Comments
Post a Comment