I have an app that makes request to a wcf service. Usually I authenticate all of the requests using a hash value that is sent in the body of the request and then authenticated on the server. All most all of the request are sent via json and it is easy for me to add the hash value to the body of the request. The issue I am facing is that when I send a file stream I cannot add the hash to the body of the request so I am wondering how I can authenticate that the request came from my app and not from some where else. All suggestions are greatly appreciated.

有帮助吗?

解决方案

Adding an authorization item in the header is a possible solution. So, if anyone is interested, read this and this.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top