Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

PhoneGAP Elefant Authentication

edited September 2012 in Miscellaneous

jbroadway, just curious how you authenticated users, and then persisted that authentication to prevent needs for future logins from the same device.

Been waiting on those examples for your phonegap/backbone/elefant backend for a little while now. :)

More important, just the authentication handling.

Comments

  • We just used cookies, set to a month, figuring the expiry time will extend again as long as they use it within a month each time. Not perfect, but was good enough for now.

    You'll need to make sure the domain is included in Phonegap's ExternalHosts setting (in the Cordova.plist file), and that you've enabled cookies to be saved, like this:

    http://stackoverflow.com/a/3709746/1092725

    For our ExternalHosts, we also had to include quite a few other domains such as xyzabc.cloudfront.net, *.fbcdn.net, api.facebook.com, graph.facebook.com, m.facebook.com, xyzabc.s3.amazonaws.com, api.mixpanel.com, etc. That way it would load images from CloudFront or S3, the Facebook API, and Mixpanel.

  • Got it. Didn't know if you maybe worked into apples keychain, or used the local storage api.

Sign In or Register to comment.