I am developing an App that will interface with a web server (PHP with MySQL back end) using web views. I have the application working with static URL's as tests, but now I need to adjust for actual user interaction.
I have been looking for solutions to HTTP authentication but believe the phrase to be incorrect as most of the search results I get are all related to "REST" requests. I will be using a URL (PHP / MySQL) to validate authentication and do not believe that qualifies as REST based on my experience.
I do not have SSL as of yet on this server so I am not sure what options are available via Cocoa.
Questions I have:
Is there a way to create a View that loads if the account ID isn't already stored locally?
If so, can i code the app to supersede the storyboard I have created if authentication is needed?
If step 1 and 2 work, how can I interface with my web server to authenticate? ( preferred method is to submit user email and the MD5 of the password as that is what is currently stored in the database)
Ideally i would love to just submit a url like "login.php?login=me@blah.com&password=(md5hash)" and have the provided response either give me "auth=true&accountID=5" or "auth=false" ... then use the iPhone app to either report an auth error to the user or save the account id to NSUserDefaults for future use (to bypass auth later) and load the normal storyboard already in place.
Any recommendations would be appreciated.
Thanks,
Silver Tiger