Hey Guys,
I have a asp.net website and I am accessing that web service from my iPhone app to get data. The WCF web service produces data as JSON.
I want to put some kind of authentication on the WCF. What you you guys recommend?
Thanks
Hey Guys,
I have a asp.net website and I am accessing that web service from my iPhone app to get data. The WCF web service produces data as JSON.
I want to put some kind of authentication on the WCF. What you you guys recommend?
Thanks
The easiest method would probably be to apply HTTP Basic Authentication to the web service. Passing the credentials from the iPhone shouldn't be too hard.
I have to agree with Chris Pebble, HTTP Basic Authentication will be the easiest.
If you'd like to do something else you could always create an "Authorize" endpoint that will return a token to the user, this token can then be sent along with future requests in order to validate the user. The only benefit I could see to using an "Authorize" endpoint is that you could pass more data back to the user when they authorize (ie: App Settings, theme, real name, etc...).