ASP.NET MVC authentication for iPhone application

Posted by manu08 on Stack Overflow See other posts from Stack Overflow or by manu08
Published on 2010-03-25T00:03:48Z Indexed on 2010/03/25 0:13 UTC
Read the original article Hit count: 873

This is for an ASP.NET MVC application. For browser based access on my normal controllers, I'm using standard forms authentication and auth cookies.

My question is how I do the same for an iPhone application. I have a set of RESTful controllers that the iPhone application uses directly, but I'm not sure how to go about authentication...

I was thinking of having a special Login method that returns the auth cookie. Then I can use the standard Authentication attribute on the ASP.NET MVC side, but I'm not sure how to handle this on the iPhone side? Can I store this cookie and have it automatically sent with every request?

Perhaps there's a better approach altogether?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ASP.NET