KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to develop an iPhone client that consumes JSON data from somewhere. I chose Web API from MS because it seemed easy enough but when it comes to authenticating users, things get quite frustrating. I am amazed how I've not been able to find a clear example of how to authenticate a user right from the login screen down to using the Authorize attribute over my ApiController methods after several hours of Googling. This is not a question but a request for an example of how to do this exactly. I have looked at the following pages: Making your ASP.NET Web API's Secure Basic Authentication With ASP.NET Web API Even though these explain how to handle unauthorized requests, these do not demonstrate clearly something like a LoginController or something like that to ask for user credentials and validate them. Anyone willing to write a nice simple example or point me in the right direction, please?
Tags (comma-separated)
Save Edits
Cancel