This question seems to have been asked but without enough results for me. I have a website where user’s can log in. I’d like to make an app that would allow them to log in without using Safari.
Say the website is “http://www.website.com/login.aspx”. I know that the user name field in java is “Login1_UserName” and the password name field is “Login1_Password”. I would like to set up a custom webview that would pass the credentials along and then populate the view with the results.
ASIHTTPRequestis deprecated, but it includesASIFormDataRequestfor makingPOSTweb requests, like your authentication form. You can parse the response to deal with authentication tokens. There are other classes people are writing to make web requests a bit easier (example).Whether you use
UITextFieldinstances in a table view, or a web form in a localUIWebViewto handle the authentication page is up to you.