How is user authentication usually implemented in IOS app?
I am thinking of doing the following:
Is that how login works in ios app?
Generally, authentication may be required for communication with web services. For example, if a service returns user account information (or any user specific data), then the request should be passing in some kind of authentication token that both identifies the user and qualifies as "yes, this client can have this data". The standard practice for this is to send in a cookie, just as a web browser might persist authenticated state. The authentication request should set the cookie on the response. In your app, you can check for your cookie to see if the user has been authenticated. Step 5 is half right, you might want to check for authentication and put up a sign in screen, but you might want the app to be usable offline, and therefore don't need to send in another authentication request if the token/cookie exists.
You might want to check out OAuth. http://oauth.net
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With