I have an asp.net MVC 2 site setup to provide an API json/xml responses
eg
[GET] /Product/10
Returns an xml response of a product
Additionally, I have a WCF SOAP service embedded into the site which returns the same methods (same contract) but via SOAP
eg
GetProduct(10)
Returns an xml soap product.
I chose this route because I like the pure MVC approach + routing engine. My client would like to secure each request by using a key based/token authentication system.
They simply want to include a key in each request...
My question is..what is the best (and most accessible approach) to this? I was thinking of using a custom HTTP header however ... would some clients may have issues setting this value? Is this easy to do with a Soap client generated from a WSDL?
I would rather not pollute my business objects with key properties.