well what we are using is a hybrid model: - the ios device uses a modified form of OAuth to get access tokens (and we have the confusing problem of users start anonymous but with an access token, and then may later create an "account" associating an email and other user data with the account) - the website uses web2py's auth to login those same users - the APNS token (Apple Push Notification Service) is provided optionally by the user if they opt-in to push notifications. as such it's not a primary key for the user and can't be used for authentication. if the user chooses to share it with us we store that in a field on our user table. Note that the APNS token is device specific, so if the user has multiple devices then they might have multiple tokens.
does that clarify at all? cfh On Friday, February 8, 2013 9:46:42 PM UTC-8, Massimo Di Pierro wrote: > > I do not know how this works. Can you give us more details? > > On Friday, 8 February 2013 20:31:14 UTC-6, howesc wrote: >> >> i have millions of APNS tokens! i'd share, but they are tied to an app.... >> >> i did not tie APNS tokesn to web2py auth, but i added fields to my end >> user table, and the device uses my REST JSON API to POST the APNS tokens to >> the server and update the user. we don't use the APNS token as any sort of >> user identifier. >> >> does that help? lemme know if you are interested in more details. >> >> christian >> >> On Thursday, February 7, 2013 5:22:28 PM UTC-8, chris_g wrote: >>> >>> I'm looking into supporting Apple push notifications in an iPhone app >>> that connects to a web2py server. >>> In order to know which devices to push details to, web2py's auth module >>> would presumably need to maintain "Device Tokens". >>> I'm curious if anyone has implemented a solution that takes care of >>> this. I'd like to see how it was integrated with web2py's auth. >>> >>> Thanks, >>> Chris >>> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

