[web2py] Re: detect a specific device

2014-01-14 Thread Leonel Câmara
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

Re: [web2py] Re: detect a specific device

2014-01-14 Thread paolo.vall...@gmail.com
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. Paolo 2014/1/14 Leonel Câmara leonelcam...@gmail.com I guess you can

Re: [web2py] Re: detect a specific device

2014-01-14 Thread Dave S
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

[web2py] Re: detect a specific device

2014-01-14 Thread Willoughby
You need to specify what is a 'well defined device'... Even a MAC address can be spoofed. On Tuesday, January 14, 2014 4:23:19 AM UTC-5, Paolo Valleri wrote: Hi all, I'd develop a web2py responsible app instead of an android app; at a first sight it seams to some extent feasible. The only

Re: [web2py] Re: detect a specific device

2014-01-14 Thread Niphlod
this is an architectural problem: what does the device send to your app to be able to identify it ? If it's a webapp and it is accessed via the browser, and there are no running bits on the device itself speaking to your webapp, then the headers and the env are the only thing you can rely onto

Re: [web2py] Re: detect a specific device

2014-01-14 Thread paolo.vall...@gmail.com
hi, thanks everyone for the answers @Willoughby I don't think the mac address is sent/received in an http request, isn't ? @dave your suggestion is in the right direction but how can you automatically tells the browser to send this token? @niphlod authentication is not enough, an user can still