The question is, what's the best practice to doing this over a long duration of time? What if they're offline for days?
Do I keep their userid/password stored on the app locally and re-authenticate on their behalf every 24 hours (assumed expiration date of these session cookies)
You mean on each and every http request (i.e. push replication), embed the user's id and plain text password in the URL
and let SSL encrypt it to lower the possibility of a man-in-the-middle attack?
I can see how I can send in the WWW-Authenticate header, but what would I need to do do take advantage of the keychain? I guess I'm looking for a plugin for that? (i.e. https://github.com/shazron/KeychainPlugin )
How does the replicator _automatically_ to take advantage of the keychain? (i've never used the keychain feature on iOS)
On Jul 25, 2014, at 4:49 PM, Seung Chan Lim <djs...@gmail.com> wrote:The plugin uses a lower-level API to simply set/get "key" & "value" pairs for a given "service" (i.e. just 3 parameters)
On Aug 2, 2014, at 10:48 AM, Seung Chan Lim <djs...@gmail.com> wrote:What iOS API do you use to achieve this? I'm trying to find out how I can do this within phonegap, but I need to know what needs to happens at a lower level.
On Aug 3, 2014, at 2:54 PM, Seung Chan Lim <djs...@gmail.com> wrote:Do you have sample iOS code I can show the plugin developer so I can ask the question? (I have 0 knowledge of the iOS native API or objective-C)