On Tuesday, January 14, 2014 11:05:17 AM UTC-8, Paolo Valleri wrote: > > Hi, > what you posted can be a starting point but it is not enough because it > doesn't guarantee that a different android tablet has been purchased. > The requirement is, only a well defined set of tablets can access the > webapp. > > Can you require a token on the tablet? Perhaps the browser can pass that the way it does a cookie. I'd look at making a token that's basically a wrapper of a cert or perhaps encrypt the device's serial number (SN) with the associated key?
/dps > 2014/1/14 Leonel Câmara <leonel...@gmail.com <javascript:>> > >> I guess you can use something like: >> >> request.user_agent().is_tablet and request.user_agent().dist.name == >> 'Android' >> >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/3Q7izsidMXM/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.