How to log in using iOS

This question seems to have been asked, but for me there are not enough results. I have a website where a user can log in. I would like to make an application that allows them to log in without using Safari.

Say the site is "http://www.website.com/login.aspx". I know that the username field in java is "Login1_UserName" and the password name field is "Login1_Password". I would like to set up a custom webview that will transmit credentials and then populate the view with the results.

+4
source share
1 answer

ASIHTTPRequest deprecated, but it includes ASIFormDataRequest for creating web POST requests, such as your authentication form. You can parse the answer to deal with authentication tokens. There are other classes that people write to simplify web requests ( example ).

Whether you UITextField instances in the table view, or whether the web form in the local UIWebView to process the authentication page, is up to you.

+1
source

Source: https://habr.com/ru/post/1379363/


All Articles